summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-08-23 21:21:36 (GMT)
committerGeorg Brandl <georg@python.org>2007-08-23 21:21:36 (GMT)
commitb7a837d81b9464298c6cd5b375da0934d35738c4 (patch)
treef1d54089c801061b5da0cbddbbee6dea7a578eb1 /Doc
parent4ad9b8206c654a5b9874917fa5165453c81ed0e4 (diff)
downloadcpython-b7a837d81b9464298c6cd5b375da0934d35738c4.zip
cpython-b7a837d81b9464298c6cd5b375da0934d35738c4.tar.gz
cpython-b7a837d81b9464298c6cd5b375da0934d35738c4.tar.bz2
Bug #1734111: document struct.Struct.size.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/struct.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/struct.rst b/Doc/library/struct.rst
index 2f27d13..9cf4eb2 100644
--- a/Doc/library/struct.rst
+++ b/Doc/library/struct.rst
@@ -290,3 +290,8 @@ Compiled Struct objects support the following methods and attributes:
The format string used to construct this Struct object.
+.. attribute:: Struct.size
+
+ The calculated size of the struct (and hence of the string) corresponding
+ to :attr:`format`.
+