![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archiveRe: Having Trouble with Scoping Rules
From: Farshid Lashkari <flashkNO@SPAMgmail.com>
Date: Tue Jan 31 2006 - 04:09:35 CET
You need to declare _expensiveObject as global inside your function.
def ExpensiveObject():
return _expensiveObject
The documentation will no doubtedly explain it better than I have
-Farshid
|