This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients brett.cannon, rhettinger
Date 2018-08-02.02:54:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1533178464.44.0.56676864532.issue34312@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2018-08-02 02:54:24rhettingersetrecipients: + rhettinger, brett.cannon
2018-08-02 02:54:24rhettingersetmessageid: <1533178464.44.0.56676864532.issue34312@psf.upfronthosting.co.za>
2018-08-02 02:54:24rhettingerlinkissue34312 messages
2018-08-02 02:54:23rhettingercreate