Message322906
ISTM that this would encourage silently inefficient coding patterns like:
url.endswith({'.html', '.txt', '.php'})
# The set object gets rebuilt on every call
# and a new set iterator object gets built on every call.
# Looping over the contents uses the slower iterator protocol
# rather than the existing superfast PyTuple_GET_SIZE() and
# PyTuple_GET_ITEM() macros which are entirely in-lined.
Do we have any known use cases or user requests where the existing API doesn't suffice? |
|
Date |
User |
Action |
Args |
2018-08-02 02:54:24 | rhettinger | set | recipients:
+ rhettinger, brett.cannon |
2018-08-02 02:54:24 | rhettinger | set | messageid: <1533178464.44.0.56676864532.issue34312@psf.upfronthosting.co.za> |
2018-08-02 02:54:24 | rhettinger | link | issue34312 messages |
2018-08-02 02:54:23 | rhettinger | create | |
|