From: Raymond Hettinger Date: Wed, 1 Jun 2011 23:01:21 +0000 (-0700) Subject: Cleanup example X-Git-Tag: v2.7.3rc1~707 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=88fc66179b1d05f95cb7ac58f4bceef366d0ff11;p=python Cleanup example --- diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 7a3a2d5630..57748b6b49 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -306,11 +306,10 @@ available. They are listed here in alphabetical order. 'unpack', 'unpack_from'] >>> class Shape(object): def __dir__(self): - return ['area', 'perimter', 'location'] - - >>> f = Shape() - >>> dir(f) - ['area', 'perimter', 'location'] + return ['area', 'perimeter', 'location'] + >>> s = Shape() + >>> dir(s) + ['area', 'perimeter', 'location'] .. note::