An error occurred fetching the project authors.
- 08 Jul, 2019 17 commits
- 05 Jul, 2019 2 commits
-
-
Orivej Desh authored
Currently Cython generates code like this: int __Pyx_InitCachedBuiltins(void) { __pyx_builtin_NAME = __Pyx_GetBuiltinName(...); if (!__pyx_builtin_NAME) __PYX_ERR(1, 44, __pyx_L1_error) } int __pyx_pymod_exec_MODULE(PyObject *__pyx_pyinit_module) { if (__Pyx_InitCachedBuiltins() < 0) __PYX_ERR(1, 1, __pyx_L1_error) } When InitCachedBuiltins and InitCachedConstants call __PYX_ERR, they pass the file and line where a builtin is used, but then pymod_exec overwrites it with 1 and 1, and the error message looks like this: File "FILE", line 1, in init MODULE. import os NameError: name 'NAME' is not defined After this change Cython generates: int __pyx_pymod_exec_MODULE(PyObject *__pyx_pyinit_module) { if (__Pyx_InitCachedBuiltins() < 0) goto __pyx_L1_error; } and prints: File "FILE", line 44, in init MODULE. print(NAME) NameError: name 'NAME' is not defined
-
Orivej Desh authored
Currently Cython generates code like this: int __Pyx_InitCachedBuiltins(void) { __pyx_builtin_NAME = __Pyx_GetBuiltinName(...); if (!__pyx_builtin_NAME) __PYX_ERR(1, 44, __pyx_L1_error) } int __pyx_pymod_exec_MODULE(PyObject *__pyx_pyinit_module) { if (__Pyx_InitCachedBuiltins() < 0) __PYX_ERR(1, 1, __pyx_L1_error) } When InitCachedBuiltins and InitCachedConstants call __PYX_ERR, they pass the file and line where a builtin is used, but then pymod_exec overwrites it with 1 and 1, and the error message looks like this: File "FILE", line 1, in init MODULE. import os NameError: name 'NAME' is not defined After this change Cython generates: int __pyx_pymod_exec_MODULE(PyObject *__pyx_pyinit_module) { if (__Pyx_InitCachedBuiltins() < 0) goto __pyx_L1_error; } and prints: File "FILE", line 44, in init MODULE. print(NAME) NameError: name 'NAME' is not defined
-
- 01 Jun, 2019 1 commit
-
-
Stefan Behnel authored
Avoid checking Py_TPFLAGS_HAVE_FINALIZE in Py3.8 and later since CPython now relies on the feature being there.
-
- 30 May, 2019 1 commit
-
-
realead authored
-
- 24 Apr, 2019 1 commit
-
-
Pablo Galindo authored
We must clean the weakreferences before calling the user's __dealloc__ because if the __dealloc__ releases the GIL, a weakref can be dereferenced accessing the object in an inconsistent state or resurrecting it.
-
- 22 Mar, 2019 2 commits
-
-
Stefan Behnel authored
See #1555.
-
Stefan Behnel authored
-
- 04 Mar, 2019 3 commits
-
-
Stefan Behnel authored
At module cleanup time, clear the module dict before the global references that its content might still be using.
-
Stefan Behnel authored
Keep owned references to builtins module, "cython_runtime" module and preimport module to prevent crashes when they get removed from sys.modules. Generate cleanup code for them in the end. Closes #2885.
-
Stefan Behnel authored
Support CPython builds with docstrings disabled by wrapping docstring literals in the `PyDoc_STR()` macro. Closes GH-884.
-
- 03 Mar, 2019 1 commit
-
-
Stefan Behnel authored
-
- 19 Feb, 2019 1 commit
-
-
Robert Bradshaw authored
This fixes Github issue #2819.
-
- 17 Feb, 2019 1 commit
-
-
Jeroen Demeyer authored
-
- 03 Feb, 2019 1 commit
-
-
Robert Bradshaw authored
This fixes Github issue #2819.
-
- 12 Jan, 2019 1 commit
-
-
Stefan Behnel authored
-
- 11 Jan, 2019 1 commit
-
-
Stefan Behnel authored
Export "PyInit___init__" and "init__init__" as additional module init functions under Windows to make compiled packages work.
-
- 01 Nov, 2018 1 commit
-
-
Robert Bradshaw authored
Also add a compile time check for SIZEOF_VOID_P. This fixes #2670. See also https://bugs.python.org/issue35037 https://bugs.python.org/issue4709
-
- 30 Oct, 2018 1 commit
-
-
Stefan Behnel authored
Closes #2692.
-
- 23 Oct, 2018 1 commit
-
-
Robert Bradshaw authored
Also add a compile time check for SIZEOF_VOID_P. This fixes #2670. See also https://bugs.python.org/issue35037 https://bugs.python.org/issue4709
-
- 02 Oct, 2018 3 commits
-
-
Robert Bradshaw authored
-
Robert Bradshaw authored
-
Robert Bradshaw authored
-
- 29 Sep, 2018 1 commit
-
-
Stefan Behnel authored
Rename the options of the "check_size" feature to make them more obvious: "warn" warns, "error" fails, and "extend" silently allows extending. Closes #2627.
-