Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
C cython
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Labels
    • Labels
  • Merge requests 0
    • Merge requests 0
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • nexedi
  • cython
  • Repository

Switch branch/tag
  • cython
  • tests
  • run
  • verbatiminclude.pyx
Find file BlameHistoryPermalink
  • Victor Stinner's avatar
    Use Py_SET_SIZE() and Py_SET_REFCNT() on Python 3.9.0a4 and newer (GH-3639) · 63ab284d
    Victor Stinner authored May 27, 2020
    * Add __Pyx_SET_SIZE() function: use Py_SET_SIZE() on Python 3.9.0a4
    and newer, or use Py_SIZE() as an l-value on older Python versions.
    
    Py_SIZE() must not be used as an l-value anymore in Python 3.9:
    Py_SET_SIZE() must be used instead:
    
    * https://bugs.python.org/issue39573
    * https://docs.python.org/dev/c-api/structures.html#c.Py_SET_SIZE
    
    * Add __Pyx_SET_REFCNT() function: use Py_SET_REFCNT() on Python 3.9.0a4
    and newer, or use Py_REFCNT() as an l-value on older Python versions.
    
    Py_REFCNT() must not be used as an l-value anymore in Python 3.9:
    Py_SET_REFCNT() must be used instead:
    
    * https://bugs.python.org/issue39573
    * https://docs.python.org/dev/c-api/structures.html#c.Py_SET_REFCNT
    
    Use it in ModuleNode.generate_usr_dealloc_call():
    
    * Replace ++Py_REFCNT(o) with __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1)
    * Replace --Py_REFCNT(o) with __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1)
    63ab284d
verbatiminclude.pyx 978 Bytes
EditWeb IDE

Replace verbatiminclude.pyx

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7