The Python Oracle

Python 2, map not equivalent to list comprehension in simple case; length dependent

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Unforgiving Himalayas Looping

--

Chapters
00:00 Question
03:25 Accepted answer (Score 2)
04:41 Answer 2 (Score 0)
06:37 Thank you

--

Full question
https://stackoverflow.com/questions/3405...

Question links:
[(e.g.)]: https://stackoverflow.com/questions/1915...
[here]: https://docs.python.org/2/library/functi...
[1]: https://stackoverflow.com/questions/1247...
[2]: https://stackoverflow.com/questions/1097...
[I see no requirement of invariance in the specification of len]: https://docs.python.org/2/library/functi...
[cpython implements it on line 918 of bltinmodule.c]: https://hg.python.org/cpython/file/c6880...

Accepted answer links:
[1]: https://stackoverflow.com/questions/1247...
[2]: https://stackoverflow.com/questions/1097...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #python2x

#avk47