This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: tempfile.SpooledTemporaryFile still has softspace property
Type: Stage: resolved
Components: Versions: Python 3.9
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: hauntsaninja, serhiy.storchaka
Priority: normal Keywords: patch

Created on 2020-02-21 22:32 by hauntsaninja, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 18599 merged hauntsaninja, 2020-02-21 22:33
Messages (2)
msg362437 - (view) Author: Shantanu (hauntsaninja) * Date: 2020-02-21 22:32
The softspace attribute of files was removed in Python 3 (mentioned in

However, tempfile.SpooledTemporaryFile still has a softspace property that attempts to return read the softspace attribute.

In [23]: t = tempfile.SpooledTemporaryFile()                                    

In [24]: t.softspace                                                            
AttributeError                            Traceback (most recent call last)
<ipython-input-24-72e5af9f6ded> in <module>
----> 1 t.softspace

/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ in softspace(self)
    749     @property
    750     def softspace(self):
--> 751         return self._file.softspace
    753     def tell(self):

AttributeError: '_io.BytesIO' object has no attribute 'softspace'
msg364482 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2020-03-17 21:43
New changeset d469d666b874ae746ca9a17bbfc9dbbf6fb2d6bc by Shantanu in branch 'master':
bpo-39719: Remove softspace from tempfile.SpooledTemporaryFile (GH-18599)
Date User Action Args
2022-04-11 14:59:27adminsetgithub: 83900
2020-03-17 21:51:02serhiy.storchakasetstatus: open -> closed
stage: patch review -> resolved
resolution: fixed
versions: + Python 3.9
2020-03-17 21:43:24serhiy.storchakasetnosy: + serhiy.storchaka
messages: + msg364482
2020-02-21 22:33:28hauntsaninjasetkeywords: + patch
stage: patch review
pull_requests: + pull_request17966
2020-02-21 22:32:08hauntsaninjacreate