- 11 May, 2020 6 commits
-
-
Stefan Behnel authored
-
Stefan Behnel authored
Avoid MSVC warning in refnanny about an integer assignment that reduces the value range (although it's probably safe to assume that C code line numbers > 2^30 will remain rare for another while).
-
Stefan Behnel authored
Avoid an additional utility code section for 2-exception matching by relying on existing special-cased macros.
-
da-woods authored
For Py3.5+, where inittab should really be used instead. For GCC, Clang, MSVC and C++14
-
Stefan Behnel authored
-
Stefan Behnel authored
Add a dedicated subtype check function for testing against two possible base classes in Py3 (currently used for generator exception checks).
-
- 10 May, 2020 3 commits
-
-
Stefan Behnel authored
Simplify and clean up the embedded main import code to make it work how it's officially supposed to work: use the inittab.
-
Stefan Behnel authored
-
Stefan Behnel authored
Avoid generating an "abort()" check for known non-0 steps in prange(). Instead, make it a compile time error if we know it's zero.
-
- 09 May, 2020 12 commits
-
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
Fix optimisation of aligned '%' formats ('%05s', '%-5s') into the correct f-string alignment format. Closes https://github.com/cython/cython/issues/3476
-
Stefan Behnel authored
-
scoder authored
Floats do not support '{x:d}' formatting and need conversion to 'int' first. Closes https://github.com/cython/cython/issues/3092
-
scoder authored
Floats do not support '{x:d}' formatting and need conversion to 'int' first. Closes https://github.com/cython/cython/issues/3092
-
scoder authored
Reimplement __Pyx_PyDict_GetItemStrWithError() as a hacky version in Py2 to get the semantics right of returning a borrowed reference with non-KeyError exceptions left in place. Closes https://github.com/cython/cython/issues/3578
-
Stefan Behnel authored
-
Stefan Behnel authored
Add comment to explain why "better" GIL handling is not needed in special methods (because it's held anyway).
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
Closes https://github.com/cython/cython/issues/3590
-
- 08 May, 2020 6 commits
-
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Dean Scarff authored
Test modf, since it's in C89 and has a non-trivial signature.
-
Dean Scarff authored
cimport some C99 float and long double functions, and test legacy kwargs for double functions.
-
Dean Scarff authored
Adds many long double variants (e.g. expl) that were previously omitted. No functions have been removed. I've omitted the identifier for trivial parameters in new functions. However, I've retained them for existing functions for compatibility with legacy kwargs. Classes of functions/macros that are still missing: - error-handling ones, like math_errhandling and MATH_ERRNO - Bessel functions like j0, y0 Fixes cython/cython#3570
-
Dean Scarff authored
Sorting alphabetically by function name makes it easier to audit changes. Also changes "type *" -> "type*"
-
- 07 May, 2020 10 commits
-
-
Stefan Behnel authored
-
Stefan Behnel authored
Closes #3579.
-
Stefan Behnel authored
Restore the previous PyThreadState_Get() calls in the refnanny, but with a comment explaining the purpose of the "useless" calls.
-
Stefan Behnel authored
-
Stefan Behnel authored
Turn all legacy struct fields in the NumPy ndarray type into properties and document them (copied from NumPy docs). Adapt the 'nogil' declarations according to the ones in NumPy and add some missing functions. See https://github.com/numpy/numpy/pull/16170
-
Stefan Behnel authored
-
scoder authored
* Support for versioned pxd files like "lib.cython-30.pxd" for a Cython 3.0+ version. See https://github.com/cython/cython/issues/3573 * Fix test in Py2 by avoiding namespace packages in favour of a normal package.
-
Stefan Behnel authored
Remove "PYTHONHOME" setting from embed-test since it seems to break the I/O encoding setup in (at least) Py3.8+ venvs.
-
Stefan Behnel authored
-
Stefan Behnel authored
-
- 06 May, 2020 3 commits
-
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
See https://github.com/numpy/numpy/pull/16170
-