[pypy-issue] [issue1721] Too aggressive constant folding?

Armin Rigo tracker at bugs.pypy.org
Thu Mar 27 07:56:42 CET 2014


Armin Rigo <armin.rigo at gmail.com> added the comment:

It could be the case that `platform.architecture()` reports a bogus result.  Try
to print `sys.maxint`.  If you get 2147483647 --- i.e. a number smaller than
2**31 --- then you have a 32-bit CPython and it will not try to constant-fold
`b"x"*(2**31)`.  Another way to see the problem is to try instead to
constant-fold `b"x"*(2**30)`, which should explode the memory everywhere (but
only to 1GB).

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1721>
________________________________________


More information about the pypy-issue mailing list