Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 35.2k
gh-138342: Use a common utility for visiting an object's type#138343
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
8598eb58560260d7a5fd8b9751b355c530c21b3024d8ea9e00cb7f4ca05d9d0e86e0d668f0b41c58e4d0bb72a79be0abd96ae2f1d74eb90503223861b03df5File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -96,12 +96,6 @@ newdbmobject(_dbm_state *state, const char *file, int flags, int mode) | ||
| } | ||
| /* Methods */ | ||
| static int | ||
picnixz marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| dbm_traverse(PyObject *dp, visitproc visit, void *arg) | ||
| { | ||
| Py_VISIT(Py_TYPE(dp)); | ||
| return 0; | ||
| } | ||
| static void | ||
| dbm_dealloc(PyObject *self) | ||
| @@ -540,7 +534,7 @@ static PyMethodDef dbm_methods[] = { | ||
| static PyType_Slot dbmtype_spec_slots[] = { | ||
| {Py_tp_dealloc, dbm_dealloc}, | ||
| {Py_tp_traverse, dbm_traverse}, | ||
| {Py_tp_traverse, _PyObject_VisitType}, | ||
| {Py_tp_methods, dbm_methods}, | ||
| {Py_sq_contains, dbm_contains}, | ||
| {Py_mp_length, dbm_length}, | ||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.