Changes between Version 20 and Version 21 of DeveloperGuidelines/Py_2_3


Ignore:
Timestamp:
06/27/19 14:58:33 (5 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/Py_2_3

    v20 v21  
    104104||basestring||{{{from s3compat import basestring}}}|| ||
    105105||INTEGER_TYPES||{{{from s3compat import INTEGER_TYPES}}}||maps to tuple of all known integer types: (int,long) in Py2, (int,) in Py3), for use with {{{isinstance}}}||
    106 ||urllib2||{{{from s3compat import urllib2||maps to urllib.requests in Py3, which is though only part of urllib2 - some urllib2 objects may need to be imported separately (see below)||
    107 ||HTTPError||{{{from s3compat import HTTPError||replaces urllib2.HTTPError in Py2||
    108 ||urlopen||{{{from s3compat import urlopen||replaces urllib.urlopen and urllib2.urlopen in Py2||
    109 ||urlencode||{{{from s3compat import urlencode||replaces urllib.urlencode in Py2||
     106||urllib2||{{{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)||
     107||HTTPError||{{{from s3compat import HTTPError}}}||replaces urllib2.HTTPError in Py2||
     108||urlopen||{{{from s3compat import urlopen}}}||replaces urllib.urlopen and urllib2.urlopen in Py2||
     109||urlencode||{{{from s3compat import urlencode}}}||replaces urllib.urlencode in Py2||
    110110
    111111=== No dict.iteritems, iterkeys or itervalues ===