473,799 Members | 3,822 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python Forum

Python programming language - Ask questions about python interpreter, control flow, data structures, modules errors, classes, standard library, gui, databases, unit testing, object oriented, structured programming and more.
0
1,131
thread by: dominiquevalentine | last post Oct 30 '07 by: dominiquevalentine
anyone have any advice as to where to start if i say..wanted to program the ipods UI? I have one python project under my belt so far, and i'm going for my second. I want to try to mimic the ipod using python -- that is, basically, i want a virtual ipod in a window, using either pygtk or wxglade if possible (learning both). not sure if html...
0
1,283
thread by: Borse, Ganesh | last post Oct 30 '07 by: Borse, Ganesh
Hi, Am new to python. May someone please help me know this? How can we check whether one big string contains another small string? E.g. bigstring="python anaconda boa cobra" smallone="boa"
0
1,390
thread by: daniel | last post Oct 30 '07 by: daniel
I'm trying to use PAMIE to automate some web browsing. My problem is with the buttonClick() method; it doesn't seem to work when the button is supposed to open a new window. For example, I can use it to submit a username and password and advance to the next page but it fails on a button that opens a PDF Preview in a new window. There is no...
0
187
thread by: daniel | last post Oct 30 '07 by: daniel
I'm trying to use PAMIE to automate some web browsing. My problem is with the buttonClick() method; it seems to work unless the button is supposed to open a new window. Specifically, the button is supposed to open a PDF Preview in a new window. Any ideas? Daniel
3
2,648
WhiteRider
thread by: WhiteRider | last post Oct 30 '07 by: WhiteRider
I have some basic knowledge of socket programming in Python. Up to now all I have been able to do when establishing a socket is sending a string to a client, what I would like to know is what else can be sent? For example could a program be tunnelled through from the host to the client - like the way netcat allows programs to be executed after a...
0
286
thread by: daniel | last post Oct 30 '07 by: daniel
I'm using PAMIE to automate some web browsing. My problem is with the buttonClick() method. It seems to work unless the button is supposed to open a new window, in which case nothing happens. There is no error message. Any ideas? Daniel
1
1,021
thread by: Abandoned | last post Oct 30 '07 by: Gabriel Genellina
Hi.. I have a interesting threading result.. class GetData(threading.Thread): def __init__(self, name): threading.Thread.__init__(self) self.name = name def run(self): self.data={2:3, 3:4...}
2
2,128
thread by: David Sanders | last post Oct 29 '07 by: David Sanders
Hi, I have a script with function definitions which I load into ipython for interactive use. These functions modify a global numpy array, whose size I need to be able to change interactively. I thus have a script which looks like this: from numpy import *
1
3,452
thread by: Xah Lee | last post Oct 29 '07 by: Xah Lee
Text Processing with Emacs Lisp Xah Lee, 2007-10-29 This page gives a outline of how to use emacs lisp to do text processing, using a specific real-world problem as example. If you don't know elisp, first take a gander at Emacs Lisp Basics. HTML version with links and colors is at: http://xahlee.org/emacs/elisp_text_processing.html
4
2,435
thread by: PythonNotSoGuru | last post Oct 29 '07 by: bvdet
Hello everybody I have been trying to get around the problem of checking for a tuple in raw input and I just got a tip that kind of works but it only works for the second for loop. In other words when you input and of the 'close' words python returns 'thanx for chattin' like it should but if you input any of the 'bad' words it dosnt return...
1
2,106
thread by: Matthew Wilson | last post Oct 29 '07 by: Vinay Sajip
The python logging module is a beautiful masterpiece. I'm studying filters and the config-file approach. Is it possible to define a filter somehow and then refer to it in my config file? TIA Matt
0
373
thread by: abarun22 | last post Oct 29 '07 by: abarun22
HI I am new to SWIG & Python and right now i am in the process of wrapping some "C" functionalities present in a static library for python. I do have my C file "name.c" which just contains some helper functions. I tried to link my object files (e.g name.o & name_wrap.o) with the static libraries (whose functionalities need to be wrapped) to...
4
2,241
thread by: DDCane | last post Oct 29 '07 by: bartonc
i need to make a dictionary that works as a telephone book. this is what needs to happen when i type in the following: add name number – it adds the name and number to the phonebook lookup name – returns the number for the given name alias name newname – lets u look up the number by typing the name or the alias "newname". change name...
10
5,133
thread by: Armando Serrano Lombillo | last post Oct 29 '07 by: Bruno Desthuilliers
Why does Python give an error when I try to do this: Traceback (most recent call last): File "<pyshell#40>", line 1, in <module> len(object=) TypeError: len() takes no keyword arguments but not when I use a "normal" function: return len(object)
6
4,035
thread by: Tim Arnold | last post Oct 29 '07 by: Tim Arnold
Hi, I'm getting the by-now-familiar error: return codecs.charmap_decode(input,errors,decoding_map) UnicodeEncodeError: 'ascii' codec can't encode character u'\xa9' in position 4615: ordinal not in range(128) the html file I'm working with is in utf-8, I open it with codecs, try to feed it to TidyHTMLTreeBuilder, but no luck. Here's my code:...
6
1,274
thread by: Alan Isaac | last post Oct 29 '07 by: Alan Isaac
Is the behavior below expected? If so, why is the exception not caught? Thanks, Alan Isaac .... except TypeError: print 'oops' .... Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: unsupported operand type(s) for /: 'str' and 'str'
2
3,193
thread by: daniel_nolan | last post Oct 29 '07 by: daniel
I'm brand new to Python--and programming in general. I'm trying to use IEC to control Internet Explorer. I've navigated to a page, and now I'm trying to click a button. The button appears to be called 'PDF Preview' but I honestly do not know whether that's the name or the caption. Here is my code: from win32com.client import Dispatch...
6
2,420
thread by: Shawn Minisall | last post Oct 29 '07 by: cokofreedom
I've been having some problems with using a while statement for one menu within another while statement for the main menu, first time I've done it. It's with choice number two from the menu. When I run the program, I get a UnboundLocalError: local variable 'ai' referenced before assignment. I initialize ai as "", but then it just skips to...
0
2,211
thread by: abarun22 | last post Oct 29 '07 by: abarun22
HI I am new to SWIG & Python and right now i am in the process of wrapping some "C" functionalities present in a static library for python. I do have my C file "name.c" which just contains some helper functions. I tried to link my object files (e.g name.o & name_wrap.o) with the static libraries (whose functionalities need to be wrapped) to...
0
928
thread by: chewie54 | last post Oct 29 '07 by: chewie54
Hello, Anyone using Leopard know which versions of Python and wxPython and any other Python related modules are default with the new OS? Thanks,
4
1,228
thread by: python101 | last post Oct 29 '07 by: bartonc
def fact(n): if n<0: print 'error' if n==0: return 1 else: return n * fact(n-1) # I tried >>fact(-2)
1
3,422
thread by: beginner | last post Oct 29 '07 by: beginner
Hi All, I am wondering if there is any way to handle exceptions inside list comprehension. For example, I want to skip the point if f(x) raises an exception. How can I do that without totally removing the list comprehension?
1
1,031
New
thread by: jkbiwott2002 | last post Oct 29 '07 by: Shawn Milochik
Hi! Am new to Python and am looking for a sample project that demonstrates how to connect to MySQL, save data in MySQL database using a form on a web page. Regards, Joseph
1
1,213
thread by: fahadqureshi | last post Oct 29 '07 by: bvdet
does anybody know what the <> does in python i was looking at some code and i saw this operand used in different places, mainly in if else satements. example if(typevali <> 4 and busi == 0):
0
1,268
thread by: Gabriel Genellina | last post Oct 29 '07 by: Gabriel Genellina
QOTW: "Template engines are amongst the things that seem easy enough to look at the available software and say 'bah, I'll write my own in a day', but are complex enough to keep them growing over years until they become as huge and inaccessible as all the other implementations. Then it's time for someone else to look at it and say 'bah, I'll...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.