Author levkivskyi
Recipients alexdelorenzo, eric.smith, levkivskyi
Date 2018-08-08.20:11:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1533759116.1.0.56676864532.issue34363@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2018-08-08 20:11:56levkivskyisetrecipients: + levkivskyi, eric.smith, alexdelorenzo
2018-08-08 20:11:56levkivskyisetmessageid: <1533759116.1.0.56676864532.issue34363@psf.upfronthosting.co.za>
2018-08-08 20:11:56levkivskyilinkissue34363 messages
2018-08-08 20:11:56levkivskyicreate