[ python-Bugs-1190011 ] [AST] distinct code objects not created

SourceForge.net noreply at sourceforge.net
Tue Apr 26 08:10:10 CEST 2005


Bugs item #1190011, was opened at 2005-04-25 23:10
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=1190011&group_id=5470

Category: Parser/Compiler
Group: AST
Status: Open
Resolution: None
Priority: 5
Submitted By: Brett Cannon (bcannon)
Assigned to: Nobody/Anonymous (nobody)
Summary: [AST] distinct code objects not created

Initial Comment:
>> def f(): return ((lambda x=1: x), (lambda x=2: x))
>> f1, f2 = f()
>> id(f1.func_code) != id(f2.func_code)

The above does not hold true.  It should according to
test_compile (reported in HEAD as bug #1048870).

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1190011&group_id=5470


More information about the Python-bugs-list mailing list