Changes between Version 51 and Version 52 of DeveloperGuidelines/Py_2_3


Ignore:
Timestamp:
07/05/19 22:48:01 (5 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/Py_2_3

    v51 v52  
    136136||StringIO||class|| ||
    137137||pickle||module||replaces cPickle in Py2||
     138||Cookie||module||maps to http.cookies in Py3||
    138139||reduce||function|| ||
    139140||basestring||type|| ||
     
    149150||urlparse||module||maps to urllib.parse in Py3||
    150151||urllib2||module||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)||
    151 ||HTTPError||class||replaces urllib2.HTTPError in Py2||
     152||HTTPError||Exception||replaces urllib2.HTTPError in Py2, '''NB''' HTTPError is a subclass of URLError, so must be caught first in order to differentiate||
     153||URLError||Exception||replaces urllib2.URLError in Py2||
    152154||urlopen||function||replaces urllib.urlopen and urllib2.urlopen in Py2||
    153155||urlencode||function||replaces urllib.urlencode in Py2||
     156||urllib_quote||function||replaces urllib.quote in Py2||
    154157||HTMLParser||class||replaces HTMLParser.HTMLParser in Py2||
    155158=== No dict.iteritems, iterkeys or itervalues ===