Skip to content

Prefer using py3 compatible syntax over 2.x-only syntax #17

@ermo

Description

@ermo

If one day we decide to port flimage to python3, it will probably make the porting process less painful if we have the foresight to begin adopting forward compatible py2.x syntax and idioms.

A simple example would be print() and string substitution:

# forward compatible from 2.6 -> 3.x (note the extra parentheses)
print("There are %s types of people in the world; those who understand binary and those who don't." %
      (bin(2)[2:]))

Additional resources:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions