Message322703
> 1. In this case, this will produce the error "tuple.__new__(sys.flags) is not safe". But I didn't call "tuple.__new__", I called sys.flags.__new__, and type(X).__new__(type(X)) should always be safe
Should it? There is no sys.flags.__new__, tuple.__new__ is called and it has different __new__.
> 2. The change in error message for namedtuples (A) isn't related and (B) isn't correct. `tuple.__new__(NamedTuple)` works, and produces a namedtuple object, so tuple.__new__ is what the error should point to.
I believe you are right about (A), it's not related and should be discussed separately. |
|
Date |
User |
Action |
Args |
2018-07-31 00:09:04 | Vadim Pushtaev | set | recipients:
+ Vadim Pushtaev, ppperry |
2018-07-31 00:09:04 | Vadim Pushtaev | set | messageid: <1532995744.78.0.56676864532.issue34284@psf.upfronthosting.co.za> |
2018-07-31 00:09:04 | Vadim Pushtaev | link | issue34284 messages |
2018-07-31 00:09:03 | Vadim Pushtaev | create | |
|