Skip to content

Commit 21603e6

Browse files
committed
Merge branch 'tseaver-rework_pep_489' of github.com:zopefoundation/zope.interface into tseaver-rework_pep_489
2 parents e0558d7 + d6f5640 commit 21603e6

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/zope/interface/_zope_interface_coptimizations.c

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
#define USE_HEAP_TYPES 1
5050
#endif
5151

52+
/* Add MANAGED_WEAKREF flag for Python >= 3.12 */
5253
#if PY_VERSION_HEX >= 0x030c0000
5354
#define LEAFTYPE_FLAGS \
5455
Py_TPFLAGS_DEFAULT | \
@@ -132,13 +133,13 @@ define_static_strings()
132133
return 0;
133134
}
134135

135-
/* Public module-scope functions, forward-declared here FBO type methods. */
136+
/* Public module-scope functions, forward-declared here for type methods. */
136137
static PyObject *implementedBy(PyObject* module, PyObject *cls);
137138
static PyObject *getObjectSpecification(PyObject *module, PyObject *ob);
138139
static PyObject *providedBy(PyObject *module, PyObject *ob);
139140

140141
/*
141-
* Utility functions, forward-declared here FBO type methods.
142+
* Utility functions, forward-declared here for type methods.
142143
*/
143144
static PyObject* _get_module(PyTypeObject *typeobj);
144145
static PyObject* _get_adapter_hooks(PyTypeObject *typeobj);
@@ -534,7 +535,7 @@ static PyType_Spec OSD_type_spec = {
534535
#endif
535536

536537
/*
537-
* ClassProviderBase class
538+
* ClassProvidesBase class
538539
*/
539540
typedef struct
540541
{
@@ -1063,7 +1064,7 @@ static PyType_Slot IB_type_slots[] = {
10631064
{Py_tp_dealloc, IB_dealloc},
10641065
{Py_tp_methods, IB_methods},
10651066
{Py_tp_members, IB_members},
1066-
/* tp_base cannot be set as a stot -- pass to PyType_FromModuleAndSpec */
1067+
/* tp_base cannot be set as a slot -- pass to PyType_FromModuleAndSpec */
10671068
{0, NULL}
10681069
};
10691070

@@ -1969,7 +1970,7 @@ static PyType_Slot VB_type_slots[] = {
19691970
{Py_tp_clear, VB_clear},
19701971
{Py_tp_dealloc, VB_dealloc},
19711972
{Py_tp_methods, VB_methods},
1972-
/* tp_base cannot be set as a stot -- pass to PyType_FromModuleAndSpec */
1973+
/* tp_base cannot be set as a slot -- pass to PyType_FromModuleAndSpec */
19731974
{0, NULL}
19741975
};
19751976

@@ -1996,13 +1997,13 @@ typedef struct
19961997
PyTypeObject* lookup_base_class;
19971998
PyTypeObject* verifying_base_class;
19981999
PyObject* adapter_hooks;
1999-
/* members importe from 'zope.interface.declarations'
2000+
/* members imported from 'zope.interface.declarations'
20002001
*/
20012002
PyObject* empty;
20022003
PyObject* fallback;
20032004
PyObject* builtin_impl_specs;
20042005
PyTypeObject* implements_class;
2005-
/* flag: have we importe the next set of members yet from
2006+
/* flag: have we imported the next set of members yet from
20062007
* 'zope.interface.declarations?
20072008
*/
20082009
int decl_imported;

0 commit comments

Comments
 (0)