mirror of
https://github.com/python/cpython.git
synced 2026-02-13 19:04:37 +00:00
News about sets. (There's no documentation; if someone wants to
convert the doc strings to LaTeX, be my guest.)
This commit is contained in:
parent
d6cf3af8f7
commit
d8ab35c933
1 changed files with 7 additions and 0 deletions
|
|
@ -298,6 +298,13 @@ Extension modules
|
|||
|
||||
Library
|
||||
|
||||
- New module: sets, defines the class Set that implements a mutable
|
||||
set type using the keys of a dict to represent the set. There's
|
||||
also a class ImmutableSet which is useful when you need sets of sets
|
||||
or when you need to use sets as dict keys, and a class BaseSet which
|
||||
is the base class of the two. (This is not documented yet, but
|
||||
help(sets) gives a wealth of information.)
|
||||
|
||||
- Added operator.pow(a,b) which is equivalent to a**b.
|
||||
|
||||
- random.randrange(-sys.maxint-1, sys.maxint) no longer raises
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue