summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-11-20 21:19:49 (GMT)
committerGitHub <noreply@github.com>2020-11-20 21:19:49 (GMT)
commitf552f4b2d635ae031e154374ba3a609c63d09d2b (patch)
tree60a9d99f80d01023dd722f5ea1192d901823c416
parent4dd2112a1d26e03b605bed0f89e3678041ad1490 (diff)
downloadcpython-f552f4b2d635ae031e154374ba3a609c63d09d2b.zip
cpython-f552f4b2d635ae031e154374ba3a609c63d09d2b.tar.gz
cpython-f552f4b2d635ae031e154374ba3a609c63d09d2b.tar.bz2
bpo-42360: Add advice to help avoid pickling issues. (GH-23305) (GH-23429)
-rw-r--r--Doc/library/collections.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index 549ac1b..2ffdb49 100644
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -849,6 +849,9 @@ they add the ability to access fields by name instead of position index.
Named tuple instances do not have per-instance dictionaries, so they are
lightweight and require no more memory than regular tuples.
+ To support pickling, the named tuple class should be assigned to a variable
+ that matches *typename*.
+
.. versionchanged:: 3.1
Added support for *rename*.