Benjamin Peterson
5f429e0227
account for PyObject_IsInstance's new ability to fail
2009-12-13 00:54:15 +00:00
Benjamin Peterson
42d63847c3
rewrite translate_newlines for clarity
2009-12-06 17:37:48 +00:00
Benjamin Peterson
e36199b49d
fix several compile() issues by translating newlines in the tokenizer
2009-11-12 23:39:44 +00:00
Benjamin Peterson
e3383b8e8f
spelling
2009-11-07 01:04:38 +00:00
Benjamin Peterson
9586cf8677
fix some coding style
2009-10-09 21:48:14 +00:00
Kristján Valur Jónsson
d12f86ce96
http://bugs.python.org/issue6836
...
A memory block allocated with one API was being handed over to an object that used another API to release it.
2009-09-28 13:08:48 +00:00
Benjamin Peterson
08a0bbc846
don't mask encoding errors when decoding a string #6289
2009-06-16 00:29:31 +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
Alexandre Vassalotti
f0c9e46cde
Delete outdated make file for building the parser with MSVC 6.
2009-06-12 21:43:47 +00:00
Benjamin Peterson
b4347a259c
remove has_key
2009-06-07 22:55:36 +00:00
Benjamin Peterson
5c33d86b4b
use booleans for flags
2009-06-07 22:54:35 +00:00
Benjamin Peterson
dea29d0c11
always inherit from an appropiate base class
2009-06-07 22:35:00 +00:00
Benjamin Peterson
bd9508a7df
inherit from object
2009-06-07 22:33:11 +00:00
Martin v. Löwis
b3b7d859b3
Issue #4279 : Fix build of parsermodule under Cygwin.
2009-01-11 09:26:54 +00:00
Georg Brandl
bc1309255e
Remove useless string literal.
2009-01-03 13:45:15 +00:00
Benjamin Peterson
bdca942ffc
fix __future__ imports when multiple features are given
2008-10-26 20:21:13 +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
Benjamin Peterson
84076d8a11
update asdl_c.py from r66377
2008-09-10 22:28:00 +00:00
Andrew M. Kuchling
110a48cf60
#3367 : revert rev. 65539: this change causes test_parser to fail
2008-08-05 02:05:23 +00:00
Andrew M. Kuchling
efa61bc15f
#3367 from Kristjan Valur Jonsson:
...
If a PyTokenizer_FromString() is called with an empty string, the
tokenizer's line_start member never gets initialized. Later, it is
compared with the token pointer 'a' in parsetok.c:193 and that behavior
can result in undefined behavior.
2008-08-05 01:38:08 +00:00
Benjamin Peterson
114f7e5fff
#1683 prevent forking from interfering in threading storage
...
This should prevent some test_multiprocessing failures
2008-06-13 00:09:47 +00:00
Gregory P. Smith
9d53457e59
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.
2008-06-11 07:41:16 +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