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 roysmith
Recipients Windson Yang, chris.jerdonek, docs@python, nedbat, orlnub123, pablogsal, rhettinger, roysmith, serhiy.storchaka, steven.daprano, terry.reedy, vstinner, xtreak
Date 2020-07-02.21:26:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1593725219.99.0.372680081376.issue35105@roundup.psfhosted.org>
In-reply-to
Content
Just as another edge case, type() can do the same thing:

Foo = type("Foo", (object,), {"a b": 1})
f = Foo()

for example, will create a class attribute named "a b".  Maybe this actually calls setattr() under the covers, but if it's going to be documented, it should be noted in both places.
History
Date User Action Args
2020-07-02 21:27:00roysmithsetrecipients: + roysmith, rhettinger, terry.reedy, vstinner, nedbat, steven.daprano, chris.jerdonek, docs@python, serhiy.storchaka, pablogsal, Windson Yang, xtreak, orlnub123
2020-07-02 21:26:59roysmithsetmessageid: <1593725219.99.0.372680081376.issue35105@roundup.psfhosted.org>
2020-07-02 21:26:59roysmithlinkissue35105 messages
2020-07-02 21:26:59roysmithcreate