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/2011-April/110509.html below:

Pure Python/C Accelerator Module Compatibiilty Requirements

[Python-Dev] PEP 399: Pure Python/C Accelerator Module Compatibiilty Requirements [Python-Dev] PEP 399: Pure Python/C Accelerator Module Compatibiilty RequirementsStefan Behnel stefan_ml at behnel.de
Wed Apr 6 22:35:17 CEST 2011
James Y Knight, 06.04.2011 17:03:
> On Apr 6, 2011, at 10:08 AM, Nick Coghlan wrote:
>> Argument handling is certainly a tricky one - getting positional only
>> arguments requires a bit of a hack in pure Python code (accepting
>> *args and unpacking the arguments manually), but it comes reasonably
>> naturally when parsing arguments directly using the C API.
>
> Perhaps the argument handling for C functions ought to be enhanced to work like python's argument handling, instead of trying to hack it the other way around?

FWIW, Cython implemented functions have full Python 3 semantics for 
argument unpacking but the generated code is usually faster (and sometimes 
much faster) than the commonly used C-API function calls because it is 
tightly adapted to the typed function signature.

Stefan

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