Barney Gale <barney.g...@gmail.com> added the comment:

I see no reason for the duplication, and I can point to one concrete bug 
affecting your re-implementation of `expanduser` that doesn't affect the 
original, i.e. that a `KeyError` is raised on Windows when `"USERNAME"` is not 
present in `os.environ`, whereas all similar cases raise `RuntimeError`. These 
sorts of issues sneak in when you duplicate code - better to stick with the 
battle-hardened version rather than an inherently risky rewrite.

----------

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

Reply via email to