An error occurred fetching the project authors.
  1. 08 Jul, 2019 17 commits
  2. 05 Jul, 2019 2 commits
    • 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
  3. 01 Jun, 2019 1 commit
  4. 30 May, 2019 1 commit
  5. 24 Apr, 2019 1 commit
    • Pablo Galindo's avatar
      Clean weakrefs before calling user's dealloc · 82b029b3
      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.
      82b029b3
  6. 22 Mar, 2019 2 commits
  7. 04 Mar, 2019 3 commits
  8. 03 Mar, 2019 1 commit
  9. 19 Feb, 2019 1 commit
  10. 17 Feb, 2019 1 commit
  11. 03 Feb, 2019 1 commit
  12. 12 Jan, 2019 1 commit
  13. 11 Jan, 2019 1 commit
  14. 01 Nov, 2018 1 commit
  15. 30 Oct, 2018 1 commit
  16. 23 Oct, 2018 1 commit
  17. 02 Oct, 2018 3 commits
  18. 29 Sep, 2018 1 commit