[Python-Dev] Proposal: explicitly disallow function/class mismatches in accelerator modules

Tres Seaver tseaver at palladion.com
Sat Jul 9 10:56:46 EDT 2016


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/09/2016 09:50 AM, Nick Coghlan wrote:

> Given that the issues that arose in this case weren't at all obvious 
> up front, what do folks think of the idea of updating PEP 399 to 
> explicitly prohibit class/function mismatches between accelerator 
> modules and their pure Python counterparts?
> 
> The rationale for making such a change is that when it comes to true 
> drop-in API compatibility, we have reasonable evidence that "they're 
> both callables" isn't sufficient once the complexities of real world 
> applications enter the picture.

+1.  Might need some clarification:

- - "C functions can fall back to ________________".

- - "C classes must fall back to Python classes".

Outlining the constraints in the PEP (identical pickling semantics,
sublcassability, etc.) might be important, too.



Tres.
- -- 
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJXgRCpAAoJEPKpaDSJE9HYNhwP+gN1xGSZlEvrxz5SGrqTneUx
5WDh2oUJzlTFHDrbSMTeGcpoYviWPLWFy0Hw7PBgRhrlA/TS7WA5/4ABde+2Zs0w
PN5AaaXZrkGAHvcQZkBzcEY9ITSpeb+GSmLG4Eih30UAuPFnM3M1UYSjEGjVZV23
tYeDTcmORNaBcQDPG8HiidfOArBKTcz8Jd1IimFrYEOFGSsk6DxPWffJ3EkR6qFj
FwsktPDZT113AiztrkLt1s8vyLj8JdzkGKJO+fSfOsp70NZCRy1SKi6tJjHfd4e5
qf9qgi9yh39y+VktBV0o83+gkaGlOKIPRCqOYdkOQHl59RT0YWBoRuXrVtmE00fl
QoePBxJjVszlzknULLOXptv0B0sv0ZhsXPgID3hhZ0Z78LQ1RG/9fquGGbfOFfe0
qiPR4LZKCTatP4jvxV3PVKJ9NdXb8OKmfF7oEO7t8WZBJUMtpeuKOw5Qj6Am1pTA
UUtDuCXeP0rPVE6Nj5p3NuhkVWuW9eX+7v4XhUC+t4c74PeDo+Fx+LjZF/D3WGVr
yD2fcoL16mZ/+LWbxblVkhmsNQpyogtZfj/yvnLctMlGfvseMV9tPOe4GG5QLexW
HRl3fSMRIi6MjYnxQyeF/vp+eWd6ApK9EIFqYcLWO+AjzXeZ8uS8+ezGzA7ZUvyG
GKJB/ThZHTxuszh7kUgq
=mRpk
-----END PGP SIGNATURE-----



More information about the Python-Dev mailing list