Changes between Version 39 and Version 40 of DeveloperGuidelines/Py_2_3


Ignore:
Timestamp:
07/04/19 19:04:28 (5 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/Py_2_3

    v39 v40  
    108108||unicodeT||type||{{{from s3compat import unicodeT}}}||for type checking, instead of {{{unicode}}} in Py2, maps to {{{str}}} in Py3||
    109109||STRING_TYPES||tuple||{{{from s3compat import STRING_TYPES}}}||maps to tuple of all known string types: (str,unicode) in Py2, (str,) in Py3, for type checking||
     110||sorted_locale||lambda||{{{from s3compat import sorted_locale}}}||locale-sensitive sorting, sorted(x, cmp=locale.strcoll) in Py2, sorted(x, key=locale.strxfrm) in Py3||
    110111||long||type||{{{from s3compat import long}}}||same as {{{int}}} in Py3, so can occasionally lead to redundancy||
    111112||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}}}||
     
    119120||urlencode||function||{{{from s3compat import urlencode}}}||replaces urllib.urlencode in Py2||
    120121||HTMLParser||class||{{{from s3compat import HTMLParser}}}||replaces HTMLParser.HTMLParser in Py2||
    121 
    122 
    123122=== No dict.iteritems, iterkeys or itervalues ===
    124123