Message341162
| Author | berker.peksag |
|---|---|
| Recipients | berker.peksag, brett.cannon, docs@python, matrixise, mdk, ned.deily, serhiy.storchaka, vstinner |
| Date | 2019-04-30.20:41:36 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1556656896.61.0.989163513034.issue36345@roundup.psfhosted.org> |
| In-reply-to |
| Content | |
|---|---|
Please revert 360e1e4c519cfc139de707bcdd1e6c871eec79ee. It's not a good example to put into the documentation. It uses different naming convention. It would only confuse users relatively new to the wsgiref module and WSGI protocol. FileWrapper was supposed to support __getitem__ and __iter__ protocols for compatibility with older Python versions, but its __getiem__ implementation is buggy and is already deprecated. It has no use case in modern Python code. It has zero exception handling and will return a cryptic traceback if mimetype cannot detect type of the file. The examples in the wsgiref documentation already cover most of the cases. There is no need to add more similar ones. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2019-04-30 20:41:36 | berker.peksag | set | recipients: + berker.peksag, brett.cannon, vstinner, ned.deily, docs@python, serhiy.storchaka, matrixise, mdk |
| 2019-04-30 20:41:36 | berker.peksag | set | messageid: <1556656896.61.0.989163513034.issue36345@roundup.psfhosted.org> |
| 2019-04-30 20:41:36 | berker.peksag | link | issue36345 messages |
| 2019-04-30 20:41:36 | berker.peksag | create | |