@@ -305,17 +305,18 @@ are always available. They are listed here in alphabetical order.
305305
306306 >>> import struct
307307 >>> dir () # show the names in the module namespace
308- ['__builtins__', '__doc__', '__name__', 'struct']
309- >>> dir (struct) # show the names in the struct module
310- ['Struct', '__builtins__', '__doc__', '__file__', '__name__',
311- '__package__', '_clearcache', 'calcsize', 'error', 'pack', 'pack_into',
308+ ['__builtins__', '__name__', 'struct']
309+ >>> dir (struct) # show the names in the struct module # doctest: +SKIP
310+ ['Struct', '__all__', '__builtins__', '__cached__', '__doc__', '__file__',
311+ '__initializing__', '__loader__', '__name__', '__package__',
312+ '_clearcache', 'calcsize', 'error', 'pack', 'pack_into',
312313 'unpack', 'unpack_from']
313314 >>> class Shape (object ):
314- def __dir__(self):
315- return ['area', 'perimeter', 'location']
315+ ... def __dir__ (self ):
316+ ... return [' area' , ' perimeter' , ' location' ]
316317 >>> s = Shape()
317318 >>> dir (s)
318- ['area', 'perimeter ', 'location ']
319+ ['area', 'location ', 'perimeter ']
319320
320321 .. note ::
321322
@@ -614,9 +615,9 @@ are always available. They are listed here in alphabetical order.
614615 to a string (stripping a trailing newline), and returns that. When EOF is
615616 read, :exc: `EOFError ` is raised. Example::
616617
617- >>> s = input('--> ')
618+ >>> s = input('--> ') # doctest: +SKIP
618619 --> Monty Python's Flying Circus
619- >>> s
620+ >>> s # doctest: +SKIP
620621 "Monty Python's Flying Circus"
621622
622623 If the :mod: `readline ` module was loaded, then :func: `input ` will use it
0 commit comments