49
49
#define USE_HEAP_TYPES 1
50
50
#endif
51
51
52
+ /* Add MANAGED_WEAKREF flag for Python >= 3.12 */
52
53
#if PY_VERSION_HEX >= 0x030c0000
53
54
#define LEAFTYPE_FLAGS \
54
55
Py_TPFLAGS_DEFAULT | \
@@ -132,13 +133,13 @@ define_static_strings()
132
133
return 0 ;
133
134
}
134
135
135
- /* Public module-scope functions, forward-declared here FBO type methods. */
136
+ /* Public module-scope functions, forward-declared here for type methods. */
136
137
static PyObject * implementedBy (PyObject * module , PyObject * cls );
137
138
static PyObject * getObjectSpecification (PyObject * module , PyObject * ob );
138
139
static PyObject * providedBy (PyObject * module , PyObject * ob );
139
140
140
141
/*
141
- * Utility functions, forward-declared here FBO type methods.
142
+ * Utility functions, forward-declared here for type methods.
142
143
*/
143
144
static PyObject * _get_module (PyTypeObject * typeobj );
144
145
static PyObject * _get_adapter_hooks (PyTypeObject * typeobj );
@@ -534,7 +535,7 @@ static PyType_Spec OSD_type_spec = {
534
535
#endif
535
536
536
537
/*
537
- * ClassProviderBase class
538
+ * ClassProvidesBase class
538
539
*/
539
540
typedef struct
540
541
{
@@ -1063,7 +1064,7 @@ static PyType_Slot IB_type_slots[] = {
1063
1064
{Py_tp_dealloc , IB_dealloc },
1064
1065
{Py_tp_methods , IB_methods },
1065
1066
{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 */
1067
1068
{0 , NULL }
1068
1069
};
1069
1070
@@ -1969,7 +1970,7 @@ static PyType_Slot VB_type_slots[] = {
1969
1970
{Py_tp_clear , VB_clear },
1970
1971
{Py_tp_dealloc , VB_dealloc },
1971
1972
{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 */
1973
1974
{0 , NULL }
1974
1975
};
1975
1976
@@ -1996,13 +1997,13 @@ typedef struct
1996
1997
PyTypeObject * lookup_base_class ;
1997
1998
PyTypeObject * verifying_base_class ;
1998
1999
PyObject * adapter_hooks ;
1999
- /* members importe from 'zope.interface.declarations'
2000
+ /* members imported from 'zope.interface.declarations'
2000
2001
*/
2001
2002
PyObject * empty ;
2002
2003
PyObject * fallback ;
2003
2004
PyObject * builtin_impl_specs ;
2004
2005
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
2006
2007
* 'zope.interface.declarations?
2007
2008
*/
2008
2009
int decl_imported ;
0 commit comments