[Python-checkins] peps: Add Text alias.

guido.van.rossum python-checkins at python.org
Tue Apr 5 19:35:58 EDT 2016


https://hg.python.org/peps/rev/25dba0ec19b3
changeset: 6277:25dba0ec19b3
user: Guido van Rossum <guido at python.org>
date: Tue Apr 05 16:35:54 2016 -0700
summary:
 Add Text alias.
files:
 pep-0484.txt | 2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/pep-0484.txt b/pep-0484.txt
--- a/pep-0484.txt
+++ b/pep-0484.txt
@@ -1428,6 +1428,8 @@
 
 * AnyStr, defined as ``TypeVar('AnyStr', str, bytes)``
 
+* Text, a simple alias for ``str`` in Python 3, for ``unicode`` in Python 2
+
 * NamedTuple, used as
 ``NamedTuple(type_name, [(field_name, field_type), ...])``
 and equivalent to
-- 
Repository URL: https://hg.python.org/peps


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /