Why does Python code use len() function instead of a length method?

Veröffentlicht am: 04 März 2023
auf dem Kanal: The Python Oracle
2
0

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: Hypnotic Puzzle2

--

Chapters
00:00 Question
00:24 Accepted answer (Score 197)
01:04 Answer 2 (Score 110)
02:48 Answer 3 (Score 40)
04:59 Answer 4 (Score 36)
05:13 Thank you

--

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

Accepted answer links:
[len()]: http://www.python.org/doc/2.5.2/lib/b...
[Emulating container types]: http://www.python.org/doc/2.5.2/ref/s...
[Python and the Principle of Least Astonishment]: http://lucumr.pocoo.org/2011/7/9/pyth...

Answer 2 links:
[this question]: https://stackoverflow.com/questions/8...

Answer 3 links:
[PyVarObject]: http://hg.python.org/cpython/file/8c8...
[Python Data Model]: https://docs.python.org/3.4/reference...
[this one]: http://effbot.org/pyfaq/why-does-pyth...

--

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

--

Tags
#python

#avk47


Auf dieser Seite können Sie das Online-Video Why does Python code use len() function instead of a length method? mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer The Python Oracle 04 März 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 2 Mal angesehen und es wurde von 0 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!