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 eukreign
Recipients eukreign
Date 2012-02-22.23:29:07
SpamBayes Score 9.785237e-09
Marked as misclassified No
Message-id <1329953348.22.0.00582409575183.issue14092@psf.upfronthosting.co.za>
In-reply-to
Content
The following behavior doesn't make sense, especially since it works correctly for other special attributes:

>>> class F:
	__name__ = "Foo"

>>> F.__name__
'F'
>>> F().__name__
'Foo'
>>> F.__name__ = 'Foo'
>>> F.__name__
'Foo'


Works fine for __module__ and others:

>>> class F:
	__module__ = "mod"
	
>>> F.__module__
'mod'
>>> F
<class mod.F at 0x0212B360>
History
Date User Action Args
2012-02-22 23:29:08eukreignsetrecipients: + eukreign
2012-02-22 23:29:08eukreignsetmessageid: <1329953348.22.0.00582409575183.issue14092@psf.upfronthosting.co.za>
2012-02-22 23:29:07eukreignlinkissue14092 messages
2012-02-22 23:29:07eukreigncreate