8000 gh-135041: Expand and update ``pickletools`` module docstrings by Legoclones · Pull Request #135042 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content
8000

gh-135041: Expand and update pickletools module docstrings #135042

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

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Update Lib/pickletools.py
Clarify the `APPENDS` docstring

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
  • Loading branch information
Legoclones and serhiy-storchaka authored Jun 17, 2025
commit 05f1c48a72d651713221c234a182f7c51f8b7a43
5 changes: 2 additions & 3 deletions Lib/pickletools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1549,9 +1549,8 @@ def __init__(self, name, code, arg,
Stack before: ... pylist markobject stackslice
Stack after: ... pylist+stackslice

although pylist is really extended in-place. The .extend() attribute
function is attempted first, and if that fails the .append() attribute
is ran instead.
although pylist is really extended in-place. The extend() method is
used if it exists, otherwise the append() method is used.
"""),

I(name='LIST',
Expand Down
Loading
0