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 serhiy.storchaka
Recipients asvetlov, docs@python, mdk, serhiy.storchaka, xtreak
Date 2018-09-28.09:50:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1538128215.34.0.545547206417.issue34830@psf.upfronthosting.co.za>
In-reply-to
Content
Instances of many builtin types are not weak referencable.

>>> weakref.ref(0)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: cannot create weak reference to 'int' object
>>> weakref.ref([])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: cannot create weak reference to 'list' object
History
Date User Action Args
2018-09-28 09:50:15serhiy.storchakasetrecipients: + serhiy.storchaka, asvetlov, docs@python, mdk, xtreak
2018-09-28 09:50:15serhiy.storchakasetmessageid: <1538128215.34.0.545547206417.issue34830@psf.upfronthosting.co.za>
2018-09-28 09:50:15serhiy.storchakalinkissue34830 messages
2018-09-28 09:50:15serhiy.storchakacreate