serge-sans-paille
pythran
BlogDocsChangelog

Performance History

Latest Results

Support passing package name as pythran signature This patch introduces a new argument type of the form `<name> pkg`, for instance `numpy pkg`. It's a special function export type which, if used, must be used consistently across all overloads for that exported function. To support that change, a new pre-processing step has been added. It performs package inference, and tries hard to statically resolve a package name based on the lookup made on it. If a single package matches the constraints, that package is picked. Otherwise nothing is done. The pythran signature just adds an extra constraint. For instance, #pythran export foo(float, numpy pkg) def foo(x, np): return np.cos(x) is equivalent to the following: #pythran export foo(float, numpy pkg) def foo(x, _): import numpy as np return np.cos(x) The exported foo function still has two parameters and the second parameter is going to check that the passed argument is a module named 'numpy'. Fix #2367
bug/2367
3 days ago
fix-doc-test
bug/2367
8 days ago
fix-doc-test
bug/2367
9 days ago
fix-doc-test
bug/2367
10 days ago

Active Branches

[WIP] Support passing package name as pythran signature
last run
3 days ago
#2371
CodSpeed Performance Gauge
0%
#2377
CodSpeed Performance Gauge
0%
© 2025 CodSpeed Technology
Home Terms Privacy Docs