mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
SF patch #670423: Add missing identity tests to operator.c
This commit is contained in:
parent
18acea7c8e
commit
9543b34006
4 changed files with 49 additions and 3 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue