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 lemburg
Recipients lemburg, pitrou, rhettinger, serhiy.storchaka
Date 2015-01-08.15:02:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In-reply-to <>
On 08.01.2015 15:46, Serhiy Storchaka wrote:
>> Sets of strings are very common when trying to create a unique set of strings or optimizing "name in set_of_names" lookups.
> This is not nearly so common as attributes or globals access, or passing keyword arguments.

Not at the interpreter level, but unlike dicts, sets are not used
much to implement interpreter logic. Their use cases are more based
in application code where you basically find two major use cases:

1. check for flag in set of numeric codes

2. check for string in unique set of strings

(and their associated set operations, i.e. checking for subsets,
superset, etc.)

This is why I don't follow Raymond's reasoning. Of course, if
he comes up with a patch that makes both cases faster, I'd be
+1 ;-)
Date User Action Args
2015-01-08 15:02:07lemburgsetrecipients: + lemburg, rhettinger, pitrou, serhiy.storchaka
2015-01-08 15:02:07lemburglinkissue23119 messages
2015-01-08 15:02:06lemburgcreate