From: Georg Brandl Date: Thu, 23 Aug 2007 21:21:36 +0000 (+0000) Subject: Bug #1734111: document struct.Struct.size. X-Git-Tag: v2.6a1~1450 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b7a837d81b9464298c6cd5b375da0934d35738c4;p=python Bug #1734111: document struct.Struct.size. --- 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`. +