Help: clarify list(POP_* <in_out> <in_out>) behavior

This commit is contained in:
Robert Maynard
2021-10-12 13:43:53 -04:00
committed by Craig Scott
parent 6bfe5f24da
commit 67f8d20a8e
+6 -4
View File
@@ -161,8 +161,9 @@ Inserts elements to the list to the specified location.
.. versionadded:: 3.15 .. versionadded:: 3.15
If no variable name is given, removes exactly one element. Otherwise, If no variable name is given, removes exactly one element. Otherwise,
assign the last element's value to the given variable and removes it, with `N` variable names provided, assign the last `N` elements' values
up to the last variable name given. to the given variables and then remove the last `N` values from
``<list>``.
.. _POP_FRONT: .. _POP_FRONT:
@@ -173,8 +174,9 @@ up to the last variable name given.
.. versionadded:: 3.15 .. versionadded:: 3.15
If no variable name is given, removes exactly one element. Otherwise, If no variable name is given, removes exactly one element. Otherwise,
assign the first element's value to the given variable and removes it, with `N` variable names provided, assign the first `N` elements' values
up to the last variable name given. to the given variables and then remove the first `N` values from
``<list>``.
.. _PREPEND: .. _PREPEND: