Changes between Version 64 and Version 65 of DeveloperGuidelines/Py_2_3


Ignore:
Timestamp:
07/07/19 11:50:27 (5 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/Py_2_3

    v64 v65  
    263263item = next(i)
    264264}}}
     265
     266=== Cannot use LazyT as sorting key ===
     267
     268This may be a temporary issue - web2py's {{{LazyT}}} does not define a {{{__lt__}}} method which is used for sorting in Python-3, but it does define a {{{__cmp__}}} which is used by Python-2.7 and therefore works.
     269
     270As a workaround, wrap the {{{lazyT}}} in {{{s3_str}}} when using it as sorting key.