Erik Aronesty <e...@q32.com> added the comment:

i would like to point out that the primary reason any of this nonsense exists 
is because of short filename restrictions.   

i've replaces nearly all of my temp file creation code in all of my project to 
`return os.urandom(32).hex()` ... which is reliable secure, fast, and doesn't 
require any fileops

sure, it doesn't work on 8.3 limited systems, but maybe the NamedTemp code 
should check that *first*.... and *if* it's OK to use long  names... just use 
them, otherwise revert to existing behavior

----------

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

Reply via email to