Claudiu.Popa added the comment:

There are other modules with support for bytes filenames in their API:

bz2                          
codecs                       
gzip                         
lzma                         
pipes.Template               
tarfile
tokenize
fileinput
filecmp
sndhdr
configparser

Also, given the fact that sndhdr supports them and its purpose is similar with 
imghdr, it would be a surprise
for a beginner to find out that imghdr.what(b"img") is not working, while 
sndhdr.what(b"snd") works.

----------

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

Reply via email to