Convert itertools functions to classes (#5211)

This commit is contained in:
hatal175
2021-04-12 13:28:51 +03:00
committed by GitHub
parent 54f85c5b27
commit 7adb0213f7
4 changed files with 109 additions and 53 deletions

View File

@@ -28,7 +28,6 @@ importlib.metadata # Added in 3.8
importlib.resources # Added in 3.7
io.StringIO.readline
ipaddress._BaseNetwork.__init__
itertools.accumulate
json.loads
mmap.ACCESS_DEFAULT
multiprocessing.shared_memory

View File

@@ -38,7 +38,6 @@ http.client.HTTPSConnection.__init__
http.server.SimpleHTTPRequestHandler.__init__
importlib.metadata # Added in 3.8
ipaddress._BaseNetwork.__init__
itertools.accumulate
json.loads
macurl2path # removed in 3.7
multiprocessing.shared_memory

View File

@@ -199,22 +199,8 @@ ipaddress._BaseAddress.is_unspecified
ipaddress._BaseAddress.max_prefixlen
ipaddress._BaseAddress.packed
ipaddress._BaseNetwork.max_prefixlen
itertools.accumulate # not a function at runtime
itertools.chain.from_iterable
itertools.combinations # not a function at runtime
itertools.combinations_with_replacement
itertools.compress
itertools.count
itertools.dropwhile
itertools.filterfalse
itertools.groupby # not a function at runtime
itertools.islice # not a function at runtime
itertools.permutations
itertools.product # not a function at runtime
itertools.repeat # not a function at runtime
itertools.starmap
itertools.takewhile
itertools.zip_longest
itertools.combinations # not a function at runtime, cannot represent with __init__ or __new__
itertools.product # not a function at runtime, cannot represent with __init__ or __new__
lib2to3.pygram.pattern_symbols
lib2to3.pygram.python_symbols
lib2to3.pytree.Base.__new__