@@ -259,7 +259,7 @@ are always available. They are listed here in alphabetical order.
259259 ['Struct', '__builtins__', '__doc__', '__file__', '__name__',
260260 '__package__', '_clearcache', 'calcsize', 'error', 'pack', 'pack_into',
261261 'unpack', 'unpack_from']
262- >>> class Foo ( object ) :
262+ >>> class Foo :
263263 ... def __dir__ (self ):
264264 ... return [" kan" , " ga" , " roo" ]
265265 ...
@@ -903,7 +903,7 @@ are always available. They are listed here in alphabetical order.
903903 function for setting, and *fdel * a function for del'ing, an attribute. Typical
904904 use is to define a managed attribute ``x ``::
905905
906- class C(object) :
906+ class C:
907907 def __init__(self):
908908 self._x = None
909909
@@ -922,7 +922,7 @@ are always available. They are listed here in alphabetical order.
922922 property will copy *fget *'s docstring (if it exists). This makes it possible to
923923 create read-only properties easily using :func: `property ` as a :term: `decorator `::
924924
925- class Parrot(object) :
925+ class Parrot:
926926 def __init__(self):
927927 self._voltage = 100000
928928
@@ -939,7 +939,7 @@ are always available. They are listed here in alphabetical order.
939939 corresponding accessor function set to the decorated function. This is
940940 best explained with an example::
941941
942- class C(object) :
942+ class C:
943943 def __init__(self):
944944 self._x = None
945945
@@ -1243,7 +1243,7 @@ are always available. They are listed here in alphabetical order.
12431243 attribute. For example, the following two statements create identical
12441244 :class: `type ` objects:
12451245
1246- >>> class X ( object ) :
1246+ >>> class X :
12471247 ... a = 1
12481248 ...
12491249 >>> X = type (' X' , (object ,), dict (a = 1 ))
0 commit comments