[Python-3000-checkins] r59729 - in python/branches/py3k: Misc/NEWS Python/pythonrun.c
kurt.kaiser
python-3000-checkins at python.org
Sat Jan 5 05:32:23 CET 2008
Author: kurt.kaiser
Date: Sat Jan 5 05:32:22 2008
New Revision: 59729
Modified:
python/branches/py3k/Misc/NEWS
python/branches/py3k/Python/pythonrun.c
Log:
Interpreter wasn't displaying the location of a SyntaxError
Issue1692
Modified: python/branches/py3k/Misc/NEWS
==============================================================================
--- python/branches/py3k/Misc/NEWS (original)
+++ python/branches/py3k/Misc/NEWS Sat Jan 5 05:32:22 2008
@@ -12,6 +12,8 @@
Core and Builtins
-----------------
+- Issue #1692: Interpreter was not displaying location of SyntaxError
+
- Improve some exception messages when Windows fails to load an extension
module. Now we get for example '%1 is not a valid Win32 application' instead
of 'error code 193'. Also use Unicode strings to deal with non-English
Modified: python/branches/py3k/Python/pythonrun.c
==============================================================================
--- python/branches/py3k/Python/pythonrun.c (original)
+++ python/branches/py3k/Python/pythonrun.c Sat Jan 5 05:32:22 2008
@@ -1103,7 +1103,7 @@
goto finally;
if (v == Py_None)
*filename = NULL;
- else if (! (*filename = PyString_AsString(v)))
+ else if (! (*filename = PyUnicode_AsString(v)))
goto finally;
Py_DECREF(v);
More information about the Python-3000-checkins
mailing list