|
18 | 18 | * types:
|
19 | 19 |
|
20 | 20 | * text_type: unicode in Python 2, str in Python 3
|
21 |
| - * binary_type: str in Python 2, bytes in Python 3 |
22 | 21 | * string_types: basestring in Python 2, str in Python 3
|
| 22 | + * binary_type: str in Python 2, bytes in Python 3 |
| 23 | + * integer_types: (int, long) in Python 2, int in Python 3 |
| 24 | + * class_types: (type, types.ClassType) in Python 2, type in Python 3 |
23 | 25 |
|
24 | 26 | * bchr(c):
|
25 | 27 | Take an integer and make a 1-character byte string
|
@@ -750,16 +752,16 @@ def ensure_new_type(obj):
|
750 | 752 |
|
751 | 753 |
|
752 | 754 | __all__ = ['PY2', 'PY26', 'PY3', 'PYPY',
|
753 |
| - 'as_native_str', 'bind_method', 'bord', 'bstr', |
754 |
| - 'bytes_to_native_str', 'encode_filename', 'ensure_new_type', |
755 |
| - 'exec_', 'get_next', 'getexception', 'implements_iterator', |
756 |
| - 'is_new_style', 'isbytes', 'isidentifier', 'isint', |
757 |
| - 'isnewbytes', 'istext', 'iteritems', 'iterkeys', 'itervalues', |
758 |
| - 'lfilter', 'listitems', 'listvalues', 'lmap', 'lrange', |
759 |
| - 'lzip', 'native', 'native_bytes', 'native_str', |
| 755 | + 'as_native_str', 'binary_type', 'bind_method', 'bord', 'bstr', |
| 756 | + 'bytes_to_native_str', 'class_types', 'encode_filename', |
| 757 | + 'ensure_new_type', 'exec_', 'get_next', 'getexception', |
| 758 | + 'implements_iterator', 'integer_types', 'is_new_style', 'isbytes', |
| 759 | + 'isidentifier', 'isint', 'isnewbytes', 'istext', 'iteritems', |
| 760 | + 'iterkeys', 'itervalues', 'lfilter', 'listitems', 'listvalues', |
| 761 | + 'lmap', 'lrange', 'lzip', 'native', 'native_bytes', 'native_str', |
760 | 762 | 'native_str_to_bytes', 'old_div',
|
761 | 763 | 'python_2_unicode_compatible', 'raise_',
|
762 |
| - 'raise_with_traceback', 'reraise', 'text_to_native_str', |
763 |
| - 'tobytes', 'viewitems', 'viewkeys', 'viewvalues', |
764 |
| - 'with_metaclass' |
765 |
| - ] |
| 764 | + 'raise_with_traceback', 'reraise', 'string_types', |
| 765 | + 'text_to_native_str', 'text_type', 'tobytes', 'viewitems', |
| 766 | + 'viewkeys', 'viewvalues', 'with_metaclass' |
| 767 | + ] |
0 commit comments