Changes between Version 24 and Version 25 of Contributing/CodingStyle


Ignore:
Timestamp:
11/13/2016 11:56:03 AM (7 years ago)
Author:
Cas
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Contributing/CodingStyle

    v24 v25  
    2828'abcde' 
    2929}}} 
    30  
    31  **Note1:** PyGTK/GTK+ will accept `str` (utf8 encoded) or `unicode` but will only return `str`. See [http://python-gtk-3-tutorial.readthedocs.org/en/latest/unicode.html GTK+ Unicode] docs.  
    32  **Note2:** There is also a `bytearray` type which enables in-place modification of a string. See [http://stackoverflow.com/a/9099337/175584 Python Bytearrays] 
    33  **Note2:** For reference Python 3 renames `unicode` to `str` type and byte arrays becomes `bytes` type. 
     30  ''Notes:'' 
     31   * ''PyGTK/GTK+ will accept `str` (utf8 encoded) or `unicode` but will only return `str`. See [http://python-gtk-3-tutorial.readthedocs.org/en/latest/unicode.html GTK+ Unicode] docs. ''[[br]] 
     32   * ''There is also a `bytearray` type which enables in-place modification of a string. See [http://stackoverflow.com/a/9099337/175584 Python Bytearrays] ''[[br]] 
     33   * ''For reference Python 3 renames `unicode` to `str` type and byte strings become `bytes` type. ''[[br]] 
    3434 
    3535 * All relative path separators used within code should be converted to posix format `/`, so should not contain `\` or `\\`. This is to prevent confusion when dealing with cross-platform clients and servers.