Mephisto
badmephisto at gmail.com
Sun Jul 20 21:10:34 EDT 2008
Hi, I have been trying to fix this for a while, but I cant seem to do it: essentially this is my code: in my main .py file that handles requests: from otherfile import othermethod def handler(): global a a=5 othermethod() in otherfile: def othermethod() #in this method, the value of a is not defined, even though i made it global! even though it says in the documentation that global data is normally retained and handled. And all of the previous code runs within the same request... am i doing something wrong? or not doing something? thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20080720/30d99f66/attachment.html
|