@@ -587,10 +587,10 @@ typedef enum {
587
587
ABSENT , /* Attribute is not present on the class */
588
588
DUNDER_CLASS , /* __class__ attribute */
589
589
GETSET_OVERRIDDEN /* __getattribute__ or __setattr__ has been overridden */
590
- } DesciptorClassification ;
590
+ } DescriptorClassification ;
591
591
592
592
593
- static DesciptorClassification
593
+ static DescriptorClassification
594
594
analyze_descriptor (PyTypeObject * type , PyObject * name , PyObject * * descr , int store )
595
595
{
596
596
if (store ) {
@@ -651,7 +651,7 @@ analyze_descriptor(PyTypeObject *type, PyObject *name, PyObject **descr, int sto
651
651
static int
652
652
specialize_dict_access (
653
653
PyObject * owner , _Py_CODEUNIT * instr , PyTypeObject * type ,
654
- DesciptorClassification kind , PyObject * name ,
654
+ DescriptorClassification kind , PyObject * name ,
655
655
_PyAdaptiveEntry * cache0 , _PyAttrCache * cache1 ,
656
656
int base_op , int values_op , int hint_op )
657
657
{
@@ -718,7 +718,7 @@ _Py_Specialize_LoadAttr(PyObject *owner, _Py_CODEUNIT *instr, PyObject *name, Sp
718
718
}
719
719
}
720
720
PyObject * descr ;
721
- DesciptorClassification kind = analyze_descriptor (type , name , & descr , 0 );
721
+ DescriptorClassification kind = analyze_descriptor (type , name , & descr , 0 );
722
722
switch (kind ) {
723
723
case OVERRIDING :
724
724
SPECIALIZATION_FAIL (LOAD_ATTR , SPEC_FAIL_OVERRIDING_DESCRIPTOR );
@@ -807,7 +807,7 @@ _Py_Specialize_StoreAttr(PyObject *owner, _Py_CODEUNIT *instr, PyObject *name, S
807
807
goto fail ;
808
808
}
809
809
PyObject * descr ;
810
- DesciptorClassification kind = analyze_descriptor (type , name , & descr , 1 );
810
+ DescriptorClassification kind = analyze_descriptor (type , name , & descr , 1 );
811
811
switch (kind ) {
812
812
case OVERRIDING :
813
813
SPECIALIZATION_FAIL (STORE_ATTR , SPEC_FAIL_OVERRIDING_DESCRIPTOR );
@@ -881,7 +881,7 @@ _Py_Specialize_StoreAttr(PyObject *owner, _Py_CODEUNIT *instr, PyObject *name, S
881
881
882
882
#ifdef Py_STATS
883
883
static int
884
- load_method_fail_kind (DesciptorClassification kind )
884
+ load_method_fail_kind (DescriptorClassification kind )
885
885
{
886
886
switch (kind ) {
887
887
case OVERRIDING :
@@ -921,7 +921,7 @@ specialize_class_load_method(PyObject *owner, _Py_CODEUNIT *instr, PyObject *nam
921
921
{
922
922
923
923
PyObject * descr = NULL ;
924
- DesciptorClassification kind = 0 ;
924
+ DescriptorClassification kind = 0 ;
925
925
kind = analyze_descriptor ((PyTypeObject * )owner , name , & descr , 0 );
926
926
switch (kind ) {
927
927
case METHOD :
@@ -969,7 +969,7 @@ _Py_Specialize_LoadMethod(PyObject *owner, _Py_CODEUNIT *instr, PyObject *name,
969
969
}
970
970
971
971
PyObject * descr = NULL ;
972
- DesciptorClassification kind = 0 ;
972
+ DescriptorClassification kind = 0 ;
973
973
kind = analyze_descriptor (owner_cls , name , & descr , 0 );
974
974
assert (descr != NULL || kind == ABSENT || kind == GETSET_OVERRIDDEN );
975
975
if (kind != METHOD ) {
0 commit comments