Commit Graph

16 Commits

Author SHA1 Message Date
Matthias Kramm
ed6dc176da make itertools.product more precise (#1393) 2017-06-12 20:10:08 -07:00
Matthias Kramm
8d8a34cb83 Patch from @sfreilich: make itertools.ifilter predicate parameter Optional (#1257)
From Samuel Freilich:
In Python 2, the predicate parameter in itertools.ifilter and
itertools.ifilterfalse can be None, indicating that true or false values
should be retained (functionally equivalent to passing "bool" as the
predicate). In Python 3, filter and itertools.filterfalse have
the same behavior.
2017-05-09 17:50:11 -07:00
Semyon Proshev
df4c5c81e8 Add n-ary stub for itertools.izip (#1071) 2017-03-22 07:35:21 -07:00
Günther Noack
b621b2f5ff Remove fallback again 2017-03-20 21:38:16 +01:00
Günther Noack
4149a2637b Update itertools.pyi 2017-03-20 21:30:33 +01:00
Günther Noack
4e62b05e7d Update itertools.pyi 2017-03-20 21:12:02 +01:00
Günther Noack
4152283115 Update itertools.pyi 2017-03-20 21:02:08 +01:00
Günther Noack
cd949ba284 Fix fallback. 2017-03-20 20:45:34 +01:00
Günther Noack
62efd05201 Add support for 6-ary izip and generic n-ary case
Using izip with up to 6 arguments will retain the arguments' type information,
using izip with 7 and more arguments will discard type information about the
generated tuple items.
2017-03-20 20:36:50 +01:00
Günther Noack
014a23ae06 Define _T5 2017-03-20 17:29:39 +01:00
Günther Noack
8e0d38fd77 Update itertools.pyi 2017-03-20 17:16:26 +01:00
Günther Noack
536d192897 Update itertools.pyi 2017-03-20 16:56:55 +01:00
Günther Noack
42f37c0f04 5-ary izip 2017-03-20 15:17:39 +01:00
rchen152
f34c550f04 Correct some return types in itertools.pyi from Iterable to Iterator. (#947)
* Fix a few return types in stdlib/2/inspect.pyi.

* Rename _FrameRecord to _FrameInfo

* Correct some return types in itertools.pyi from Iterable to Iterator.
2017-03-07 06:42:50 -08:00
Lukasz Langa
fe0e3744cc Fixing flake8 E261 errors 2016-12-19 22:09:35 -08:00
Guido van Rossum
cb97bb54c0 Move 2.7 to 2 (#635)
Closes #579.
2016-10-26 16:24:49 -07:00