bpo-43510: Remove _pyio.OpenWrapper class#25107
Conversation
|
OpenWrapper is really a weird beast. I don't know other functions which are defined this way. Can't we decorate The io module doesn't use this hack: OpenWrapper is just an alias to open. |
Sorry, something went wrong.
Nice idea. |
Sorry, something went wrong.
|
Oh, test is failing... |
Sorry, something went wrong.
|
I opened a discussion on python-dev about OpenWrapper and staticmethod: https://mail.python.org/archives/list/python-dev@python.org/thread/QZ7SFW3IW3S2C5RMRJZOOUFSHHUINNME/ |
Sorry, something went wrong.
And I created https://bugs.python.org/issue43680 to remove undocumented io.OpenWrapper and _pyio.OpenWrapper. |
Sorry, something went wrong.
|
Maybe define |
Sorry, something went wrong.
https://bugs.python.org/issue43510