bpo-41546: make pprint (like print) not write to stdout when it is None#26810
bpo-41546: make pprint (like print) not write to stdout when it is None#26810iritkatriel merged 7 commits into
Conversation
|
Any more comments before I merge? |
Sorry, something went wrong.
serhiy-storchaka
left a comment
There was a problem hiding this comment.
Please document the change.
Sorry, something went wrong.
|
Please document this behavior in the module documentation and add the versionchanged directive. |
Sorry, something went wrong.
Done. Probably not part of this PR, but I don't think the doc needs to repeat this twice. Could we not refer from pprint()'s doc to PrettyPrinter.pprint()'s doc? |
Sorry, something went wrong.
|
Why not in this PR? |
Sorry, something went wrong.
Sure, if you don't mind mixing two celebrations. |
Sorry, something went wrong.
…es for shared parameters.
@serhiy-storchaka I've made the doc change, let me know if it looks ok. |
Sorry, something went wrong.
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️Hi! The buildbot PPC64 Fedora 3.x has failed when building commit aab1899. What do you need to do:
You can take a look at the buildbot page here: https://buildbot.python.org/all/#builders/237/builds/560 Summary of the results of the build (if available): Click to see traceback logsremote: Enumerating objects: 26, done.�[K
remote: Counting objects: 3% (1/26)�[K
remote: Counting objects: 7% (2/26)�[K
remote: Counting objects: 11% (3/26)�[K
remote: Counting objects: 15% (4/26)�[K
remote: Counting objects: 19% (5/26)�[K
remote: Counting objects: 23% (6/26)�[K
remote: Counting objects: 26% (7/26)�[K
remote: Counting objects: 30% (8/26)�[K
remote: Counting objects: 34% (9/26)�[K
remote: Counting objects: 38% (10/26)�[K
remote: Counting objects: 42% (11/26)�[K
remote: Counting objects: 46% (12/26)�[K
remote: Counting objects: 50% (13/26)�[K
remote: Counting objects: 53% (14/26)�[K
remote: Counting objects: 57% (15/26)�[K
remote: Counting objects: 61% (16/26)�[K
remote: Counting objects: 65% (17/26)�[K
remote: Counting objects: 69% (18/26)�[K
remote: Counting objects: 73% (19/26)�[K
remote: Counting objects: 76% (20/26)�[K
remote: Counting objects: 80% (21/26)�[K
remote: Counting objects: 84% (22/26)�[K
remote: Counting objects: 88% (23/26)�[K
remote: Counting objects: 92% (24/26)�[K
remote: Counting objects: 96% (25/26)�[K
remote: Counting objects: 100% (26/26)�[K
remote: Counting objects: 100% (26/26), done.�[K
remote: Compressing objects: 7% (1/14)�[K
remote: Compressing objects: 14% (2/14)�[K
remote: Compressing objects: 21% (3/14)�[K
remote: Compressing objects: 28% (4/14)�[K
remote: Compressing objects: 35% (5/14)�[K
remote: Compressing objects: 42% (6/14)�[K
remote: Compressing objects: 50% (7/14)�[K
remote: Compressing objects: 57% (8/14)�[K
remote: Compressing objects: 64% (9/14)�[K
remote: Compressing objects: 71% (10/14)�[K
remote: Compressing objects: 78% (11/14)�[K
remote: Compressing objects: 85% (12/14)�[K
remote: Compressing objects: 92% (13/14)�[K
remote: Compressing objects: 100% (14/14)�[K
remote: Compressing objects: 100% (14/14), done.�[K
remote: Total 14 (delta 12), reused 1 (delta 0), pack-reused 0�[K
From https://github.com/python/cpython
* branch main -> FETCH_HEAD
Note: checking out 'aab1899c9d79083c1ff31d974ed8b562d3ca3b5d'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
HEAD is now at aab1899... [bpo-41546](https://bugs.python.org/issue41546): make pprint (like print) not write to stdout when it is None (GH-26810)
Switched to and reset branch 'main'
./configure: line 10530: PKG_PROG_PKG_CONFIG: command not found
/tmp/ccKQYNxd.s: Assembler messages:
/tmp/ccKQYNxd.s: Fatal error: can't close Parser/parser.o: No space left on device
make: *** [Parser/parser.o] Error 1
find: ‘build’: No such file or directory
find: ‘build’: No such file or directory
find: ‘build’: No such file or directory
find: ‘build’: No such file or directory
make: [clean-retain-profile] Error 1 (ignored) |
Sorry, something went wrong.
|
The build failure seems unrelated to this change: |
Sorry, something went wrong.
* origin/main: (1146 commits) bpo-42064: Finalise establishing sqlite3 global state (pythonGH-27155) bpo-44678: Separate error message for discontinuous padding in binascii.a2b_base64 strict mode (pythonGH-27249) correct spelling (pythonGH-27076) bpo-44524: Add missed __name__ and __qualname__ to typing module objects (python#27237) bpo-27513: email.utils.getaddresses() now handles Header objects (python#13797) Clean up comma usage in Doc/library/functions.rst (python#27083) bpo-42238: Fix small rst issue in NEWS.d/. (python#27238) bpo-41972: Tweak fastsearch.h string search algorithms (pythonGH-27091) bpo-44340: Add support for building with clang full/thin lto (pythonGH-27231) bpo-44661: Update property_descr_set to use vectorcall if possible. (pythonGH-27206) bpo-44645: Check for interrupts on any potentially backwards edge (pythonGH-27216) bpo-41546: make pprint (like print) not write to stdout when it is None (pythonGH-26810) bpo-44554: refactor pdb targets (and internal tweaks) (pythonGH-26992) bpo-43086: Add handling for out-of-spec data in a2b_base64 (pythonGH-24402) bpo-44561: Update hyperlinks in Doc/distributing/index.rst (python#27032) bpo-42355: symtable.get_namespace() now checks whether there are multiple or any namespaces found (pythonGH-23278) bpo-44654: Do not export the union type related symbols (pythonGH-27223) bpo-44633: Fix parameter substitution of the union type with wrong types. (pythonGH-27218) bpo-44654: Refactor and clean up the union type implementation (pythonGH-27196) bpo-20291: Fix MSVC warnings in getargs.c (pythonGH-27211) ...
https://bugs.python.org/issue41546