Mercurial > cpython-lru_cache-weakref
diff 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 |
line wrap: on
line diff
