Martin v. Löwis
a94568a753
Patch #734231 : Update RiscOS support. In particular, correct
...
riscospath.extsep, and use os.extsep throughout.
2003-05-10 07:36:56 +00:00
Martin v. Löwis
c16f3bd8a3
Patch #708495 : Port more stuff to OpenVMS.
2003-05-03 09:14:54 +00:00
Guido van Rossum
a649e9cb7a
Remove file that was moved to ../Include
2003-04-29 14:14:58 +00:00
Guido van Rossum
d3ab37f1df
Changes from Jonathan Riehl to allow his pgen extension (PEP 269) to
...
work. This includes some more code that used to be part of pgen in
the main parser; I'm okay with that. I'll see if the Windows build
needs work next.
2003-04-17 14:55:42 +00:00
Barry Warsaw
edaa071eb4
compile_atom(): Neal's last checkin removing the setting of i broke
...
the build, so I'm restoring it. I'm not sure what Neal's intent was,
since the line following the one he removed was "REQN(i, 1)" so i is
obviously used. ;)
2003-02-28 15:27:40 +00:00
Neal Norwitz
5f16a3178c
Remove setting i since it isn't used. Found in unrelated bug 690012.
2003-02-28 03:16:07 +00:00
Marc-André Lemburg
1fb1400d08
Add URL for PEP to the source code encoding warning.
...
Remove the usage of PyErr_WarnExplicit() since this could cause
sensitive information from the source files to appear in e.g.
log files.
2003-02-17 18:31:57 +00:00
Guido van Rossum
4b499dd3fb
- Finally fixed the bug in compile() and exec where a string ending
...
with an indented code block but no newline would raise SyntaxError.
This would have been a four-line change in parsetok.c... Except
codeop.py depends on this behavior, so a compilation flag had to be
invented that causes the tokenizer to revert to the old behavior;
this required extra changes to 2 .h files, 2 .c files, and 2 .py
files. (Fixes SF bug #501622.)
2003-02-13 22:07:59 +00:00
Just van Rossum
f032f86e9e
patch 680474 that fixes bug 679880: compile/eval/exec refused utf-8 bom
...
mark. Added unit test.
2003-02-09 20:38:48 +00:00
Mark Hammond
a2e303c32d
Fix [ 665014 ] files with long lines and an encoding crash.
...
Ensure that the 'size' arg is correctly passed to the encoding reader to
prevent buffer overflows.
2003-01-14 23:15:22 +00:00
Martin v. Löwis
95292d6caa
Constify filenames and scripts. Fixes #651362 .
2002-12-11 14:04:59 +00:00
Neal Norwitz
e08e1bc80a
Fix compiler warning on HP-UX.
...
Cast param to isalnum() to int.
2002-11-02 20:43:25 +00:00
Skip Montanaro
35f63a860b
Change PyOS_Readline declaration to match the recent change to myreadline.c
...
(see Patch 512981). I changed stdin to sys_stdin in the body of the
function, but did not change stderr to sys_stdout, though I suspect that may
be the correct course. I don't know the code involved well enough to judge.
2002-10-27 01:59:21 +00:00
Martin v. Löwis
566f6afe9a
Patch #512981 : Update readline input stream on sys.stdin/out change.
2002-10-26 14:39:10 +00:00
Tim Peters
17db21ffd0
Removed reliance on gcc/C99 extension.
2002-09-03 15:39:58 +00:00
Martin v. Löwis
f62a89b1e0
Ignore encoding declarations inside strings. Fixes #603509 .
2002-09-03 11:52:44 +00:00
Guido van Rossum
84b2bed435
Squash a few calls to the hideously expensive PyObject_CallObject(o,a)
...
-- replace then with slightly faster PyObject_Call(o,a,NULL). (The
difference is that the latter requires a to be a tuple; the former
allows other values and wraps them in a tuple if necessary; it
involves two more levels of C function calls to accomplish all that.)
2002-08-16 17:01:09 +00:00
Skip Montanaro
118ec70ea2
provide less mysterious error messages when seeing end-of-line in
...
single-quoted strings or end-of-file in triple-quoted strings.
closes patch 586561.
2002-08-15 01:20:16 +00:00
Martin v. Löwis
2863c10a86
Use Py_FatalError instead of abort.
2002-08-07 15:18:57 +00:00
Martin v. Löwis
019934b3cc
Fix PEP 263 code --without-unicode. Fixes #591943 .
2002-08-07 12:33:18 +00:00
Jack Jansen
cf0a2cfdb2
Added a cast to shut up a compiler warning.
2002-08-05 14:14:05 +00:00
Martin v. Löwis
725bb233b9
Add 1 to lineno in deprecation warning. Fixes #590888 .
2002-08-05 01:49:16 +00:00
Martin v. Löwis
1ee99d31d9
Make pgen compile with pydebug. Duplicate normalized names, as it may
...
be longer than the old string.
2002-08-04 20:10:29 +00:00
Martin v. Löwis
cd280fb59c
Group statements properly.
2002-08-04 18:28:44 +00:00
Tim Peters
2c3f9c6f04
Repaired a fatal compiler error in the debug build: it's not clear what
...
this was trying to assert, but the name it referenced didn't exist.
2002-08-04 17:58:34 +00:00