A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2014-January/132138.html below:

[Python-Dev] Negative times behaviour in itertools.repeat for Python maintenance releases (2.7, 3.3 and maybe 3.4)

[Python-Dev] Negative times behaviour in itertools.repeat for Python maintenance releases (2.7, 3.3 and maybe 3.4)Antoine Pitrou solipsis at pitrou.net
Mon Jan 27 13:29:18 CET 2014
On Mon, 27 Jan 2014 20:22:53 +0800
Vajrasky Kok <sky.kok at speaklikeaking.com> wrote:
> 
> >>> from itertools import repeat
> >>> list(repeat('a', 2**31))
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> MemoryError

Sure, just adjust the number to fit the available memory (here, 2**29
does the trick).

Regards

Antoine.
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4