1. 12 Feb, 2020 3 commits
  2. 06 Feb, 2020 1 commit
  3. 30 Jan, 2020 2 commits
  4. 29 Jan, 2020 1 commit
  5. 13 Jan, 2020 1 commit
  6. 08 Jan, 2020 1 commit
  7. 02 Jan, 2020 1 commit
  8. 28 Dec, 2019 2 commits
  9. 01 Nov, 2019 5 commits
  10. 16 Oct, 2019 1 commit
  11. 14 Oct, 2019 1 commit
    • Thomas A Caswell's avatar
      FIX: do not include tp_print for py39 (GH-3186) · aa56a6b1
      Thomas A Caswell authored
      This is more follow up to https://bugs.python.org/issue37250
      
      The action taken is:
       - restore tp_print to not break all of the sdists on pypi for py38
       - remove tp_print for real in py39
      
      In https://github.com/cython/cython/pull/3171 tp_print was initialized
      for PY_VERSION_HEX >= 0x030800b4 however, when trying to use cython
      with cpython master (aka py39) there are compile time exceptions due
      to too many initializers:
      
         error: too many initializers for ‘PyTypeObject’ {aka ‘_typeobject’}
      
      This fixes that by putting an upper bound on the ifdef of including
      pt_print at the end of the object.
      aa56a6b1
  12. 08 Oct, 2019 4 commits
  13. 10 Sep, 2019 2 commits
    • Gerion Entrup's avatar
      Utility/CppConvert: fix Cython warning (GH-3108) · cea380ed
      Gerion Entrup authored
      When compiling to C++ code and using automatic conversion from Python
      str to C++ string, Cython inserts this function template but generates the warning:
      warning: string.from_py:15:63: local variable 'length' might be referenced before assignment
      cea380ed
    • telamonian's avatar
      fixes #2675 · c5895c6d
      telamonian authored
      c5895c6d
  14. 23 Aug, 2019 1 commit
  15. 21 Aug, 2019 3 commits
  16. 26 Jul, 2019 1 commit
  17. 19 Jul, 2019 4 commits
  18. 10 Jul, 2019 1 commit
  19. 07 Jul, 2019 3 commits
  20. 05 Jul, 2019 2 commits
    • 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