A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-July/006258.html below:

[Python-Dev] PyXXX_Size vs. PyXXX_Length

[Python-Dev] PyXXX_Size vs. PyXXX_Length [Python-Dev] PyXXX_Size vs. PyXXX_LengthMark Hammond MarkH@ActiveState.com
Wed, 12 Jul 2000 10:47:40 -0400
> Tuple, List, String, and Dict have a PyXXX_Size method.  The abstract
> object interface uses PySequence_Length.  This is inconsistent and
> hard to remember.  Can we add PySequence_Size and mark Length as
> deprecated?

I definately prefer "length" - for example, with Unicode, PyUnicode_Size()
implies the number of bytes (the size of the data structure) while
PyUnicode_Length() implies the number of characters.

Mark.




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4