summaryrefslogtreecommitdiffstats
path: root/Doc/library/struct.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/struct.rst')
-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`.
+