Add Text alias.

This commit is contained in:
Guido van Rossum 2016-04-05 16:35:54 -07:00
parent 3f5669021e
commit 348da7712a
1 changed files with 2 additions and 0 deletions

View File

@ -1428,6 +1428,8 @@ Convenience definitions:
* 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