Changes between Version 64 and Version 65 of DeveloperGuidelines/Py_2_3
- Timestamp:
- 07/07/19 11:50:27 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/Py_2_3
v64 v65 263 263 item = next(i) 264 264 }}} 265 266 === Cannot use LazyT as sorting key === 267 268 This 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 270 As a workaround, wrap the {{{lazyT}}} in {{{s3_str}}} when using it as sorting key.