This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author multun
Recipients multun
Date 2018-10-11.19:15:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1539285304.26.0.788709270274.issue34961@psf.upfronthosting.co.za>
In-reply-to
Content
Hello,

>>> a="global"
>>> def func(a):
...     class wtf():
...             a=a
...     return wtf
... 
>>> func("local").a
'global'
>>> def func2(a):
...     class wtf():
...             b=a
...     return wtf
... 
>>> func2("local").b
'local'


Is this behavior legit ?

Best regards,

--
Victor "multun" Collod
History
Date User Action Args
2018-10-11 19:15:04multunsetrecipients: + multun
2018-10-11 19:15:04multunsetmessageid: <1539285304.26.0.788709270274.issue34961@psf.upfronthosting.co.za>
2018-10-11 19:15:04multunlinkissue34961 messages
2018-10-11 19:15:04multuncreate