[issue44711] Optimize type check in pipes.py

Anton Grübel report at bugs.python.org
Thu Jul 22 16:06:13 EDT 2021


Anton Grübel <anton.gruebel at googlemail.com> added the comment:

I know that :) , it is just weird to do also do the type check on an empty string, which can be replaced with str directly, but as far as I know it is usually better to use isinstance instead of type.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44711>
_______________________________________


More information about the Python-bugs-list mailing list