Weird/different behaviour of obj.downcast::<PyIterator>()
on Windows vs. MacOS and Linux
#2902
Answered
by
davidhewitt
samuelcolvin
asked this question in
Questions
-
See pydantic/pydantic-core#367 and the associated failing test. Effectively, from collections import Sequence
class MySequence(Sequence):
def __init__(self):
self._data = [1, 2, 3]
def __getitem__(self, index):
return self._data[index]
def __len__(self):
return len(self._data)
input_value = MySequence() Anyone have any idea why this is? Could this be a bug in pyo3 or cpython? @davidhewitt any input would be great. |
Beta Was this translation helpful? Give feedback.
Answered by
davidhewitt
Jan 25, 2023
Replies: 1 comment
-
For the record, follow up in #2913 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
samuelcolvin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For the record, follow up in #2913