[issue9011] ast_for_factor unary minus optimization changes AST
report at bugs.python.org
Thu Jun 17 15:04:14 CEST 2010
Alex Samuel <alex at alexsamuel.net> added the comment:
How about saving the original value of STR(pnum) and restoring it after
This is not thread-safe, but I don't understand Python's threading model
well enough to know whether the GIL is held in this function.
On 6/17/2010 8:40 AM, Mark Dickinson wrote:
> Mark Dickinson<dickinsm at gmail.com> added the comment:
> Fixed in r82043 (py3k) and r82044 (release31-maint), simply by removing the relevant 'if' block.
> For 2.x, Antoine (on IRC) pointed out that there might well be third party code that depends on -0x80000000 being an int rather than a long (32-bit machine), so changing that behaviour could cause breakage.
> Can anyone propose a fix that doesn't change behaviour?
> Python tracker<report at bugs.python.org>
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list