Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4467291
By: ryanoro

The Python 2.5 documentation has this mysterious note about __builtins__:

"As an implementation detail, most modules have the name __builtins__ (note
the "s") made available as part of their globals. The value of __builtins__
is normally either this module or the value of this modules's __dict__ 
attribute.
Since this is an implementation detail, it may not be used by alternate
implementations of Python."

My code wants to add a global variable to __builtins__ (yes, a hack, but bear
with me).  I'm finding that if I run the module with the run command (or just
from a command line), __builtins__ shows up as a module.  However, if I try
the PyDev debugger, __builtins__ shows up as a dictionary.

This is causing problems since the syntax needed to add my variable is different
depending on whether __builtins__ is a module or a dictionary.  It's work
around-able, I suppose, but what is going on here?  Is the debugger using a
different implementation of python for some reason?  Did I make a mistake in
configuration somewhere?


(Running PyDev 1.3.8 on Eclipse 3.3.0, Windows, Python 2.5.)

______________________________________________________________________
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

Reply via email to