[Python-Dev] r84931 - in python/branches/py3k: Include/symtable.h Misc/NEWS Python/ast.c Python/compile.c Python/future.c Python/symtable.c

Georg Brandl g.brandl at gmx.net
Tue Sep 21 13:38:40 CEST 2010


Am 21.09.2010 01:02, schrieb benjamin.peterson:
> Author: benjamin.peterson
> Date: Tue Sep 21 01:02:10 2010
> New Revision: 84931
> 
> Log:
> add column offset to all syntax errors
> Modified: python/branches/py3k/Misc/NEWS
> ==============================================================================
> --- python/branches/py3k/Misc/NEWS	(original)
> +++ python/branches/py3k/Misc/NEWS	Tue Sep 21 01:02:10 2010
> @@ -10,9 +10,8 @@
>  Core and Builtins
>  -----------------
>  
> -- Issue #9901: Destroying the GIL in Py_Finalize() can fail if some other
> -  threads are still running.  Instead, reinitialize the GIL on a second
> -  call to Py_Initialize().
> +- All SyntaxErrors now have a column offset and therefore a caret when the error
> +  is printed.
>  
>  - Issue #9252: PyImport_Import no longer uses a fromlist hack to return the
>    module that was imported, but instead gets the module from sys.modules.
> @@ -59,10 +58,6 @@
>  Library
>  -------
>  
> -- Issue #9877: Expose sysconfig.get_makefile_filename()
> -
> -- logging: Added hasHandlers() method to Logger and LoggerAdapter.
> -
>  - Issue #1686: Fix string.Template when overriding the pattern attribute.
>  
>  - Issue #9854: SocketIO objects now observe the RawIOBase interface in

That change looks like and accident.

BTW, PyErr_SyntaxLocationEx needs a versionadded.

Georg

-- 
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.



More information about the Python-Dev mailing list