Closed cclauss closed 3 years ago
Python porting best practice use feature detection instead of version detection.
Bare exceptions: https://realpython.com/the-most-diabolical-python-antipattern
PEP8: Object type comparisons should always use isinstance() instead of comparing types directly.
unicode was removed in Python 3 because all str are Unicode utf-8.
Python porting best practice use feature detection instead of version detection.
Bare exceptions: https://realpython.com/the-most-diabolical-python-antipattern
PEP8: Object type comparisons should always use isinstance() instead of comparing types directly.
unicode was removed in Python 3 because all str are Unicode utf-8.