Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4468602
By: ryanoro
Well, I have code like this:
__builtins__.gServer = this;
Works if it's a module, fails if it's a dictionary (in which case,
"__builtins__["gServer"] = this" would work.)
This code is in an __init__ function. The class is being created from a bit
of code that looks like this:
if __name__ == "__main__":
omg.startServer(Serv, Options) # startServer is going to instance a
Serv.
This call to startServer is in the Serv module, and it's Serv's __init__ that's
got the assignment to __builtins__.gServer, above.
On the call stack in the debugger, I see the execfile call from pydevd's run
function, just above the part where Serv's "if __name__ == "__main__" is being
executed.
______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=293649
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Pydev-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-users