|
Hi Steven,
I think this was to make XSI developpers life easier, not yours! None, True and False are the standard python kewords equivalent to JScript's null, true and false (notice the Capitalization!)... For the module import, global scope is highly recommended.
Here are Guido VR guide lines for developping Python, in python. I find this is a good starting point to see what is "good" or "bad"...
http://www.python.org/dev/peps/pep-0008/
Cheers,
Aloys
On 8/27/06, Steven Caron <
carons(at)gmail.com> wrote:
could someone point out to me the reason the new command wizard for python, has...?
null = None false = 0 true = 1
is this purely to make it easy for me? does python not understand true and false as 1 and 0 automatically?
also should i put my module imports outside my function's scope? there is your typical win32com.client imports being called at the top of the generated code. should i go ahead and put my xml parser module up there? or should i keep it in my function's scope?
btw i am having more fun now
steven
-- Aloys Baillet - XSI Technical Director Character Dpt - Animal Logic --
|