[ python-Bugs-1542166 ] global variable: multiple id()-addresses
SourceForge.net
noreply at sourceforge.net
Thu Aug 17 20:37:11 CEST 2006
Bugs item #1542166, was opened at 2006-08-17 14:37
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1542166&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Interpreter Core
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Frank R. Schaefer (fschaef)
Assigned to: Nobody/Anonymous (nobody)
Summary: global variable: multiple id()-addresses
Initial Comment:
The **attachment** contains an example where one single
global variable appears at two different positions
when applying the 'id(...)' function.
The following files are attached:
core.py: contains the definition of the global
variable, two example functions, and
a minimal class definition.
test.py: a test program displaying that the global
variable in core.py has two addresses.
result.txt: the output of the test.py procedure.
In practical this means that a variable
'my_module.global_var' may refer to two
different objects!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1542166&group_id=5470
More information about the Python-bugs-list
mailing list