Browse Source

Update modules.asciidoc

Dear friend:
    I found that 'dir('print')' in Python 3.4 will get the same output as 'dir(str)'. 'dir(print)', however, works well.
myd7349 10 years ago
parent
commit
82e288d62c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules.asciidoc

+ 1 - 1
modules.asciidoc

@@ -264,7 +264,7 @@ A note on `del` - this statement is used to *delete* a variable/name and after t
 run, in this case `del a`, you can no longer access the variable `a` - it is as if it never existed
 before at all.
 
-Note that the `dir()` function works on *any* object. For example, run `dir('print')` to learn
+Note that the `dir()` function works on *any* object. For example, run `dir(print)` to learn
 about the attributes of the print function, or `dir(str)` for the attributes of the str class.
 
 There is also a http://docs.python.org/2/library/functions.html#vars[`vars()`] function which can