SF patch #670423: Add missing identity tests to operator.c

This commit is contained in:
Raymond Hettinger 2003-01-18 23:22:20 +00:00
parent 18acea7c8e
commit 9543b34006
4 changed files with 49 additions and 3 deletions

View file

@ -517,6 +517,11 @@ Core and builtins
Extension modules
-----------------
- Added three operators to the operator module:
operator.pow(a,b) which is equivalent to: a**b.
operator.is_(a,b) which is equivalent to: a is b.
operator.is_not(a,b) which is equivalent to: a is not b.
- posix.openpty now works on all systems that have /dev/ptmx.
- A module zipimport exists to support importing code from zip
@ -733,8 +738,6 @@ Library
or when you need to use sets as dict keys, and a class BaseSet which
is the base class of the two.
- Added operator.pow(a,b) which is equivalent to a**b.
- Added random.sample(population,k) for random sampling without replacement.
Returns a k length list of unique elements chosen from the population.