Mercurial > cpython-lru_cache-weakref
comparison Tools/gdb/libpython.py @ 63011:ad95e23129c7
Remove unused code that would raise a NameError.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Wed, 14 Jul 2010 08:53:36 +0000 |
| parents | 503afc62d632 |
| children | d30b9dffb86d |
comparison
equal
deleted
inserted
replaced
| 63010:d4f67b864928 | 63011:ad95e23129c7 |
|---|---|
| 53 SIZEOF_VOID_P = _type_void_ptr.sizeof | 53 SIZEOF_VOID_P = _type_void_ptr.sizeof |
| 54 | 54 |
| 55 | 55 |
| 56 Py_TPFLAGS_HEAPTYPE = (1L << 9) | 56 Py_TPFLAGS_HEAPTYPE = (1L << 9) |
| 57 | 57 |
| 58 Py_TPFLAGS_INT_SUBCLASS = (1L << 23) | |
| 59 Py_TPFLAGS_LONG_SUBCLASS = (1L << 24) | 58 Py_TPFLAGS_LONG_SUBCLASS = (1L << 24) |
| 60 Py_TPFLAGS_LIST_SUBCLASS = (1L << 25) | 59 Py_TPFLAGS_LIST_SUBCLASS = (1L << 25) |
| 61 Py_TPFLAGS_TUPLE_SUBCLASS = (1L << 26) | 60 Py_TPFLAGS_TUPLE_SUBCLASS = (1L << 26) |
| 62 Py_TPFLAGS_BYTES_SUBCLASS = (1L << 27) | 61 Py_TPFLAGS_BYTES_SUBCLASS = (1L << 27) |
| 63 Py_TPFLAGS_UNICODE_SUBCLASS = (1L << 28) | 62 Py_TPFLAGS_UNICODE_SUBCLASS = (1L << 28) |
| 310 return name_map[tp_name] | 309 return name_map[tp_name] |
| 311 | 310 |
| 312 if tp_flags & Py_TPFLAGS_HEAPTYPE: | 311 if tp_flags & Py_TPFLAGS_HEAPTYPE: |
| 313 return HeapTypeObjectPtr | 312 return HeapTypeObjectPtr |
| 314 | 313 |
| 315 if tp_flags & Py_TPFLAGS_INT_SUBCLASS: | |
| 316 return PyIntObjectPtr | |
| 317 if tp_flags & Py_TPFLAGS_LONG_SUBCLASS: | 314 if tp_flags & Py_TPFLAGS_LONG_SUBCLASS: |
| 318 return PyLongObjectPtr | 315 return PyLongObjectPtr |
| 319 if tp_flags & Py_TPFLAGS_LIST_SUBCLASS: | 316 if tp_flags & Py_TPFLAGS_LIST_SUBCLASS: |
| 320 return PyListObjectPtr | 317 return PyListObjectPtr |
| 321 if tp_flags & Py_TPFLAGS_TUPLE_SUBCLASS: | 318 if tp_flags & Py_TPFLAGS_TUPLE_SUBCLASS: |
