Mercurial > cpython-lru_cache-weakref
comparison Python/pythonrun.c @ 35297:26bf6c27e9ce legacy-trunk
* Improve code for the empty frozenset singleton:
- Handle both frozenset() and frozenset([]).
- Do not use singleton for frozenset subclasses.
- Finalize the singleton.
- Add test cases.
* Factor-out set_update_internal() from set_update(). Simplifies the
code for several internal callers.
* Factor constant expressions out of loop in set_merge_internal().
* Minor comment touch-ups.
| author | Raymond Hettinger <python@rcn.com> |
|---|---|
| date | Mon, 01 Aug 2005 21:39:29 +0000 |
| parents | 1dd8a0d64432 |
| children | e48fcd4c358d |
comparison
equal
deleted
inserted
replaced
| 35296:d91964f5fe0d | 35297:26bf6c27e9ce |
|---|---|
| 418 PyMethod_Fini(); | 418 PyMethod_Fini(); |
| 419 PyFrame_Fini(); | 419 PyFrame_Fini(); |
| 420 PyCFunction_Fini(); | 420 PyCFunction_Fini(); |
| 421 PyTuple_Fini(); | 421 PyTuple_Fini(); |
| 422 PyList_Fini(); | 422 PyList_Fini(); |
| 423 PySet_Fini(); | |
| 423 PyString_Fini(); | 424 PyString_Fini(); |
| 424 PyInt_Fini(); | 425 PyInt_Fini(); |
| 425 PyFloat_Fini(); | 426 PyFloat_Fini(); |
| 426 | 427 |
| 427 #ifdef Py_USING_UNICODE | 428 #ifdef Py_USING_UNICODE |
