Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove wrong C call _go_PyType_GetName #6

Merged
merged 2 commits into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 0 additions & 4 deletions macro.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ int _go_PyType_CheckExact(PyObject *o) {
return PyType_CheckExact(o);
}

int _go_PyType_GetName(PyTypeObject *t) {
return PyType_GetName(t);
}

int _go_PyLong_Check(PyObject *p) {
return PyLong_Check(p);
}
Expand Down
1 change: 0 additions & 1 deletion macro.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ void _go_Py_LeaveRecursiveCall();

int _go_PyType_Check(PyObject *o);
int _go_PyType_CheckExact(PyObject *o);
int _go_PyType_GetName(PyTypeObject *t);

int _go_PyLong_Check(PyObject *p);
int _go_PyLong_CheckExact(PyObject *p);
Expand Down
10 changes: 0 additions & 10 deletions type.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,3 @@ func PyType_Check(o *PyObject) bool {
func PyType_CheckExact(o *PyObject) bool {
return C._go_PyType_CheckExact(toc(o)) != 0
}

// func PyType_GetName(o *PyObject) string {
// r := togo(C._go_PyType_GetName(toc(o.Type())))
// defer r.DecRef()
//
// str := r.Str()
// defer str.DecRef()
//
// return PyUnicode_AsUTF8(str)
// }
Loading