]> granicus.if.org Git - python/commitdiff
Bug #1734111: document struct.Struct.size.
authorGeorg Brandl <georg@python.org>
Thu, 23 Aug 2007 21:21:36 +0000 (21:21 +0000)
committerGeorg Brandl <georg@python.org>
Thu, 23 Aug 2007 21:21:36 +0000 (21:21 +0000)
Doc/library/struct.rst

index 2f27d13ca7b7f127066839565c8ced9a8e30bf38..9cf4eb2945a62e692defbc7cc1d01e14aded96d0 100644 (file)
@@ -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`.
+