Skip to content

Commit cf96836

Browse files
committed
update from Atlas
1 parent 573e1a9 commit cf96836

28 files changed

+8
-59
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

objects/haunted_bus.py renamed to 08-obj-ref/haunted_bus.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
"""
2-
>>> bus1 = HountedBus(['Alice', 'Bill'])
2+
>>> bus1 = HauntedBus(['Alice', 'Bill'])
33
>>> bus1.passengers
44
['Alice', 'Bill']
55
>>> bus1.pick('Charlie')
66
>>> bus1.drop('Alice')
77
>>> bus1.passengers
88
['Bill', 'Charlie']
9-
>>> bus2 = HountedBus()
9+
>>> bus2 = HauntedBus()
1010
>>> bus2.pick('Carrie')
1111
>>> bus2.passengers
1212
['Carrie']
13-
>>> bus3 = HountedBus()
13+
>>> bus3 = HauntedBus()
1414
>>> bus3.passengers
1515
['Carrie']
1616
>>> bus3.pick('Dave')
@@ -22,18 +22,18 @@
2222
['Bill', 'Charlie']
2323
2424
25-
>>> dir(HountedBus.__init__) # doctest: +ELLIPSIS
25+
>>> dir(HauntedBus.__init__) # doctest: +ELLIPSIS
2626
['__annotations__', '__call__', ..., '__defaults__', ...]
27-
>>> HountedBus.__init__.__defaults__
27+
>>> HauntedBus.__init__.__defaults__
2828
(['Carrie', 'Dave'],)
29-
>>> HountedBus.__init__.__defaults__[0] is bus2.passengers
29+
>>> HauntedBus.__init__.__defaults__[0] is bus2.passengers
3030
True
3131
3232
"""
3333

3434
# BEGIN HAUNTED_BUS_CLASS
35-
class HountedBus:
36-
"""A bus model hounted by ghost passengers"""
35+
class HauntedBus:
36+
"""A bus model haunted by ghost passengers"""
3737

3838
def __init__(self, passengers=[]): # <1>
3939
self.passengers = passengers # <2>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)