Raymond Hettinger
|
43db0d6a2c
|
Fast size check for sub/super set tests
|
2002-08-21 02:22:08 +00:00 |
|
Raymond Hettinger
|
de6d697987
|
Optimize try/except ordering in sets.py.
Gains a 5:1 speed-up for membership testing by
handling the most common case first (the case
where the element is hashable).
Closes SF Patch 597444.
|
2002-08-21 01:35:29 +00:00 |
|
Raymond Hettinger
|
ede3a0da8b
|
Minor typo
|
2002-08-20 23:34:01 +00:00 |
|
Guido van Rossum
|
c9196bc88d
|
Rename popitem() to pop(). (An idea from SF patch 597444.)
|
2002-08-20 21:51:59 +00:00 |
|
Guido van Rossum
|
5033b36c44
|
Move __init__ from BaseSet into Set and ImmutableSet. This causes a
tiny amount of code duplication, but makes it possible to give BaseSet
an __init__ that raises an exception.
|
2002-08-20 21:38:37 +00:00 |
|
Guido van Rossum
|
290f1870f1
|
Add a note reminding the reader that sets are not sequences. I
received feedback that was based in the misunderstanding that sets
were sequences.
|
2002-08-20 20:05:23 +00:00 |
|
Guido van Rossum
|
0b650d7565
|
Fix typo in __slots__ of ImmutableSet.
|
2002-08-19 16:29:58 +00:00 |
|
Guido van Rossum
|
d6cf3af8f7
|
Set classes and their unit tests, from sandbox.
|
2002-08-19 16:19:15 +00:00 |
|