Changes between Version 34 and Version 35 of DeveloperGuidelines/Py_2_3


Ignore:
Timestamp:
07/02/19 12:24:17 (5 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/Py_2_3

    v34 v35  
    110110||long||type||{{{from s3compat import long}}}||same as {{{int}}} in Py3, so can occasionally lead to redundancy||
    111111||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)||
     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}}}||
    112114||urlparse||module||{{{from s3compat import urlparse}}}||maps to urllib.parse in Py3||
    113115||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)||