Skip to content
This repository was archived by the owner on Jul 5, 2023. It is now read-only.
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add notes on the origin of the backports
  • Loading branch information
emmatyping committed May 9, 2020
commit 9a20276e27bbbd2a92d4981f6c038dcb7e6beaf5
3 changes: 2 additions & 1 deletion ast3/Custom/pegen_extra.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "../Include/pegen_extra.h"

// Backport of _PyObject_LookupAttr for 3.6
int
_Pegen_PyObject_LookupAttr(PyObject *v, PyObject *name, PyObject **result)
{
Expand Down Expand Up @@ -49,7 +50,7 @@ _Pegen_PyObject_LookupAttr(PyObject *v, PyObject *name, PyObject **result)
return 0;
}

// Backports for Python 3.6
// Backports of _PyType_Name for Python 3.6
const char *
_Ta3Type_Name(PyTypeObject *type)
{
Expand Down