Changes between Version 51 and Version 52 of DeveloperGuidelines/Py_2_3
- Timestamp:
- 07/05/19 22:48:01 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/Py_2_3
v51 v52 136 136 ||StringIO||class|| || 137 137 ||pickle||module||replaces cPickle in Py2|| 138 ||Cookie||module||maps to http.cookies in Py3|| 138 139 ||reduce||function|| || 139 140 ||basestring||type|| || … … 149 150 ||urlparse||module||maps to urllib.parse in Py3|| 150 151 ||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|| 152 154 ||urlopen||function||replaces urllib.urlopen and urllib2.urlopen in Py2|| 153 155 ||urlencode||function||replaces urllib.urlencode in Py2|| 156 ||urllib_quote||function||replaces urllib.quote in Py2|| 154 157 ||HTMLParser||class||replaces HTMLParser.HTMLParser in Py2|| 155 158 === No dict.iteritems, iterkeys or itervalues ===