[issue28940] __length_hint__ isn't a hint for list()

2018-08-02 Thread Sergey Fedoseev
Change by Sergey Fedoseev : -- keywords: +patch pull_requests: +8140 stage: -> patch review ___ Python tracker ___ ___

[issue28940] __length_hint__ isn't a hint for list()

2016-12-11 Thread Ronald Oussoren
New submission from Ronald Oussoren: The following code raises MemoryError instead of creating an empty list: # START import sys class CustomIter: def __iter__(self): return self def __next__(self): raise StopIteration def __length_hint__(self): return