Re: Python FTP - NameError: name 'mydpa' is not defined

2008-08-05 Thread Ej
Hi Fredrik, Thanks so much for you quick help!!! I googled the os.rename you gave me and I found solution to solve my problem. You made my day! On Aug 5, 10:37 am, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Ej wrote: > > I have a similar problem. I need to download the same

Re: Python FTP - NameError: name 'mydpa' is not defined

2008-08-05 Thread Ej
I have a similar problem. I need to download the same file every hour so it will be nice to be able to rename the downloads with a variable name. For example in this case: from ftplib import FTP ftp=FTP('tgftp.nws.noaa.gov') ftp.login() ftp.cwd('SL.us008001/DF.of/DC.radar/DS.81dpr/SI.kbuf') ftp.

Re: subclassing a module: misleading(?) error message

2007-01-11 Thread ej
Carl Banks wrote: A good explanation I have not been able to get back to news lately - lot going on, but thank you for your time to explain that to me. It mostly makes pretty good sense to me, but I will have to study metaclasses further. ;) Thanks, -ej -- http://mail.python.org/mailman

Re: Should I learn Python instead?

2006-04-14 Thread ej
"fyleow" <[EMAIL PROTECTED]> wrote : > I realize that learning the library is part of the process, but as a > beginner I appreciate simplicity. > Is Python easier than C#? Absolutely. > Can someone show how to access an XML document on the web and have it ready > to be manipulated for comparis

CGI module: get form name

2006-04-12 Thread ej
I'm not seeing how to get at the 'name' attribute of an HTML element. form = cgi.FieldStorage() gives you a dictionary-like object that has keys for the various named elements *within* the form... I could easily replicate the form name in a hidden field, but there ought to be some way to get d

NOT Python: Taxonomy list reference

2006-03-21 Thread ej
I hope you will forgive this being a bit off subject, but this is about the smartest list of people I know. I came across a list in the past while studying OO methdology stuff. The list was trying to make the point of the problem classification systems often run into (i.e., often things belong

Re: exceptions, internals (introspection?)

2005-11-10 Thread ej
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > the second example on this page shows you how to do that: > > http://effbot.org/librarybook/traceback I am looking at it. Thanks for your prompt reply, Mr. Lundh! :) -ej -- http:

Re: exceptions, internals (introspection?)

2005-11-10 Thread ej
next = None dir(frame) = ['__class__', '__delattr__', '__doc__', '__getattribute__', '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__str__', 'f_back', 'f_builtins', 'f_code', 'f_exc_traceback', 'f_exc_type', 'f_exc_value', 'f_globals', 'f_lasti', 'f_lineno', 'f_locals', 'f_restricted', 'f_trace'] But at least that is something to go on. Thanks for your reply! -ej -- http://mail.python.org/mailman/listinfo/python-list

exceptions, internals (introspection?)

2005-11-10 Thread ej
othing else is jumping out at me. Can someone point me to some documentation on this subject and/or provide some examples? Thanks, :) -ej -- http://mail.python.org/mailman/listinfo/python-list

Re: struct, IEEE-754 and internal representation

2005-11-09 Thread ej
Ah! Well! That explains it. I started to suspect that but (obviously) did not know that. LOL Thanks for your prompt reply, Grant. :) -ej -- http://mail.python.org/mailman/listinfo/python-list

struct, IEEE-754 and internal representation

2005-11-09 Thread ej
e it takes 6 * 4 = 24 bits to represent that as an int I am starting to think my expectation is wrong... If that's true, then I guess I am confused why Python is displaying 148.72999572753906 when you unpack the 4 bytes, implying a lot more precision that was available in the original 32-bi

Re: python commmand line params from c++

2005-06-30 Thread ej
Ummm, just a guess from looking at the output (not familiar with C++ interface)... the error seems to complain about what's in someScript.py, not the call to it. What's in someScript.py? "Wesley Henwood" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > What is the proper way to pass