Re: [Tutor] If then else question

2006-06-14 Thread Dustin Mitchell
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 How about .. elif ch_val in ('040', '011', '012'): .. On Jun 14, 2006, at 1:40 PM, Andrew Robert wrote: > In the middle of an if then else, I have the following line > > elif ch_val == '040' or ch_val == '011' or ch_val == '012':

Re: [Tutor] Mod-python

2006-06-12 Thread Dustin Mitchell
Well, POST or PUT are the normal ways to do that. You need to interact with the person running the web server to see how they need it delivered - if they're expecting a GET and you give them a POST, it isn't going to work very well :) Dustin On Jun 12, 2006, at 2:48 PM, patricia wrote: > Hi!

Re: [Tutor] Confused about globals

2006-06-09 Thread Dustin Mitchell
As a note, the "import" should be import shared_funcs In Python, most globals aren't really global -- they're local to the module. If you split your modules by functionality, then variables should naturally relate to a specific module, and be located there. So, for example, you could move

Re: [Tutor] [Off topic] Is Zero Positive (was: Not Really Questions)

2006-06-05 Thread Dustin Mitchell
Wait, all of this "not really a number" and "carry-over from binary" stuff deals with the *numeral* zero, which is neither here nor there. We could use a picture of a bunny-rabbit instead of the numeral zero, making this year 26. The discussion here is over the *value* zero -- the identity ele