[issue41749] Little improve on imghdr library

2020-09-09 Thread Dong-hee Na
Dong-hee Na added the comment: IMHO, those use cases are already intended. We can read such use case on test code but also documentation. It will break legacy usage. I am -1 on change the API signature. We should think deeply before changing this. -- nosy: +corona10

[issue41749] Little improve on imghdr library

2020-09-08 Thread Emmanuel Arias
Change by Emmanuel Arias : -- keywords: +patch pull_requests: +21240 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22166 ___ Python tracker ___

[issue41749] Little improve on imghdr library

2020-09-08 Thread Emmanuel Arias
New submission from Emmanuel Arias : 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