newbe who is also senior having a senior moment

2006-09-06 Thread stan
com.client ImportError: No module named win32com.client can someone pls point me in the right direction here as I am trying to urgently fix the file for someones birthday in game (I know pathetic) thanks Stan -- http://mail.python.org/mailman/listinfo/python-list

New to Python: my impression v. Perl/Ruby

2005-10-15 Thread Stan Krajewski
and abstract syntax. Why? Is it necessary to be cryptic? Whoever can figure out the puzzle is the smartest one?         "Everything should be made as simple as possible, but no simpler."   Albert Einstein       Thanks for sharing your thoughts!     Stan         -- http://mail.python.o

Working with dbase files

2005-02-27 Thread Stan Cook
Does anyone know how I can access and read data from a dbase (.dbf) file? Regards, Stan -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3.3.2 Shell Message

2013-12-29 Thread Stan Ward
On Sunday, December 29, 2013 5:18:18 PM UTC-5, Stan Ward wrote: Note: I do not get the "WARNING: The version of Tcl/Tk (8.5.9) in use may be unstable." message when I run python directly from bash (Mac "Terminal"), but I do get it in the IDLE.app Shell Window, run as f

Re: Python 3.3.2 Shell Message

2013-12-30 Thread Stan Ward
Thanks Ned. That did the trick! Jason Briggs, author of Python of Kids, gave me the same answer. Happy to be over this hurdle. Thanks! Happy New Year!! -- https://mail.python.org/mailman/listinfo/python-list

Unsuccessful installation

2015-11-19 Thread Kaufman, Stan
urth trips indicated "repairing..." Each time, an attempt to run it resulted in the above message. --- Stan Kaufman Principal Scientist (retired) TSI Incorporated 500 Cardigan Road St. Paul, MN 55126 --- "Scienc

Spanish Accents

2011-12-22 Thread Stan Iverson
Hi; If I write a python page to print to the web with Spanish accents all is well. However, if I read the data from a text file it prints diamonds with question marks wherever there are accented vowels. Please advise. TIA, Stan -- http://mail.python.org/mailman/listinfo/python-list

Re: Spanish Accents

2011-12-22 Thread Stan Iverson
27;t decode byte 0x0a in position 20: truncated data args = ('utf16', '\r\n', 20, 21, 'truncated data') encoding = 'utf16' end = 21 object = '\r\n' reason = 'truncated data' start = 20 Tried it with utf-16 with same results. TIA, Stan -- http://mail.python.org/mailman/listinfo/python-list

Re: Spanish Accents

2011-12-22 Thread Stan Iverson
On Thu, Dec 22, 2011 at 11:30 AM, Rami Chowdhury wrote: > Could you try using the 'open' function from the 'codecs' module? > I believe this is what you meant: file = codecs.open(p + "2.txt", "r", "utf-8") for line in file: print line but got this error: 141 file = codecs.open(p + "2.txt",

Re: Spanish Accents

2011-12-22 Thread Stan Iverson
ange(128) args = ('ascii', u'Noticia: Este sitio web entre este portal est...r\xe1pidamente va a salir de aqu\xed.\r\n', 48, 49, 'ordinal not in range(128)') encoding = 'ascii' end = 49 object = u'Noticia: Este sitio web entre este portal est...r\xe1pidamente va a salir de aqu\xed.\r\n' reason = 'ordinal not in range(128)' start = 48 Please advise. TIA, Stan -- http://mail.python.org/mailman/listinfo/python-list

Re: Spanish Accents

2011-12-22 Thread Stan Iverson
print statement is sys.stdout.encoding > which is either "ascii" or None in your case. Try to encode explicitly to > UTF-8 with > > f = codecs.open(p + "2.txt", "r", "iso-8859-1") > for line in f: >print line.encode("utf-8") > > > OOEEE! Thanks! Stan -- http://mail.python.org/mailman/listinfo/python-list

Tkinter focus_set use with grid

2006-07-19 Thread Stan Cook
A newbie to Tkinter here. . . . . . I'm trying to set the focus on an Entry textbox with focus_set. I am using the grid manager. I created the same interface before using the pack() method and the focus_set worked, but now it says "AttributeError: 'NoneType' object has no attribute 'focus_s

create a text file

2006-05-29 Thread Stan Cook
I'm writing a script to list all of my music files' id3 tags to a comma delimited file. The only part I'm missing seems like it should be the simplest. I haven't used Python for the last couple of years. My question is this: When I use os.open(,"w"), I get an error message,TypeError

Re: create a text file

2006-06-04 Thread Stan Cook
Fredrik Lundh wrote: > Stan Cook wrote: > >> I'm writing a script to list all of my music files' id3 tags to a >> comma delimited file. The only part I'm missing seems like it should >> be the simplest. I haven't used Python for the last couple of y

how to get the length of a number

2006-06-11 Thread Stan Cook
gotten about to convert an integer to a string? Regards Stan -- http://mail.python.org/mailman/listinfo/python-list

Re: how to get the length of a number

2006-06-11 Thread Stan Cook
Saketh wrote: > Stan Cook wrote: >> Can anyone tell me how to get the length of a number. I >> know len(string) will get the length of a string, but it >> doesn't like len(int). I seem to remember something like %s >> string. I tried to set a variable = to %s in

Database read and write

2006-06-14 Thread Stan Cook
Ok . I know I'm talking ancient history, but some of us are stuck working with them. Is there anything for python which will ope, read, and write to a Dbase 3 or 4 file? I really need your assistance on this one. Regards, Stan -- http://mail.python.org/mailman/listinfo/python-list

Re: Database read and write

2006-06-15 Thread Stan Cook
ftc wrote: > Stan Cook a écrit : >> Ok . I know I'm talking ancient history, but some of us are stuck >> working with them. Is there anything for python which will ope, read, >> and write to a Dbase 3 or 4 file? I really need your assistance on >> this one. &g

Python with Eclipse

2006-06-18 Thread Stan Cook
I've been trying to use Eclipse with Python on Linux for a while and have noticed something odd. After running the code or debugging a few times, its responsiveness gets really bad. Upon checking the equivalent of the task manager, I find several instances of Python running. When I kill the

Re: Python with Eclipse

2006-06-20 Thread Stan Cook
ually click the "X" symbol that closes the debug area!) > > --Jason > > Stan Cook wrote: >> I've been trying to use Eclipse with Python on Linux for a >> while and have noticed something odd. After running the >> code or debugging a few times, its r

Another Eclipse Question with Python

2006-06-20 Thread Stan Cook
I followed the help instructions to set a watchpoint for a variable, or at lest I tried. When I hilight the variable and go to the run menu, the "toggle watchpoint" is grayed out and can't be selected as specified. Is this Python related only? Just wondering, I want to use the software with

Re: What value should be passed to make a function use the default argument value?

2006-10-03 Thread Stan Graves
#x27;t seem to work.. What about this? >>> def f(var=None): ... if var == None: ... var = 1 ... return 2*var ... >>> f() 2 >>> f(3) 6 >>> a=4 >>> f(a) 8 >>> b=None >>> f(b) 2 >>> --Stan Graves -- http://mail.python.org/mailman/listinfo/python-list