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 mark.dickinson
Recipients congma, mark.dickinson, rhettinger, tim.peters
Date 2021-03-11.17:57:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1615485431.44.0.527639271694.issue43475@roundup.psfhosted.org>
In-reply-to
Content
Hmm. On second thoughts, the proposed solution wouldn't actually *help* with the situation I gave: the elements (lazily) realised from the NumPy array are highly likely to all end up with the same address in RAM. :-(

>>> x = np.full(10, np.nan)
>>> for v in x:
...     print(id(v))
...     del v
... 
4601757008
4601757008
4601757008
4601757008
4601757008
4601757008
4601757008
4601757008
4601757008
4601757008
History
Date User Action Args
2021-03-11 17:57:11mark.dickinsonsetrecipients: + mark.dickinson, tim.peters, rhettinger, congma
2021-03-11 17:57:11mark.dickinsonsetmessageid: <1615485431.44.0.527639271694.issue43475@roundup.psfhosted.org>
2021-03-11 17:57:11mark.dickinsonlinkissue43475 messages
2021-03-11 17:57:11mark.dickinsoncreate