DAGDA SEARCH | Back to results | Support

Message 332343 - Python tracker

Source: https://bugs.python.org/msg332343

homepage

Message332343 ➜

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 skrah
Recipients Kentzo, skrah
Date 2018-12-22.11:24:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1545477848.09.0.98272194251.issue35548@roundup.psfhosted.org>
In-reply-to
Content
The feature would violate fundamental Python invariants. If you modify the example above:

>>> t = (m,)
>>> b"\001\002\003" in t
True
>>> x[0] = 100
>>> b"\001\002\003" in t
False


This is simply never supposed to happen in Python. If an immutable
object (Bytes) is regarded as being a member of a tuple, it should
stay in that tuple.


The issue has to be fixed on the NumPy side: They could implement
a scheme that allows hashing of a specific ndarray if a new flag
"IMMUTABLE" is set that locks the exporter and all exports.


I don't thing NumPy's current behavior can be regarded as a bug.
As I said, "readonly" never meant "immutable", it was always a
property of a single view.
History
Date User Action Args
2018-12-22 11:24:09skrahsetrecipients: + skrah, Kentzo
2018-12-22 11:24:08skrahsetmessageid: <1545477848.09.0.98272194251.issue35548@roundup.psfhosted.org>
2018-12-22 11:24:08skrahlinkissue35548 messages
2018-12-22 11:24:08skrahcreate
Supported by The Python Software Foundation,
Powered by Roundup Copyright © 1990-2022, Python Software Foundation
Legal Statements