Comment on Ask YC: Best practice for Python module imports?parentComments−intranation17yAh ok, I wasnt aware that Python had an opinionSee: http://www.python.org/dev/peps/pep-0008/−tomatohater17yAgreed. Unless there's a compelling reason not to (conditional imports), it's definitely best to stick with Python conventions (a la PEP8). These conventions are what keep Python one of the cleanest and most readable languages out there.
Comments
Ah ok, I wasnt aware that Python had an opinion
See: http://www.python.org/dev/peps/pep-0008/
Agreed. Unless there's a compelling reason not to (conditional imports), it's definitely best to stick with Python conventions (a la PEP8). These conventions are what keep Python one of the cleanest and most readable languages out there.