FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Question re PyObject_Del() being converted to PyObject_Free() · Issue #103 · python/pythoncapi-compat · GitHub

Repository navigation

Question re PyObject_Del() being converted to PyObject_Free() #103

Description

The upgrade script replaces the following call to PyObject_Del() with PyObject_Free() here: https://github.com/pygobject/pycairo/blob/ce6118526606f93d3132f881bf548ce746b782fe/cairo/path.c#L242 and it seems deliberate (??)

PyObject_Del() is documented to be used for PyObject_New() or PyObject_NewVar(), while PyObject_Free() is documented to be used for PyObject_Malloc(), PyObject_Realloc() or PyObject_Calloc(), otherwise it is undefined behavior.

I'm a bit confused by this.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL