[issue13436] compile() doesn't work on ImportFrom with level=None

2016-04-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 59638baee25e by Berker Peksag in branch 'default': Issue #13436: Add a test to make sure that ast.ImportFrom(level=None) works https://hg.python.org/cpython/rev/59638baee25e -- nosy: +python-dev ___ Pytho

[issue13436] compile() doesn't work on ImportFrom with level=None

2016-04-29 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python

[issue13436] compile() doesn't work on ImportFrom with level=None

2016-04-29 Thread Berker Peksag
Berker Peksag added the comment: level=None is now allowed: https://hg.python.org/cpython/file/default/Python/Python-ast.c#l5224 (see line 5224 to 5232) I converted the example in msg147972 to a Python script. test_bad_integer is still useful as it uses the required 'lineno' field. I will als

[issue13436] compile() doesn't work on ImportFrom with level=None

2013-10-08 Thread Georg Brandl
Changes by Georg Brandl : -- components: -Documentation nosy: -docs@python, python-dev ___ Python tracker ___ ___ Python-bugs-list m

[issue13436] compile() doesn't work on ImportFrom with level=None

2013-10-08 Thread Georg Brandl
Changes by Georg Brandl : -- Removed message: http://bugs.python.org/msg148146 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue13436] compile() doesn't work on ImportFrom with level=None

2011-11-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Does this apply to 2.7 as well? I believe msg148146 is due to a commit message typo. -- nosy: +haypo, terry.reedy versions: +Python 3.2, Python 3.3 -Python 3.1 ___ Python tracker

[issue13436] compile() doesn't work on ImportFrom with level=None

2011-11-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2e5506d9a079 by Victor Stinner in branch '3.2': Issue #13436: Fix unsetenv() test on Windows http://hg.python.org/cpython/rev/2e5506d9a079 New changeset 029ad97883ef by Victor Stinner in branch 'default': (Merge 3.2) Issue #13436: Fix unsetenv() te

[issue13436] compile() doesn't work on ImportFrom with level=None

2011-11-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I fixed the bogus error message, but "level=None" is still not allowed, whereas the docs promise that optional values can be None. -- ___ Python tracker ___

[issue13436] compile() doesn't work on ImportFrom with level=None

2011-11-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset ffcdfc534942 by Amaury Forgeot d'Arc in branch '3.2': Issue #13436: Fix a bogus error message when an AST object was passed http://hg.python.org/cpython/rev/ffcdfc534942 New changeset 470f7d7c57ce by Amaury Forgeot d'Arc in branch '3.2': Issue #134

[issue13436] compile() doesn't work on ImportFrom with level=None

2011-11-20 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- assignee: docs@python -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue13436] compile() doesn't work on ImportFrom with level=None

2011-11-20 Thread Benjamin Peterson
Benjamin Peterson added the comment: LGTM. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue13436] compile() doesn't work on ImportFrom with level=None

2011-11-20 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue13436] compile() doesn't work on ImportFrom with level=None

2011-11-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Here is a patch for the bad error message (PyBytes_AS_BYTES after PyObject_Repr, bah) -- keywords: +patch nosy: +amaury.forgeotdarc Added file: http://bugs.python.org/file23739/issue13436.patch ___ Python trac

[issue13436] compile() doesn't work on ImportFrom with level=None

2011-11-19 Thread Janosch Gräf
New submission from Janosch Gräf : The documentation for ast says that arguments that are marked with a '?' in the abstract grammar are optional and can therefore be None. When I try to compile a Module node which contains an ImportFrom node with attribute level=None compile() throws an excepti