From b7a837d81b9464298c6cd5b375da0934d35738c4 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Thu, 23 Aug 2007 21:21:36 +0000 Subject: [PATCH] Bug #1734111: document struct.Struct.size. --- Doc/library/struct.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Doc/library/struct.rst b/Doc/library/struct.rst index 2f27d13ca7..9cf4eb2945 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`. + -- 2.50.1