Open
Description
At the moment list_caster
in stl.h
explicitly checks whether the input argument is a sequence
, but I would like to argue that that's slightly too restrictive and iterable
should be accepted.
The only potential downside I can think of is that generators should definitely not be accepted as a failed conversion of an element halfway through the generator would leave things in a terrible state, but a well-placed PyGen_Check
could prevent that.
Metadata
Metadata
Assignees
Labels
No labels