]> granicus.if.org Git - python/commit
Patch #2477: Added from __future__ import unicode_literals
authorChristian Heimes <christian@cheimes.de>
Wed, 26 Mar 2008 22:01:37 +0000 (22:01 +0000)
committerChristian Heimes <christian@cheimes.de>
Wed, 26 Mar 2008 22:01:37 +0000 (22:01 +0000)
commit3c60833e1e53f6239825b44f76fa22172feb1790
treea8ebf8db7f226aaaa1a144e1b6361281374a169a
parent0cb3e86c472828720bb36a8335f10b81389fb668
Patch #2477: Added from __future__ import unicode_literals

The new PyParser_*Ex() functions are based on Neal's suggestion and initial patch. The new __future__ feature makes all '' and r'' unicode strings. b'' and br'' stay (byte) strings.
12 files changed:
Include/code.h
Include/compile.h
Include/parsetok.h
Include/pythonrun.h
Lib/__future__.py
Misc/NEWS
Parser/parser.c
Parser/parsetok.c
Python/ast.c
Python/future.c
Python/import.c
Python/pythonrun.c