Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
bpo-26175: Implementio.IOBase interface forSpooledTemporaryFile#29560
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
bpo-26175: Implementio.IOBase interface forSpooledTemporaryFile#29560
Uh oh!
There was an error while loading.Please reload this page.
Conversation
the-knights-who-say-ni commentedNov 15, 2021
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept this contribution by verifying everyone involved has signed thePSF contributor agreement (CLA). CLA MissingOur records indicate the following people have not signed the CLA: For legal reasons we need all the people listed to sign the CLA before we can look at your contribution. Please followthe steps outlined in the CPython devguide to rectify this issue. If you have recently signed the CLA, please wait at least one business day You cancheck yourself to see if the CLA has been received. Thanks again for the contribution, we look forward to reviewing it! |
ztane commentedNov 15, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@pR0Ps I guess you ignored the change requests from the other PR, shouldn't call Also IMO you'd want to give the warningregardless of the file having been rolled over to disk or not. |
a39b1e8 to54b6c7bComparepR0Ps commentedNov 16, 2021
@ztane Made the requested change to the |
54b6c7b tofba27e4ComparepR0Ps commentedDec 6, 2021
Rebased on latest main. |
fba27e4 toc6546f7Comparec6546f7 toebb1d76Compareebb1d76 todbc85fdCompareUh oh!
There was an error while loading.Please reload this page.
Since the underlying file-like objects (either `io.BytesIO`,`io.StringIO`, or a true file object) all implement the `io.IOBase`interface, the `SpooledTemporaryFile` should as well.Additionally, since the underlying file object will either be aninstance of an `io.BufferedIOBase` (for binary mode) or an`io.TextIOBase` (for text mode), methods for these classes were alsoimplemented.In every case, the required methods and properties are simply delegatedto the underlying file object.Co-authored-by: Gary Fernie <Gary.Fernie@skyscanner.net>
dbc85fd toe66d4a3Comparemerwok commentedJan 3, 2022
In the future, please avoid force pushes on Python repositories, they make reviewing less pleasant:https://devguide.python.org/pullrequest/ |
e66d4a3 to753aeb0ComparepR0Ps commentedJan 3, 2022
Sorry, I've re-pushed the change as a separate commit and will do the same in the future. |
arhadthedev commentedJan 3, 2022
@pR0Ps Thanks! When PR is updated with a usual push, everybody subscribed can open the PR from "Unread notifications" and see only these updates of a diff. For example, a full With a force-push, however, GitHub gives up and forces a reviewer to open a list of commits and manually scan for all changes: When there are a few commits per day, it's ok. However, in this repo with a dosen of changes per hour, such manual works would become a second job. |
Uh oh!
There was an error while loading.Please reload this page.
Misc/NEWS.d/next/Library/2021-11-14-01-35-04.bpo-26175.LNlOfI.rst OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Misc/NEWS.d/next/Library/2021-11-14-01-35-04.bpo-26175.LNlOfI.rst OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
pR0Ps commentedMay 2, 2022
@erlend-aasland Can you take a look please? |
python/cpython#29560Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>


Uh oh!
There was an error while loading.Please reload this page.
Since the underlying file-like objects (either
io.BytesIO,io.StringIO, or a true file object) all implement theio.IOBaseinterface, theSpooledTemporaryFileshould as well.Additionally, since the underlying file object will either be an instance of an
io.BufferedIOBase(for binary mode) or anio.TextIOBase(for text mode), methods for these classes were also implemented.In every case, the required methods and properties are simply delegated to the underlying file object.
Co-authored-by: Gary Fernie <Gary.Fernie@skyscanner.net>
This is a rebased and reworked followup of the seemingly-abandoned#3249
https://bugs.python.org/issue26175