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/2012-March/117319.html below:

[Python-Dev] slice subscripts for sequences and mappings

[Python-Dev] slice subscripts for sequences and mappings [Python-Dev] slice subscripts for sequences and mappingsAntoine Pitrou solipsis at pitrou.net
Sun Mar 4 14:56:38 CET 2012
On Sat, 3 Mar 2012 18:20:22 -0800
Thomas Wouters <thomas at python.org> wrote:
> 
> I'm not sure how the ABCs, which are abstract declarations of semantics,
> tie into this specific implementation detail. ABCs work just as well for
> Python types as for C types, and Python types don't have this distinction.
> The distinction in C types has been *practically* useless for years, so why
> should it stay? What is the actual benefit here?

For one, it's certainly easier to implement an extension type if your
getitem function receives a Py_ssize_t directly, rather than a PyObject.
(it can be more efficient too)

Regards

Antoine.
More information about the Python-Dev mailing list

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