Skip to content

Commit 38ef265

Browse files
author
Swaroop C H
committed
Merge pull request #13 from myd7349/master
Some small fixes
2 parents 99077c5 + c738dc8 commit 38ef265

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

io.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ loop. This method returns a complete line including the newline character at the
9292
line. When an _empty_ string is returned, it means that we have reached the end of the file and we
9393
'break' out of the loop.
9494

95-
In the end, we finally `close`the file.
95+
In the end, we finally `close` the file.
9696

9797
Now, check the contents of the `poem.txt` file to confirm that the program has indeed written to
9898
and read from that file.

modules.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ A note on `del` - this statement is used to *delete* a variable/name and after t
264264
run, in this case `del a`, you can no longer access the variable `a` - it is as if it never existed
265265
before at all.
266266

267-
Note that the `dir()` function works on *any* object. For example, run `dir('print')` to learn
267+
Note that the `dir()` function works on *any* object. For example, run `dir(print)` to learn
268268
about the attributes of the print function, or `dir(str)` for the attributes of the str class.
269269

270270
There is also a http://docs.python.org/2/library/functions.html#vars[`vars()`] function which can

oop.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ include::programs/oop_objvar.txt[]
192192
.How It Works
193193

194194
This is a long example but helps demonstrate the nature of class and object variables. Here,
195-
`population` belongs to the`Robot` class and hence is a class variable. The `name` variable belongs
195+
`population` belongs to the `Robot` class and hence is a class variable. The `name` variable belongs
196196
to the object (it is assigned using `self`) and hence is an object variable.
197197

198198
Thus, we refer to the `population` class variable as `Robot.population` and not as

problem_solving.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ a `-v` option to make your program become more talkative or a `-q` to make it _q
227227

228228
Another possible enhancement would be to allow extra files and directories to be passed to the
229229
script at the command line. We can get these names from the `sys.argv` list and we can add them to
230-
our `source` list using the `extend`method provided by the `list` class.
230+
our `source` list using the `extend` method provided by the `list` class.
231231

232232
The most important refinement would be to not use the `os.system` way of creating archives and
233233
instead using the http://docs.python.org/2/library/zipfile.html[zipfile] or

0 commit comments

Comments
 (0)