Changes between Version 30 and Version 31 of DeveloperGuidelines/Py_2_3
- Timestamp:
- 06/28/19 08:45:30 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/Py_2_3
v30 v31 105 105 ||basestring||type||{{{from s3compat import basestring}}}|| || 106 106 ||unichr||function||{{{from s3compat import unichr}}}|| || 107 ||STRING_TYPES||t ype tuple||{{{from s3compat import STRING_TYPES}}}||maps to tuple of all known string types: (str,unicode) in Py2, (str,) in Py3, for type checking||107 ||STRING_TYPES||tuple||{{{from s3compat import STRING_TYPES}}}||maps to tuple of all known string types: (str,unicode) in Py2, (str,) in Py3, for type checking|| 108 108 ||long||type||{{{from s3compat import long}}}||same as {{{int}}} in Py3, so can occasionally lead to redundancy|| 109 ||INTEGER_TYPES||t ype tuple||{{{from s3compat import INTEGER_TYPES}}}||maps to tuple of all known integer types: (int,long) in Py2, (int,) in Py3, for use with {{{isinstance}}}||109 ||INTEGER_TYPES||tuple||{{{from s3compat import INTEGER_TYPES}}}||maps to tuple of all known integer types: (int,long) in Py2, (int,) in Py3, for use with {{{isinstance}}}|| 110 110 ||urlparse||module||{{{from s3compat import urlparse}}}||maps to urllib.parse in Py3|| 111 111 ||urllib2||module||{{{from s3compat import urllib2}}}||maps to urllib.requests in Py3, which contains only part of Py2's urllib2 - some urllib2 objects therefore need to be imported separately (see below)||