How come regex match objects aren't iterable even though they implement __getitem__?
This video explains
How come regex match objects aren't iterable even though they implement __getitem__?
--
Become part of the top 3% of the developers by applying to Toptal
https://topt.al/25cXVn
--
Track title: CC C Schuberts Piano Sonata No 13 D
--
Chapters
00:00 Question
01:03 Accepted answer (Score 59)
02:46 Thank you
--
Full question
https://stackoverflow.com/questions/5235...
Question links:
[implementing a ]: https://stackoverflow.com/questions/9265...
Accepted answer links:
[tp_as_sequence]: https://docs.python.org/3/c-api/typeobj....
[tp_as_mapping]: https://docs.python.org/3/c-api/typeobj....
[[1]]: https://docs.python.org/3/c-api/typeobj....
[[2]]: https://docs.python.org/3/c-api/typeobj....
[SRE_Match]: https://github.com/python/cpython/blob/7...
[PyObject_GetIter]: https://github.com/python/cpython/blob/7...
[PySequenceCheck]: https://github.com/python/cpython/blob/7...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #iterable
#avk47
How come regex match objects aren't iterable even though they implement __getitem__?
--
Become part of the top 3% of the developers by applying to Toptal
https://topt.al/25cXVn
--
Track title: CC C Schuberts Piano Sonata No 13 D
--
Chapters
00:00 Question
01:03 Accepted answer (Score 59)
02:46 Thank you
--
Full question
https://stackoverflow.com/questions/5235...
Question links:
[implementing a ]: https://stackoverflow.com/questions/9265...
Accepted answer links:
[tp_as_sequence]: https://docs.python.org/3/c-api/typeobj....
[tp_as_mapping]: https://docs.python.org/3/c-api/typeobj....
[[1]]: https://docs.python.org/3/c-api/typeobj....
[[2]]: https://docs.python.org/3/c-api/typeobj....
[SRE_Match]: https://github.com/python/cpython/blob/7...
[PyObject_GetIter]: https://github.com/python/cpython/blob/7...
[PySequenceCheck]: https://github.com/python/cpython/blob/7...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #iterable
#avk47