Message323300
OK, so the crux of the bug is this difference:
>>> a = (1, 2)
>>> tuple(x for x in a)
(1, 2)
>>> NamedTupleAttribute(x for x in a)
NamedTupleAttribute(example=<generator object <genexpr> at 0x10e2e52a0>)
A potential solution would be to either use `type(obj) in (list, tuple)` instead of `isinstance(obj, (list, tuple))` (and thus cause using copy.deepcopy for everything else), but this might break some use cases (IMO quite unlikely).
Any other thoughts? |
|
Date |
User |
Action |
Args |
2018-08-08 20:11:56 | levkivskyi | set | recipients:
+ levkivskyi, eric.smith, alexdelorenzo |
2018-08-08 20:11:56 | levkivskyi | set | messageid: <1533759116.1.0.56676864532.issue34363@psf.upfronthosting.co.za> |
2018-08-08 20:11:56 | levkivskyi | link | issue34363 messages |
2018-08-08 20:11:56 | levkivskyi | create | |
|