[Python-Dev] Why aren't more things weak referencable (original) (raw)
Bob Ippolito bob at redivi.com
Sun May 30 01:24:07 EDT 2004
- Previous message: [Python-Dev] Why aren't more things weak referencable
- Next message: [Python-Dev] Why aren't more things weak referencable
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On May 29, 2004, at 1:06 PM, Raymond Hettinger wrote:
Instances of classes inheriting from str, tuple, etc cannot be weakly referenced. Does anyone know the reason for this?
They can not accept non-empty slots either, which is probably closer to the source of the problem. I have no idea what the reason is. I imagine it's something to do with optimization, and/or because they are immutable.
-bob -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2357 bytes Desc: not available Url : http://mail.python.org/pipermail/python-dev/attachments/20040530/5b48fc95/smime.bin
- Previous message: [Python-Dev] Why aren't more things weak referencable
- Next message: [Python-Dev] Why aren't more things weak referencable
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]