-
Notifications
You must be signed in to change notification settings - Fork 11
tempfile.SpooledTemporaryFile.encoding
is None
when the encoding
parameter is utf-8
#120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
SpooledTemporaryFile
is None
when encoding is UTF-8SpooledTemporaryFile
is None
when encoding parameter is UTF-8
SpooledTemporaryFile
is None
when encoding parameter is UTF-8SpooledTemporaryFile
is None
when encoding parameter is UTF-8
SpooledTemporaryFile
is None
when encoding parameter is UTF-8tempfile.SpooledTemporaryFile.encoding
is None
when the encoding
parameter is utf-8
The issue of `tempfile.SpooledTemporaryFile.encoding` being `None` when the `encoding` parameter is `utf-8` affects only some Python versions. Ref.: #120
Fixed in python/cpython#17400. |
Wow! How did you figure this one out? In which CPython versions (full) was it fixed? |
When testing support for Python 3.8 I noticed that the bug wasn't there, and I knew that the bug was present in 3.7.2, so I concluded that the bug was fixed somewhere between those versions. A review of the VCS history of file
The bug was fixed in Python 3.7.6, and is still fixed in 3.8.2. |
Excellent! Expected no less of you ;) |
Uh oh!
There was an error while loading. Please reload this page.
Code: https://github.com/fyntex/lib-cl-sii-python/blob/267c1a55423c7ed6ced718810bb4bd8164b65014/cl_sii/libs/io_utils.py#L61-L63
Test: https://github.com/fyntex/lib-cl-sii-python/blob/267c1a55423c7ed6ced718810bb4bd8164b65014/tests/test_libs_io_utils.py#L70-L73
This issue affects Python 3.7.2, but versions starting from 3.7.6 are not affected.
The text was updated successfully, but these errors were encountered: