Changes between Version 56 and Version 57 of DeveloperGuidelines/CodeConventions


Ignore:
Timestamp:
01/26/16 11:57:20 (6 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/CodeConventions

    v56 v57  
    115115
    116116{{{
    117    s= s3_unicode(s).encode("utf-8")
     117   s = s3_unicode(s).encode("utf-8")
    118118}}}
    119119
     
    1251257) All code is utf-8 encoded, so that all string constants are automatically utf-8 encoded str. We do not use u"..." for string constants.
    126126
    127 8) Note that str.lower() and str.upper() do not work correctly for some unicode characters (e.g. "Ẽ".lower() gives "Ẽ" again - instead of "ẽ"). For correct behavior, we must convert into unicode first, using s3_unicode.
     1278) Note that str.lower() and str.upper() do not work correctly for some unicode characters (e.g. "Ẽ".lower() gives "Ẽ" again - instead of "ẽ"). For correct behavior, we must convert into unicode first, using s3_unicode:
     128
     129{{{
     130   s_lowercase = s3_unicode(s).lower().encode("utf-8")
     131}}}
    128132=== Tools ===
    129133