Skip to content

Conversation

@cclauss
Copy link

@cclauss cclauss commented Aug 16, 2019

  • Old style exceptions --> new style for Python 3
    • Old style exceptions are syntax errors in Python 3 but new style exceptions work as expected in both Python 2 and Python 3.
  • Use print() function in both Python 2 and Python 3
    • Legacy print statements are syntax errors in Python 3 but print() function works as expected in both Python 2 and Python 3.

* Old style exceptions --> new style for Python 3
    * Old style exceptions are syntax errors in Python 3 but new style exceptions work as expected in both Python 2 and Python 3.
* Use __print()__ function in both Python 2 and Python 3
    * Legacy __print__ statements are syntax errors in Python 3 but __print()__ function works as expected in both Python 2 and Python 3.
@cclauss cclauss closed this Jun 19, 2021
@cclauss cclauss deleted the modernize-Python-2-codes branch June 19, 2021 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant