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 methane
Recipients lgj1993, methane
Date 2019-03-01.10:24:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1551435841.92.0.216346024746.issue36156@roundup.psfhosted.org>
In-reply-to
Content
a.a creates temporal method object.  After id(a.a), it is removed.
So a.a and a.a1 are not "simultaneously existing objects" in your case.

Try this:

x = a.a
y = a.a1
id(x), id(y)

x and y are "simultaneously existing objects" now.
History
Date User Action Args
2019-03-01 10:24:01methanesetrecipients: + methane, lgj1993
2019-03-01 10:24:01methanesetmessageid: <1551435841.92.0.216346024746.issue36156@roundup.psfhosted.org>
2019-03-01 10:24:01methanelinkissue36156 messages
2019-03-01 10:24:01methanecreate