Meador Inge mead...@gmail.com added the comment:
I have verified that the code checked in for issue12575 keep the test case from
this issue from crashing the interpreter:
[meadori@motherbrain cpython]$ ./python test.py
Traceback (most recent call last):
File test.py, line 14, in module
Benjamin Peterson benja...@python.org added the comment:
2011/8/10 Meador Inge rep...@bugs.python.org:
Meador Inge mead...@gmail.com added the comment:
I have verified that the code checked in for issue12575 keep the test case
from this issue from crashing the interpreter:
Meador Inge mead...@gmail.com added the comment:
OK, I am marking this as fixed then. If someone decides to fix this in 3.2 or
3.7, then they can reopen the issue.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
Benjamin Peterson benja...@python.org added the comment:
Officially fixed by #12575.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12608
___
Meador Inge mead...@gmail.com added the comment:
Thanks for the test case Albert. The attached patch adds a unit test based off
of the given repro case and fixes the bug in the FunctionDef compiler. The
compiler was hitting a NULL pointer deref on FunctionDefs with empty list
bodies.
Changes by Benjamin Peterson benja...@python.org:
--
dependencies: +add a AST validator
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12608
___
New submission from Albert Zeyer alb...@googlemail.com:
Code:
```
import ast
globalsDict = {}
fAst = ast.FunctionDef(
name=foo,
args=ast.arguments(
args=[], vararg=None, kwarg=None, defaults=[],
kwonlyargs=[], kw_defaults=[]),
body=[],
Albert Zeyer alb...@googlemail.com added the comment:
PyPy bug report: https://bugs.pypy.org/issue806
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12608
___
R. David Murray rdmur...@bitdance.com added the comment:
So does default.
--
nosy: +benjamin.peterson, r.david.murray
type: - crash
versions: +Python 2.7, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12608
Changes by Daniel Urban urban.dani...@gmail.com:
--
nosy: +durban
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12608
___
___
Python-bugs-list
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12608
___
___
11 matches
Mail list logo