[New-bugs-announce] [issue41749] Little improve on imghdr library

Emmanuel Arias report at bugs.python.org
Tue Sep 8 23:56:25 EDT 2020


New submission from Emmanuel Arias <eamanu at yaerobi.com>:

For the `what()` function, the `file` parameter is always needed.
In despite of that users can use `h` for send a bytes stream to 
detect the kind of the image, the `file` parameter is need.

Don't have sense ask for `file` parameter when this parameter will
not any effect on the result of the `what` function.

----------
components: Library (Lib)
messages: 376618
nosy: eamanu
priority: normal
severity: normal
status: open
title: Little improve on imghdr library
type: behavior
versions: Python 3.10

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


More information about the New-bugs-announce mailing list