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 Pierre van de Laar
Recipients Pierre van de Laar
Date 2020-11-11.08:54:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1605084868.75.0.599724554356.issue42320@roundup.psfhosted.org>
In-reply-to
Content
On windows, with python 3.9, with unittests,

My test case fails when I use the following lines of code
```
result = map(lambda x: self.substitute_in_expression(x),
                     sequence.sequence)
```
It works fine with
```
result = list()
for x in sequence.sequence:
     result.append(self.substitute_in_expression(x))
```

Note that result is used as input for an inherited class instantiation:
```
        sequence_type = type(sequence)
        return sequence_type(result)
```
The classes are constructed using the dataclass decorator!


I have unfortunately not have time to make a small reproducer.
So I just send the whole project.
History
Date User Action Args
2020-11-11 08:54:28Pierre van de Laarsetrecipients: + Pierre van de Laar
2020-11-11 08:54:28Pierre van de Laarsetmessageid: <1605084868.75.0.599724554356.issue42320@roundup.psfhosted.org>
2020-11-11 08:54:28Pierre van de Laarlinkissue42320 messages
2020-11-11 08:54:27Pierre van de Laarcreate