1. 07 Jul, 2019 6 commits
  2. 05 Jul, 2019 8 commits
    • Stefan Behnel's avatar
      Merge branch '0.29.x' · f5447b76
      Stefan Behnel authored
      f5447b76
    • Stefan Behnel's avatar
      Update changelog. · bc5ae161
      Stefan Behnel authored
      bc5ae161
    • Stefan Behnel's avatar
      ecf6ccdb
    • Orivej Desh's avatar
      Fix error positions of undefined builtins and constants (GH-3030) · b1e7dd3b
      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
      b1e7dd3b
    • Orivej Desh's avatar
      Fix error positions of undefined builtins and constants (GH-3030) · edf66a93
      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
      edf66a93
    • Stefan Behnel's avatar
      Fix a C compiler warning about an implicitly reduced integer range (Py_ssize_t... · 482e17b0
      Stefan Behnel authored
      Fix a C compiler warning about an implicitly reduced integer range (Py_ssize_t -> int) when calling a helper function.
      Closes GH-3028.
      482e17b0
    • Stefan Behnel's avatar
      Merge branch '0.29.x' · 6306793d
      Stefan Behnel authored
      6306793d
    • Stefan Behnel's avatar
      Fix PyCode_New() signature usage in Py3.8b2+. · 0d888391
      Stefan Behnel authored
      Closes GH-3031
      0d888391
  3. 04 Jul, 2019 2 commits
  4. 03 Jul, 2019 1 commit
  5. 02 Jul, 2019 1 commit
  6. 30 Jun, 2019 1 commit
  7. 29 Jun, 2019 10 commits
  8. 28 Jun, 2019 8 commits
  9. 25 Jun, 2019 1 commit
    • Kirill Smelkov's avatar
      Include: cpython.pystate: Make PyGILState_STATE definition usable (GH-2997) · 82a0ed43
      Kirill Smelkov authored
      PyGILState_STATE was added in commit 3fd6fdce (Gilnanny + pystate.pxd)
      with struct type on-purpose different from what CPython actually uses
      with the idea so that PyGILState_STATE cannot be coerced into int.
      
      However as it is, it prevents PyGILState_STATE usage:
      
      	cdef PyGILState_STATE gstate = PyGILState_Ensure()
      
      gives
      
      	Variable type 'PyGILState_STATE' is incomplete
      
      Fix it by making PyGILState_STATE a defined structure.
      82a0ed43
  10. 24 Jun, 2019 1 commit
  11. 23 Jun, 2019 1 commit