Benjamin Peterson
5f429e0227
account for PyObject_IsInstance's new ability to fail
2009-12-13 00:54:15 +00:00
Benjamin Peterson
8fa3e933c1
update ast version
2009-06-13 20:30:48 +00:00
Benjamin Peterson
a72be3b325
when no module is given in a 'from' relative import, make ImportFrom.module NULL
2009-06-13 20:23:33 +00:00
Benjamin Peterson
aff36f1295
fix compiler warning
2008-10-19 13:59:01 +00:00
Armin Ronacher
35e01fbeaa
Fixed #4067 by implementing _attributes and _fields for the AST root node.
2008-10-19 08:27:43 +00:00
Amaury Forgeot d'Arc
05e344954d
#3743 : PY_FORMAT_SIZE_T is designed for the OS "printf" functions, not for
...
PyString_FromFormat which has an independent implementation, and uses "%zd".
This makes a difference on win64, where printf needs "%Id" to display
64bit values. For example, queue.__repr__ was incorrect.
Reviewed by Martin von Loewis.
2008-09-10 22:04:45 +00:00
Gregory P. Smith
dd96db63f6
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.
2008-06-09 04:58:54 +00:00
Christian Heimes
593daf545b
Renamed PyString to PyBytes
2008-05-26 12:51:38 +00:00
Georg Brandl
e34c21c2a0
Make AST nodes pickleable.
2008-03-30 20:20:39 +00:00
Georg Brandl
1721e75749
Fix error message -- "expects either 0 or 0 arguments"
2008-03-30 19:43:27 +00:00
Georg Brandl
2c55c597fa
Make _fields attr for no fields consistent with _attributes attr.
2008-03-30 19:00:49 +00:00
Georg Brandl
c52ed59473
#2505 : allow easier creation of AST nodes.
2008-03-30 07:01:47 +00:00
Georg Brandl
a48f3ab895
Patch #2511 : Give the "excepthandler" AST item proper attributes by making it a Sum.
2008-03-30 06:40:17 +00:00
Georg Brandl
f2bfd54d6f
Properly check for consistency with the third argument of
...
compile() when compiling an AST node.
2008-03-29 13:24:23 +00:00
Amaury Forgeot d'Arc
473445c964
Silence a compilation warning
2008-03-28 20:17:51 +00:00
Georg Brandl
fc8eef3c78
Patch #1810 by Thomas Lee, reviewed by myself:
...
allow compiling Python AST objects into code objects
in compile().
2008-03-28 12:11:56 +00:00
Christian Heimes
4034685a58
Issue #2051 and patch from Alexander Belopolsky:
...
Permission for pyc and pyo files are inherited from the py file.
2008-02-23 17:52:07 +00:00
Christian Heimes
5224d28d38
Patch #1759 : Backport of PEP 3129 class decorators
...
with some help from Georg
2008-02-23 15:01:05 +00:00
Neal Norwitz
7b7d1c8282
Fix a couple of problems in generating the AST code:
...
* use %r instead of backticks since backticks are going away in Py3k
* PyArena_Malloc() already sets PyErr_NoMemory so we don't need to do it again
* the signature for ast2obj_int incorrectly used a bool, rather than a long
2007-02-26 18:10:47 +00:00
Brett Cannon
0db62aaf09
Modify Parser/asdl_c.py so that the __version__ number for Python/Python-ast.c
...
is specified at the top of the file. Also add a note that Python/Python-ast.c
needs to be committed separately after a change to the AST grammar to capture
the revision number of the change (which is what __version__ is set to).
2007-02-12 03:51:02 +00:00
Brett Cannon
d080d4b047
Check in changed Python-ast.c from a cosmetic change to Python.asdl (in
...
r53731).
2007-02-11 19:44:41 +00:00
Martin v. Löwis
0cc56e5c59
Introduce asdl_int_seq, to hold cmpop_ty.
2006-04-13 12:29:43 +00:00
Martin v. Löwis
9eec489c4a
Regenerate.
2006-04-11 09:03:33 +00:00
Martin v. Löwis
01b810106c
Make _kind types global for C++ compilation.
...
Explicitly cast void* to int to cmpop_ty.
2006-04-11 08:06:50 +00:00
Anthony Baxter
a863d334aa
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.
2006-04-11 07:43:46 +00:00