Changes between Version 35 and Version 36 of DeveloperGuidelines/Py_2_3
- Timestamp:
- 07/02/19 12:24:49 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/Py_2_3
v35 v36 110 110 ||long||type||{{{from s3compat import long}}}||same as {{{int}}} in Py3, so can occasionally lead to redundancy|| 111 111 ||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}}}|| 112 || ClassType||type||{{{from s3compat import ClassType}}}||replaces types.ClassType(old-style classes) in Py2, maps to {{{type}}} in Py3 (old-style classes do no longer exist)||112 ||!ClassType||type||{{{from s3compat import ClassType}}}||replaces {{{types.ClassType}}} (old-style classes) in Py2, maps to {{{type}}} in Py3 (old-style classes do no longer exist)|| 113 113 ||CLASS_TYPES||tuple||{{{from s3compat import CLASS_TYPES}}}||maps to tuple of all known class types: (type,types.ClassType) in Py2, (types,) in Py3, for use with {{{isinstance}}}|| 114 114 ||urlparse||module||{{{from s3compat import urlparse}}}||maps to urllib.parse in Py3||