Josh Rosenberg <shadowranger+pyt...@gmail.com> added the comment:

Any reason not to just defer opening the file until after the codec has been 
validated, so the resource acquisition comes last?

----------
nosy: +josh.r

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue38971>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to