GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||
GeezerVison is showing github.com — gh-89756: make SpooledTemporaryFile.truncate return new file size and improve documentation by rooterkyberian · Pull Request #29197 · python/cpython Conversation
|
|
This PR is stale because it has been open for 30 days with no activity. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Ran 99 tests in 1.041s
OK (skipped=2)
== Tests result: SUCCESS ==
Looks ok to me.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
LGTM. @rooterkyberian Can you resolve the conflict? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@furkanonder done - rebased to current main and resolved conflicts |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-authored-by: Inada Naoki <[email protected]>
| >>> fp.write(b'Hello world!') | ||
| # read data from file | ||
| >>> fp.seek(0) | ||
| 0 |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
If we add 0 here, we should add 12 after fp.write(b'Hello world!') too.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
And later,
>>> with tempfile.TemporaryFile() as fp:
... fp.write(b'Hello world!')
... fp.seek(0)
... fp.read()
b'Hello world!'
This output should be:
12
0
b'Hello world!'
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
It seems this file is not tested by doctest.
Please leave it. Otherwise, we need to fix all output and remove all comments in sample code.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This PR is stale because it has been open for 30 days with no activity. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Documentation build overview
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
fixed in #29560 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.