summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2020-11-20 20:49:32 (GMT)
committerGitHub <noreply@github.com>2020-11-20 20:49:32 (GMT)
commit9fc319dc033fa32d298fe1c3f171b3d011ac04f0 (patch)
treec02abc00a323f97b9be677c6e9df837117893223 /Doc
parent4c24b08cd3239b417a5f8c7ba2ba54c840d051e3 (diff)
downloadcpython-9fc319dc033fa32d298fe1c3f171b3d011ac04f0.zip
cpython-9fc319dc033fa32d298fe1c3f171b3d011ac04f0.tar.gz
cpython-9fc319dc033fa32d298fe1c3f171b3d011ac04f0.tar.bz2
bpo-42360: Add advice to help avoid pickling issues. (GH-23305)
Diffstat (limited to 'Doc')
-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 f538da5..1293f54 100644
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -862,6 +862,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*.