Changes between Version 49 and Version 50 of DeveloperGuidelines/Py_2_3


Ignore:
Timestamp:
07/04/19 20:08:24 (6 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/Py_2_3

    v49 v50  
    141141||unicodeT||type||for type checking, instead of {{{unicode}}} in Py2, maps to {{{str}}} in Py3||
    142142||STRING_TYPES||tuple||maps to tuple of all known string types: (str,unicode) in Py2, (str,) in Py3, for type checking||
    143 ||sorted_locale||lambda (''iterable'')||locale-sensitive sorting, {{{sorted(x, cmp=locale.strcoll)}}} in Py2, {{{sorted(x, key=locale.strxfrm)}}} in Py3||
     143||sorted_locale||lambda i||locale-sensitive sorting, {{{sorted(i, cmp=locale.strcoll)}}} in Py2, {{{sorted(i, key=locale.strxfrm)}}} in Py3||
    144144||long||type||same as {{{int}}} in Py3, so can occasionally lead to redundancy||
    145145||INTEGER_TYPES||tuple||maps to tuple of all known integer types: (int,long) in Py2, (int,) in Py3, for use with {{{isinstance}}}||