e4668aade91dca363c7b346d8b37d04c5191522b |
|
14-Sep-2016 |
Benjamin Peterson <benjamin@python.org> |
fix misleading indentation (closes #28139)
/external/python/cpython2/Python/ast.c
|
3d36f0f712e8a720e66808e2b634aace11c6bb88 |
|
28-Jul-2016 |
Martin Panter <vadmium+py@gmail.com> |
Spelling and grammar fixes in code comments and documentation
/external/python/cpython2/Python/ast.c
|
b6f0d0531b421da308312a871ea165cbcc597011 |
|
10-Aug-2014 |
Benjamin Peterson <benjamin@python.org> |
remove casts
/external/python/cpython2/Python/ast.c
|
9b1d670361215f8d56de7a05cb1d430009735fd5 |
|
29-Jul-2014 |
Dirkjan Ochtman <dirkjan@ochtman.nl> |
Issue #21591: Handle exec backwards compatibility in the AST builder. Instead of deferring until runtime. This makes sure we hit the right conditions in dealing with unqualified exec statements. Reviewed by Victor Stinner. Test follows in a later commit.
/external/python/cpython2/Python/ast.c
|
79fa98af9e3a37ee1e98094c55d8574c20c9d9a5 |
|
01-Jun-2014 |
Serhiy Storchaka <storchaka@gmail.com> |
Issue #19656: Running Python with the -3 option now also warns about non-ascii bytes literals.
/external/python/cpython2/Python/ast.c
|
b1cc6aa2df228572c5819091a18ac2c0ab6abe5a |
|
25-Nov-2012 |
Mark Dickinson <mdickinson@enthought.com> |
Issue #9011: AST creation no longer modifies CST for negated numeric literals.
/external/python/cpython2/Python/ast.c
|
b1147f5d0a89a24a978d9db93750ad5cc3829542 |
|
19-Aug-2010 |
Amaury Forgeot d'Arc <amauryfa@gmail.com> |
Merged revisions 84209, 84214 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84209 | amaury.forgeotdarc | 2010-08-19 19:43:15 +0200 (jeu., 19 août 2010) | 5 lines Check the return values for all functions returning an ast node. Failure to do it may result in strange error messages or even crashes, in admittedly convoluted cases that are normally syntax errors, like: def f(*xx, __debug__): pass ........ r84214 | amaury.forgeotdarc | 2010-08-19 23:32:38 +0200 (jeu., 19 août 2010) | 3 lines Add tests for r84209 (crashes in the Ast builder) Also remove one tab, and move a check closer to the possible failure. ........
/external/python/cpython2/Python/ast.c
|
947ce58a9018d23cb1e5e8de550f2ba0e542248e |
|
24-Jun-2010 |
Benjamin Peterson <benjamin@python.org> |
prevent assignment to set literals
/external/python/cpython2/Python/ast.c
|
fa84d923ec9ed63af6b29e946b8fbfe5626ecf42 |
|
05-May-2010 |
Brett Cannon <bcannon@gmail.com> |
Remove two unneeded branches to an 'if' statement by applying De Morgan's Law and creating a single 'if' statement along with a NULL default value for a variable. Also clean up a bunch of whitespace. Found using Clang's static analyzer.
/external/python/cpython2/Python/ast.c
|
417439e6cdc072baea8217a3c60d5f52f353394a |
|
05-May-2010 |
Brett Cannon <bcannon@gmail.com> |
Partially revert the over-reaching r80813.
/external/python/cpython2/Python/ast.c
|
0b03f10afb301560c711b953b6ca2ecef3181eed |
|
05-May-2010 |
Brett Cannon <bcannon@gmail.com> |
Remove three unneeded variable assignments. Found using Clang's static analyzer.
/external/python/cpython2/Python/ast.c
|
b646547bb45fe1df6abefd94f892c633798d91d2 |
|
11-Jan-2010 |
Alexandre Vassalotti <alexandre@peadrop.com> |
Issue #2333: Backport set and dict comprehensions syntax.
/external/python/cpython2/Python/ast.c
|
ee936a21308679654b2d458166ff094ed735fef7 |
|
10-Jan-2010 |
Alexandre Vassalotti <alexandre@peadrop.com> |
Issue #2335: Backport set literals syntax from Python 3.x.
/external/python/cpython2/Python/ast.c
|
99a5023c80d9a690e4305e2ded1b2a9cf6b30251 |
|
19-Nov-2009 |
Benjamin Peterson <benjamin@python.org> |
improve several corner cases related with argument names in parenthesis - Fix #7362: give a good error message for parenthesized arguments with defaults. - Add a py3k warning for any parenthesized arguments since those are not allowed in Py3. This warning is not given in tuple unpacking, since that incurs the tuple unpacking warning.
/external/python/cpython2/Python/ast.c
|
ea0e3b0d60b075e6d5cb09dcd83fd86e828612cb |
|
29-Oct-2009 |
Benjamin Peterson <benjamin@python.org> |
do a backport of r75928 The added test does not fail without the patch, but we still fix the issue of surrogates being used in wide builds where they should not be.
/external/python/cpython2/Python/ast.c
|
abc9f7038154c5bd5d3a6042ab972f2db0fbc241 |
|
27-Oct-2009 |
Eric Smith <eric@trueblade.com> |
Removed PyOS_ascii_atof from ast.c, as mentioned in issue 7117.
/external/python/cpython2/Python/ast.c
|
7adbb5a35da601fc68255eeaf341ad734e86a9bf |
|
03-Oct-2009 |
Benjamin Peterson <benjamin@python.org> |
#7050 fix a SystemError when using tuple unpacking and augmented assignment
/external/python/cpython2/Python/ast.c
|
c0ba828857fa1a4f726a113c811badb5f2259bb9 |
|
16-Aug-2009 |
Benjamin Peterson <benjamin@python.org> |
better col_offsets for "for" statements with tuple unpacking #6704 Patch from Frank Wierzbicki.
/external/python/cpython2/Python/ast.c
|
4879c907ce32655e76c74aee9f49e4be99b862af |
|
20-Jul-2009 |
Benjamin Peterson <benjamin@python.org> |
the Slice in x[::] has to have step as None to help the interpreter
/external/python/cpython2/Python/ast.c
|
a72be3b325ef207fdf16cdae1cdd9b0f3e349efd |
|
13-Jun-2009 |
Benjamin Peterson <benjamin@python.org> |
when no module is given in a 'from' relative import, make ImportFrom.module NULL
/external/python/cpython2/Python/ast.c
|
52c4bec76bdcb962e883eac1e55f98df488b558c |
|
13-Jun-2009 |
Benjamin Peterson <benjamin@python.org> |
give a better error message when deleting ()
/external/python/cpython2/Python/ast.c
|
5d1ff94b9ef3052b4938c55b196c3594369e252a |
|
13-Jun-2009 |
Benjamin Peterson <benjamin@python.org> |
set Print.values to NULL if there are no values
/external/python/cpython2/Python/ast.c
|
d1f5a59edb56b64336f07fc88cff6cbebed12dd6 |
|
13-Jun-2009 |
Benjamin Peterson <benjamin@python.org> |
allow importing from a module named None if it has an 'as' clause
/external/python/cpython2/Python/ast.c
|
565e1b6bb724af71f439ec914b34f74e5163fe3d |
|
13-Jun-2009 |
Benjamin Peterson <benjamin@python.org> |
prevent import statements from assigning to None
/external/python/cpython2/Python/ast.c
|
4afbba3d340655bb8be2a97b76fe689be7f0c013 |
|
13-Jun-2009 |
Benjamin Peterson <benjamin@python.org> |
keep the slice.step field as NULL if no step expression is given
/external/python/cpython2/Python/ast.c
|
4efb5d0b82becae8435057be59e20044f22130df |
|
12-Jun-2009 |
Benjamin Peterson <benjamin@python.org> |
remove check for case handled in sub-function
/external/python/cpython2/Python/ast.c
|
b266481ed8dba9164b03e72bab9c19712b938657 |
|
11-Jun-2009 |
Benjamin Peterson <benjamin@python.org> |
revert r73361
/external/python/cpython2/Python/ast.c
|
e5fa5fe8fcf2a654dbae1bd6b6b49c0887d859b4 |
|
11-Jun-2009 |
Benjamin Peterson <benjamin@python.org> |
remove duplicate check
/external/python/cpython2/Python/ast.c
|
a5a5728cf01446f70c3bd09cc85453fdec71d461 |
|
09-Jun-2009 |
Benjamin Peterson <benjamin@python.org> |
remove error checks already done in set_context()
/external/python/cpython2/Python/ast.c
|
8ea4ded9a69ace6f8520615f770308fcdb485bbb |
|
09-Jun-2009 |
Benjamin Peterson <benjamin@python.org> |
remove useless assertion
/external/python/cpython2/Python/ast.c
|
944f684ce6f439bc868d4b189c45f726dfb9d3b1 |
|
25-May-2009 |
Georg Brandl <georg@python.org> |
Allow multiple context managers in one with statement, as proposed in http://codereview.appspot.com/53094 and accepted by Guido. The construct is transformed into multiple With AST nodes so that there should be no problems with the semantics.
/external/python/cpython2/Python/ast.c
|
59ce042766d95a1471b08241038b8e0f4a65743a |
|
17-Jan-2009 |
Amaury Forgeot d'Arc <amauryfa@gmail.com> |
#4077: No need to append \n when calling Py_FatalError + fix a declaration to make it match the one in pythonrun.h
/external/python/cpython2/Python/ast.c
|
422ce06b9caea42b297a1d49d62c4f9755f8a122 |
|
05-Dec-2008 |
Mark Dickinson <dickinsm@gmail.com> |
Issue #4461: Safety check in parsenumber (ast.c)
/external/python/cpython2/Python/ast.c
|
9e6310d9368dad33af584c214af7ac8ea3cda0fc |
|
25-Nov-2008 |
Benjamin Peterson <benjamin@python.org> |
always check the return value of NEW_IDENTIFIER
/external/python/cpython2/Python/ast.c
|
c078f929cb20f3e48fc1636ae8c211bc4f91a483 |
|
21-Nov-2008 |
Benjamin Peterson <benjamin@python.org> |
don't segfault when \N escapes are used and unicodedata fails to load Fixes #4367
/external/python/cpython2/Python/ast.c
|
2c98faada6f268d32c4031f7d09d9d5e6a2f46e3 |
|
08-Nov-2008 |
Benjamin Peterson <benjamin@python.org> |
check for assignment to __debug__ during AST generation Also, give assignment to None a better error message
/external/python/cpython2/Python/ast.c
|
399b1fe8dff3be012a49390cf971f850cf4f41aa |
|
25-Oct-2008 |
Benjamin Peterson <benjamin@python.org> |
give a py3k warning when 'nonlocal' is used as a variable name
/external/python/cpython2/Python/ast.c
|
80f0ed5bb1b38a615d92bdf2b3b3dad854dd06d9 |
|
19-Aug-2008 |
Benjamin Peterson <benjamin@python.org> |
allow keyword args to be passed in after *args #3473
/external/python/cpython2/Python/ast.c
|
64b7e501f46938a15e6ee2eaaaf6fc2b56e4abd8 |
|
16-Jul-2008 |
Mark Dickinson <dickinsm@gmail.com> |
Issue #3360: Fix incorrect parsing of "020000000000.0".
/external/python/cpython2/Python/ast.c
|
175e4d96631cad3e3ca230d97d51374b00d9e973 |
|
01-Jul-2008 |
Benjamin Peterson <benjamin@python.org> |
#3219 repeated keyword arguments aren't allowed in function calls anymore
/external/python/cpython2/Python/ast.c
|
9d53457e599623fbad90833c3448835b42d7e7f9 |
|
11-Jun-2008 |
Gregory P. Smith <greg@mad-scientist.com> |
Merge in release25-maint r60793: Added checks for integer overflows, contributed by Google. Some are only available if asserts are left in the code, in cases where they can't be triggered from Python code.
/external/python/cpython2/Python/ast.c
|
dd96db63f689e2f0d8ae5a1436b3b3395eec7de5 |
|
09-Jun-2008 |
Gregory P. Smith <greg@mad-scientist.com> |
This reverts r63675 based on the discussion in this thread: http://mail.python.org/pipermail/python-dev/2008-June/079988.html Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names in the spirit of 3.0 are available via a #define only. See the email thread.
/external/python/cpython2/Python/ast.c
|
f4fcdb6b8c0ee8bc4d2eee5ea3b848a4cd905ad6 |
|
09-Jun-2008 |
Benjamin Peterson <benjamin@python.org> |
warn about parameter tuple unpacking
/external/python/cpython2/Python/ast.c
|
d5efd2040642d08e64011fb6e81193002269aad4 |
|
09-Jun-2008 |
Benjamin Peterson <benjamin@python.org> |
Warn about assigning to Py3k keywords (True and False)
/external/python/cpython2/Python/ast.c
|
cbd78133fa68bd646bc0e77ea28cb73ed5a9c188 |
|
08-Jun-2008 |
Benjamin Peterson <benjamin@python.org> |
add an ast_warn helper function to make adding those Py3k warnings easier
/external/python/cpython2/Python/ast.c
|
2fe3ef8750e7f06ebf250bb2264f71d5f96e2f9b |
|
08-Jun-2008 |
Benjamin Peterson <benjamin@python.org> |
change Py3k backquote warning to a SyntaxWarning and add a test
/external/python/cpython2/Python/ast.c
|
593daf545bd9b7e7bcb27b498ecc6f36db9ae395 |
|
26-May-2008 |
Christian Heimes <christian@cheimes.de> |
Renamed PyString to PyBytes
/external/python/cpython2/Python/ast.c
|
2b30ea068fdac34a7bbeb5d3cf90796f5034aea6 |
|
03-May-2008 |
Benjamin Peterson <benjamin@python.org> |
The compiling struct is now passed around to all AST helpers (see issue 2720)
/external/python/cpython2/Python/ast.c
|
a48f3ab8951fa97844f2a4fa368483af968b7b73 |
|
30-Mar-2008 |
Georg Brandl <georg@python.org> |
Patch #2511: Give the "excepthandler" AST item proper attributes by making it a Sum.
/external/python/cpython2/Python/ast.c
|
3c60833e1e53f6239825b44f76fa22172feb1790 |
|
26-Mar-2008 |
Christian Heimes <christian@cheimes.de> |
Patch #2477: Added from __future__ import unicode_literals The new PyParser_*Ex() functions are based on Neal's suggestion and initial patch. The new __future__ feature makes all '' and r'' unicode strings. b'' and br'' stay (byte) strings.
/external/python/cpython2/Python/ast.c
|
d5b635f1969fdd609f0aff5669c9ec30e61be62e |
|
25-Mar-2008 |
Georg Brandl <georg@python.org> |
Make Py3k warnings consistent w.r.t. punctuation; also respect the EOL 80 limit and supply more alternatives in warning messages.
/external/python/cpython2/Python/ast.c
|
a4d77898db3856cd3d8c9411d024bea88be25b66 |
|
19-Mar-2008 |
Martin v. Löwis <martin@v.loewis.de> |
Issue #2400: Allow relative imports to "import *".
/external/python/cpython2/Python/ast.c
|
d21fb4c2e097dd72d1772a6f0325cc45f9b20f30 |
|
05-Mar-2008 |
Amaury Forgeot d'Arc <amauryfa@gmail.com> |
Issue#2238: some syntax errors from *args or **kwargs expressions would give bogus error messages, because of untested exceptions:: >>> f(**g(1=2)) XXX undetected error Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: 'int' object is not iterable instead of the expected SyntaxError: keyword can't be an expression Will backport.
/external/python/cpython2/Python/ast.c
|
5224d28d38eb784f17c2fed3f48368285df6d17a |
|
23-Feb-2008 |
Christian Heimes <christian@cheimes.de> |
Patch #1759: Backport of PEP 3129 class decorators with some help from Georg
/external/python/cpython2/Python/ast.c
|
288e89acfc29cf857a8c5d314ba2dd3398a2eae9 |
|
18-Jan-2008 |
Christian Heimes <christian@cheimes.de> |
Added bytes and b'' as aliases for str and ''
/external/python/cpython2/Python/ast.c
|
dfe5dc8455de93fddb3030416e41b92d3a0fd267 |
|
07-Jan-2008 |
Georg Brandl <georg@python.org> |
Make Python compile with --disable-unicode.
/external/python/cpython2/Python/ast.c
|
ffcd1e10b6287decf94ffb45fa28f4bebcede0b8 |
|
24-Nov-2007 |
Christian Heimes <christian@cheimes.de> |
Added filename to compiling struct based on Martin's suggestion. I'm wonder why I was trying to add the filename to the node all the time. The compiling struct is more obvious.
/external/python/cpython2/Python/ast.c
|
6d8fb1a4446c59f4a20f64bbcd2ade9c91362e8c |
|
23-Nov-2007 |
Christian Heimes <christian@cheimes.de> |
And yet another fix for the patch. Paul Moore has send me a note that I've missed a declaration. The additional code has moved the declaration in the middle of the block.
/external/python/cpython2/Python/ast.c
|
e36fe53d68b9fe8ff340ee8d7d35ab4822db69e0 |
|
23-Nov-2007 |
Christian Heimes <christian@cheimes.de> |
How did the comment get there?
/external/python/cpython2/Python/ast.c
|
02c9ab568d1458e4c1ea2ca700c5d25bb31e8002 |
|
23-Nov-2007 |
Christian Heimes <christian@cheimes.de> |
Fixed problems in the last commit. Filenames and line numbers weren't reported correctly. Backquotes still don't report the correct file. The AST nodes only contain the line number but not the file name.
/external/python/cpython2/Python/ast.c
|
729ab15370c8e7781f4781428364d203eb9f6416 |
|
23-Nov-2007 |
Christian Heimes <christian@cheimes.de> |
Applied patch #1754273 and #1754271 from Thomas Glee The patches are adding deprecation warnings for back ticks and <>
/external/python/cpython2/Python/ast.c
|
3adac217627fcd90fc82e3aaa3f141c8d8706324 |
|
05-Oct-2007 |
Neal Norwitz <nnorwitz@gmail.com> |
Fix Coverity #158: Check the correct variable.
/external/python/cpython2/Python/ast.c
|
69ff5acc8b8855dc30ddccbdc87ec2d0d596139f |
|
06-Aug-2007 |
Georg Brandl <georg@python.org> |
Place #ifdef Py_USING_UNICODE around decode_unicode().
/external/python/cpython2/Python/ast.c
|
b6ac23cd07ce560dcfd41e74e915d6afe4e8a525 |
|
18-Jul-2007 |
Guido van Rossum <guido@python.org> |
SF patch# 1755885 by Kurt Kaiser: show location of Unicode escape errors. (Slightly tweaked for style and refcounts.)
/external/python/cpython2/Python/ast.c
|
e06cf4534f738f0ad4669f504fbde58bf8b3fb86 |
|
07-Jun-2007 |
Georg Brandl <georg@python.org> |
Disallow function calls like foo(None=1). Backport from py3k rev. 55708 by Guido.
/external/python/cpython2/Python/ast.c
|
6290305e6722c20e17d3c73bd6a30c6448bead83 |
|
19-May-2007 |
Collin Winter <collinw@gmail.com> |
Backport PEP 3110's new 'except' syntax to 2.6.
/external/python/cpython2/Python/ast.c
|
dc9b32e1ab6051c0f4c2f13010bd884baef2a8c2 |
|
03-May-2007 |
Neal Norwitz <nnorwitz@gmail.com> |
Handle a couple of uncaught errors. This should be backported
/external/python/cpython2/Python/ast.c
|
b8ae3d01389f1b079303516aca24f61005c89ee1 |
|
02-May-2007 |
Georg Brandl <georg@python.org> |
Actually raise an exception before calling ast_error_finish. Triggers an assertion otherwise.
/external/python/cpython2/Python/ast.c
|
dd2cf1cb84e4dea3786594a4b26139335828757d |
|
16-Mar-2007 |
Jeremy Hylton <jeremy@alum.mit.edu> |
Clean up formatting of this file. The file should now follow PEP 7, except that it uses 4 space indents (in the style of Py3k). This particular code would be really hard to read with the regular tab idents. Other changes: - reflow long lines - change multi-line conditionals to have test at end of line
/external/python/cpython2/Python/ast.c
|
77c67bd5858ec0878f3cab93eb4b1ae53186688d |
|
16-Mar-2007 |
Collin Winter <collinw@gmail.com> |
Patch #1642547: Fix an error/crash when encountering syntax errors in complex if statements. Will backport.
/external/python/cpython2/Python/ast.c
|
819de6ce20c01d498ae976f069e8c59110102fb2 |
|
27-Feb-2007 |
Jeremy Hylton <jeremy@alum.mit.edu> |
tabify Note that ast.c still has a mix of tabs and spaces, because it attempts to use four-space indents for more of the new code.
/external/python/cpython2/Python/ast.c
|
85dbec6da74d4e5e83d0ff9c03155ecef8feea83 |
|
04-Nov-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Bug #1588287: fix invalid assertion for `1,2` in debug builds. Will backport
/external/python/cpython2/Python/ast.c
|
3a23017bb2309f6ba44090fb322f9681bf49c4c3 |
|
22-Sep-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Bug #1557232: fix seg fault with def f((((x)))) and def f(((x),)). These tests should be improved. Hopefully this fixes variations when flipping back and forth between fpdef and fplist. Backport candidate.
/external/python/cpython2/Python/ast.c
|
ca460d9722c9542004c4cf34d9231641ac18e34b |
|
06-Sep-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
with and as are now keywords. There are some generated files I can't recreate.
/external/python/cpython2/Python/ast.c
|
d042132268d75461e157bd87a3f4358ce603d311 |
|
05-Sep-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
M-x untabify
/external/python/cpython2/Python/ast.c
|
e4d4f00aeec12cc681b977f50e2b52eff7a11db1 |
|
05-Sep-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Add a comment about some refactoring. (There's probably more that should be done.) I will reformat this file in the next checkin due to the inconsistent tabs/spaces.
/external/python/cpython2/Python/ast.c
|
dac090d3e62cadd24fc6b73ab177bf98326c1849 |
|
05-Sep-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Bug #1520864 (again): unpacking singleton tuples in list comprehensions and generator expressions (x for x, in ... ) works again. Sigh, I only fixed for loops the first time, not list comps and genexprs too. I couldn't find any more unpacking cases where there is a similar bug lurking. This code should be refactored to eliminate the duplication. I'm sure the listcomp/genexpr code can be refactored. I'm not sure if the for loop can re-use any of the same code though. Will backport to 2.5 (the only place it matters).
/external/python/cpython2/Python/ast.c
|
6f5ff3f3eb7abc2f4750c1319b560f67faf546ac |
|
12-Aug-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Klocwork made another run and found a bunch more problems. This is the first batch of fixes that should be easy to verify based on context. This fixes problem numbers: 220 (ast), 323-324 (symtable), 321-322 (structseq), 215 (array), 210 (hotshot), 182 (codecs), 209 (etree).
/external/python/cpython2/Python/ast.c
|
c173b488dcf496e9a09024fbcd1104d72f71d226 |
|
30-Jul-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Add some asserts and update comments
/external/python/cpython2/Python/ast.c
|
0d62a062066a4cbc8aabab9c305d60ebf7922c8c |
|
30-Jul-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Patch #1531113: Fix augmented assignment with yield expressions. Also fix a SystemError when trying to assign to yield expressions.
/external/python/cpython2/Python/ast.c
|
d12bd012a6a4729b5a77c1019ca9da4e9d1b7e3e |
|
21-Jul-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Handle more memory allocation failures without crashing.
/external/python/cpython2/Python/ast.c
|
edef2be4af973f1766b593cf48188db2e320dcbe |
|
12-Jul-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Bug #1520864: unpacking singleton tuples in for loop (for x, in) work again.
/external/python/cpython2/Python/ast.c
|
6ec6ab02c33b1b879fef7058bcfecd4edaa66bd9 |
|
09-Jul-2006 |
Neil Schemenauer <nascheme@enme.ucalgary.ca> |
Fix SF bug 1441486: bad unary minus folding in compiler.
/external/python/cpython2/Python/ast.c
|
0e07b60a4e44129cfafaeacac765cf957e2ea219 |
|
09-Jul-2006 |
Neil Schemenauer <nascheme@enme.ucalgary.ca> |
Fix AST compiler bug #1501934: incorrect LOAD/STORE_GLOBAL generation.
/external/python/cpython2/Python/ast.c
|
fb48afa708d2b5de9d59e6c91e2c063889c41e45 |
|
08-Jul-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Fix SF bug #1519018: 'as' is now validated properly in import statements
/external/python/cpython2/Python/ast.c
|
7784f12d745e5f0d2e4c9e98c792f026897325ea |
|
26-May-2006 |
Georg Brandl <georg@python.org> |
Replace Py_BuildValue("OO") by PyTuple_Pack.
/external/python/cpython2/Python/ast.c
|
5ef922447c3dd0f9b306b4fde59481b4d4eaeaa3 |
|
19-May-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Fix #1474677, non-keyword argument following keyword.
/external/python/cpython2/Python/ast.c
|
373f0a718c359bc9e554ec323a9d71844ee76dfc |
|
15-May-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
- Bug #1487966: Fix SystemError with conditional expression in assignment Most of the test_syntax changes are just updating the numbers.
/external/python/cpython2/Python/ast.c
|
6685128b973981ff57b577f09b0a38e0071d272e |
|
22-Apr-2006 |
Martin v. Löwis <martin@v.loewis.de> |
Fix more ssize_t issues.
/external/python/cpython2/Python/ast.c
|
0cc56e5c59bbc9d839d1468f8b51ea9391e8852a |
|
13-Apr-2006 |
Martin v. Löwis <martin@v.loewis.de> |
Introduce asdl_int_seq, to hold cmpop_ty.
/external/python/cpython2/Python/ast.c
|
2845750c5bfcf8b7a71e11d97b469fee19a290c6 |
|
11-Apr-2006 |
Martin v. Löwis <martin@v.loewis.de> |
Convert 0 to their respective enum types. Convert void* to their respective _ty types. Fix signature of ast_for_exprlist.
/external/python/cpython2/Python/ast.c
|
a863d334aa7c9d81daea4f6b9800e8245779dc44 |
|
11-Apr-2006 |
Anthony Baxter <anthonybaxter@gmail.com> |
low-hanging fruit in Python/ - g++ still hates all the enum_kind declarations in Python/Python-ast.c. Not sure what to do about those.
/external/python/cpython2/Python/ast.c
|
2f327c14eb998e8796a3775aa6a7aade14e97004 |
|
04-Apr-2006 |
Jeremy Hylton <jeremy@alum.mit.edu> |
Add lineno, col_offset to excephandler to enable future fix for tracing/line number table in except blocks. Reflow long lines introduced by col_offset changes. Update test_ast to handle new fields in excepthandler. As note in Python.asdl says, we might want to rethink how attributes are handled. Perhaps they should be the same as other fields, with the primary difference being how they are defined for all types within a sum. Also fix asdl_c so that constructors with int fields don't fail when passed a zero value.
/external/python/cpython2/Python/ast.c
|
33b730e33cb0a63f4030d1587a6196dcde36e965 |
|
27-Mar-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Fix SF bug #1458903 with AST compiler. def foo((x)): was getting recognized as requiring tuple unpacking which is not correct. Add tests for this case and the proper way to unpack a tuple of one: def foo((x,)): test_inpsect was incorrect before. I'm not sure why it was passing, but that has been corrected with a test for both functions above. This means the test (and therefore inspect.getargspec()) are broken in 2.4.
/external/python/cpython2/Python/ast.c
|
e98ccf66902f10ce2daaa33a22fb8ee8d99de18f |
|
23-Mar-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Forward port MvL's fix in 43227: Fix crash when a Unicode string containing an encoding declaration is compile()d. Fixes #1115379.
/external/python/cpython2/Python/ast.c
|
77858684e4d66a373b63987856001929f1852b10 |
|
17-Mar-2006 |
Nick Coghlan <ncoghlan@gmail.com> |
Fix bug 1441408 where a double colon didn't trigger extended slice semantics (applies patch 1452332)
/external/python/cpython2/Python/ast.c
|
4af5c8cee4885df70884a58e2e74c48984bbe7c2 |
|
07-Mar-2006 |
Hye-Shik Chang <hyeshik@gmail.com> |
SF #1444030: Fix several potential defects found by Coverity. (reviewed by Neal Norwitz)
/external/python/cpython2/Python/ast.c
|
49c5da1d88f605248167f4d95b1dfe08c1f703c7 |
|
01-Mar-2006 |
Martin v. Löwis <martin@v.loewis.de> |
Patch #1440601: Add col_offset attribute to AST nodes.
/external/python/cpython2/Python/ast.c
|
65b3dab50e7192b4ad6cae046c3ed15b53752ac4 |
|
01-Mar-2006 |
Thomas Wouters <thomas@python.org> |
Fix uninitialized value. (Why are we using bools instead of ints, like we do everywhere else?)
/external/python/cpython2/Python/ast.c
|
8ae1295c5b6cfef0fc6db5c97fe68a0b40de8331 |
|
28-Feb-2006 |
Thomas Wouters <thomas@python.org> |
Make 'as' an actual keyword when with's future statement is used. Not actually necessary for functionality, but good for transition.
/external/python/cpython2/Python/ast.c
|
a829313d7b966caa1f6badce73873a1da4c2258c |
|
28-Feb-2006 |
Jeremy Hylton <jeremy@alum.mit.edu> |
Remove asdl_seq_APPEND() and simplify asdl seq implementation. Clarify intended use of set_context() and check errors at all call sites.
/external/python/cpython2/Python/ast.c
|
f7f438ba3b05eb4356e7511401686b07d9dfb6d8 |
|
28-Feb-2006 |
Thomas Wouters <thomas@python.org> |
SF patch #1438387, PEP 328: relative and absolute imports. - IMPORT_NAME takes an extra argument from the stack: the relativeness of the import. Only passed to __import__ when it's not -1. - __import__() takes an optional 5th argument for the same thing; it __defaults to -1 (old semantics: try relative, then absolute) - 'from . import name' imports name (be it module or regular attribute) from the current module's *package*. Likewise, 'from .module import name' will import name from a sibling to the current module. - Importing from outside a package is not allowed; 'from . import sys' in a toplevel module will not work, nor will 'from .. import sys' in a (single-level) package. - 'from __future__ import absolute_import' will turn on the new semantics for import and from-import: imports will be absolute, except for from-import with dots. Includes tests for regular imports and importhooks, parser changes and a NEWS item, but no compiler-package changes or documentation changes.
/external/python/cpython2/Python/ast.c
|
c2e20744b2b7811632030470971c31630f0975e2 |
|
27-Feb-2006 |
Guido van Rossum <guido@python.org> |
PEP 343 -- the with-statement. This was started by Mike Bland and completed by Guido (with help from Neal). This still needs a __future__ statement added; Thomas is working on Michael's patch for that aspect. There's a small amount of code cleanup and refactoring in ast.c, compile.c and ceval.c (I fixed the lltrace behavior when EXT_POP is used -- however I had to make lltrace a static global).
/external/python/cpython2/Python/ast.c
|
c7d37264bbd4a234027dffd215cc32813a202710 |
|
27-Feb-2006 |
Jeremy Hylton <jeremy@alum.mit.edu> |
Fix parsing of subscriptlist. (Armin's SF bug report). d = {} d[1,] = 1 Now handled correctly
/external/python/cpython2/Python/ast.c
|
8622e93eab3583a7ab4d6018cd9816bb1deef338 |
|
27-Feb-2006 |
Thomas Wouters <thomas@python.org> |
And some more cleanup.
/external/python/cpython2/Python/ast.c
|
106203c6e0a70e26e85edb6460327d815f49511a |
|
27-Feb-2006 |
Thomas Wouters <thomas@python.org> |
Clean up from-import handling.
/external/python/cpython2/Python/ast.c
|
9ebfbf0a430c80f8eec946d8003d1402903c5095 |
|
27-Feb-2006 |
Jeremy Hylton <jeremy@alum.mit.edu> |
Simplify ast_for_trailer() in anticipation of more changes.
/external/python/cpython2/Python/ast.c
|
aa8b6c5855d0a619778fb3557073a5ca3458585b |
|
27-Feb-2006 |
Thomas Wouters <thomas@python.org> |
Fix old not-reading-pep-308-right artifact.
/external/python/cpython2/Python/ast.c
|
fa443cda878b85abb83efb9674df4ff32f6d1b17 |
|
27-Feb-2006 |
Thomas Wouters <thomas@python.org> |
Fix assertion errors in debug build, brought on by PEP 308 patch.
/external/python/cpython2/Python/ast.c
|
dca3b9c797f6dd4b08d590fa2aa1031e22ab598e |
|
27-Feb-2006 |
Thomas Wouters <thomas@python.org> |
PEP 308 implementation, including minor refdocs and some testcases. It breaks the parser module, because it adds the if/else construct as well as two new grammar rules for backward compatibility. If no one else fixes parsermodule, I guess I'll go ahead and fix it later this week. The TeX code was checked with texcheck.py, but not rendered. There is actually a slight incompatibility: >>> (x for x in lambda:0) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: iteration over non-sequence changes into >>> (x for x in lambda: 0) File "<stdin>", line 1 (x for x in lambda: 0) ^ SyntaxError: invalid syntax Since there's no way the former version can be useful, it's probably a bugfix ;)
/external/python/cpython2/Python/ast.c
|
96e48d4698a54901eb362377d18774836c32b2a4 |
|
05-Feb-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Use C-style comment
/external/python/cpython2/Python/ast.c
|
c960f26044edaea6669e60859ecf590c63c65e62 |
|
27-Jan-2006 |
Jeremy Hylton <jeremy@alum.mit.edu> |
Improved handling of syntax errors. Expand set of errors caught in set_context(). Some new errors, some old error messages changed for consistency. Fixed error checking in generator expression code. The first set of tests were impossible condition given the grammar. In general, the ast code uses REQ() for those sanity checks. Fix some error handling for augmented assignments. As comments in the code explain, set_context() ought to work here, but I got unexpected crashes when I tried it. Should come back to this. Add note to Grammar that yield expression is a special case. Add doctest cases for SyntaxErrors raised by ast.c.
/external/python/cpython2/Python/ast.c
|
e93e64fb1a10db07425cab30a65af1b335bc59ef |
|
08-Jan-2006 |
Tim Peters <tim.peters@gmail.com> |
Repair bizarre indentation created by VC 7.1.
/external/python/cpython2/Python/ast.c
|
5db42c4c5088ce511d35c0a8942f563d95e13230 |
|
08-Jan-2006 |
Tim Peters <tim.peters@gmail.com> |
alias_for_import_name(): Dueling compiler warnings ;-) Squash new warnings from VC 7.1 about mixing signed and unsigned types in comparisons. I can see why `len` was changed to size_t here, but don't see why `i` was also changed. Change `i` back to int.
/external/python/cpython2/Python/ast.c
|
46b7bda9bcd0fb11878a154234c3064e19e35f3c |
|
08-Jan-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Fix icc warnings: conversion from "long" to "int" may lose significant bits
/external/python/cpython2/Python/ast.c
|
406c640344b8a7300bb4a256abb91d22b746b13b |
|
07-Jan-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Fix icc warnings: shadowing local variables
/external/python/cpython2/Python/ast.c
|
24f0fa97c5ed31397f20b094a166de325036e3c2 |
|
29-Dec-2005 |
Fredrik Lundh <fredrik@pythonware.com> |
SF#1391872 Floating point literals don't work in non-US locale in 2.5. Patch and new locale tests by Hye-Shik Chang.
/external/python/cpython2/Python/ast.c
|
30b5c5d0116f8e670a6ca74dcb6bd076a919d681 |
|
19-Dec-2005 |
Neal Norwitz <nnorwitz@gmail.com> |
Fix SF bug #1072182, problems with signed characters. Most of these can be backported.
/external/python/cpython2/Python/ast.c
|
84456bdab35ea8a4c75eeaee6f3320c8c4280007 |
|
18-Dec-2005 |
Neal Norwitz <nnorwitz@gmail.com> |
Cleanup a bit and make things more consistent. Don't double check for NULLs and don't initialize if not necessary. No functional changes.
/external/python/cpython2/Python/ast.c
|
f599f424a2c8cfc490111a11203c93d23706379f |
|
17-Dec-2005 |
Neal Norwitz <nnorwitz@gmail.com> |
SF patch #1355913, PEP 341 - Unification of try/except and try/finally Modified since ast-arenas was implemented.
/external/python/cpython2/Python/ast.c
|
adb69fcdffdc50ee3e1d33b00cd874020197b445 |
|
17-Dec-2005 |
Neal Norwitz <nnorwitz@gmail.com> |
Merge from ast-arena. This reduces the code in Python/ast.c by ~300 lines, simplifies a lot of error handling code, and fixes many memory leaks.
/external/python/cpython2/Python/ast.c
|
f8d403dd972a354fadc939d54dc0a1c45ffda327 |
|
11-Dec-2005 |
Neal Norwitz <nnorwitz@gmail.com> |
SF #1377897, Bus error in ast If a line had multiple semi-colons and ended with a semi-colon, we would loop too many times and access a NULL node. Exit the loop early if there are no more children.
/external/python/cpython2/Python/ast.c
|
8ad64aaacc22d68d6d93c3c12f7e67e9962de09b |
|
11-Dec-2005 |
Neal Norwitz <nnorwitz@gmail.com> |
SF #1370197, memory leak - ast_error_finish (in error conditions).
/external/python/cpython2/Python/ast.c
|
e5368925417759be3eef7ec477366a409c650280 |
|
05-Dec-2005 |
Neal Norwitz <nnorwitz@gmail.com> |
Remove unnecessary extern variable
/external/python/cpython2/Python/ast.c
|
7bcabc60a36eb5910bd162d54ece449f5249bbcd |
|
21-Nov-2005 |
Neal Norwitz <nnorwitz@gmail.com> |
Fix a few more memory leaks Document more info about the benefits of configuring without pymalloc when running valgrind
/external/python/cpython2/Python/ast.c
|
a3fd07d524dc37d7f3b2b0d1e6086109547b2ba6 |
|
16-Nov-2005 |
Neal Norwitz <nnorwitz@gmail.com> |
add more doc
/external/python/cpython2/Python/ast.c
|
6b347890462d07ee87593d5619d84c67d4729232 |
|
15-Nov-2005 |
Neal Norwitz <nnorwitz@gmail.com> |
Fix another memory leak or two (one real, one potential)
/external/python/cpython2/Python/ast.c
|
af8f9749677729fd39fd99df5779c195b4eeefed |
|
15-Nov-2005 |
Neal Norwitz <nnorwitz@gmail.com> |
Add a note about how to do the memory deallocation a bit. This needs a lot of work.
/external/python/cpython2/Python/ast.c
|
e76adcd78a434d7266b5fc0250be87d74dafd8df |
|
15-Nov-2005 |
Neal Norwitz <nnorwitz@gmail.com> |
Fix a whole bunch of potential memory leaks (and some real ones too) in error conditions.
/external/python/cpython2/Python/ast.c
|
79792651c42416ad320aac5ee77c235efb8dca80 |
|
14-Nov-2005 |
Neal Norwitz <nnorwitz@gmail.com> |
Convert all internal errors from Exception to SystemError Remove an abort() and let a SystemError be raised.
/external/python/cpython2/Python/ast.c
|
e8c0536d57d58a40d7bb8d81034bb9ba196fd078 |
|
14-Nov-2005 |
Neal Norwitz <nnorwitz@gmail.com> |
Fix memory leak with bad generator expression
/external/python/cpython2/Python/ast.c
|
7b3d5e177941f910bbf20a9345213b51b7be6a87 |
|
13-Nov-2005 |
Neal Norwitz <nnorwitz@gmail.com> |
remove useless debug print helper. fix a couple of exceptions
/external/python/cpython2/Python/ast.c
|
982e8d671c126515fa5a4bab3156cc8d9ebbf5f0 |
|
25-Oct-2005 |
Neil Schemenauer <nascheme@enme.ucalgary.ca> |
Refactor code for translating "power" nodes.
/external/python/cpython2/Python/ast.c
|
c5dd10aa1d444c301750b286f28ec43571a0578f |
|
25-Oct-2005 |
Neil Schemenauer <nascheme@enme.ucalgary.ca> |
Write a separate ast_for_testlist_gexp() function instead of overloading ast_for_testlist(). Also, write a ast_for_class_bases() function and in the process fix a memory leak. Add some assertions.
/external/python/cpython2/Python/ast.c
|
147b75931df421b9531cadadd3e182bae542c137 |
|
23-Oct-2005 |
Neil Schemenauer <nascheme@enme.ucalgary.ca> |
Add an assert.
/external/python/cpython2/Python/ast.c
|
31441302171fe882976bcc05f5ded9645cd690af |
|
21-Oct-2005 |
Armin Rigo <arigo@tunes.org> |
ANSI-C-ify the placement of local var declarations.
/external/python/cpython2/Python/ast.c
|
57071ce545f031e986cb6b2090340bae33d042ec |
|
21-Oct-2005 |
Neal Norwitz <nnorwitz@gmail.com> |
Oops, "=" is not a comparison operator
/external/python/cpython2/Python/ast.c
|
3e0055f8c65c407e74ce476b8e2b1fb889723514 |
|
20-Oct-2005 |
Jeremy Hylton <jeremy@alum.mit.edu> |
Merge ast-branch to head This change implements a new bytecode compiler, based on a transformation of the parse tree to an abstract syntax defined in Parser/Python.asdl. The compiler implementation is not complete, but it is in stable enough shape to run the entire test suite excepting two disabled tests.
/external/python/cpython2/Python/ast.c
|