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. It is resolved before any compilation step and is syntactically equivalent to statically resolving the given argument to the given package. 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) It also propagates through function arguments, baring some limitations. 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
2 days ago
WIP
bug/2367
3 days ago

Active Branches

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