C
chad
I tried the following...
#!/usr/bin/python
class foo:
def first(self):
print "Chad "
def last(self):
print "A "
x = foo()
y = x.first()
y.last()
But when I ran it, I got the following...
[cdalten@localhost oakland]$ ./chain.py
Chad
Traceback (most recent call last):
File "./chain.py", line 12, in ?
y.last()
AttributeError: 'NoneType' object has no attribute 'last'
[cdalten@localhost oakland]$
#!/usr/bin/python
class foo:
def first(self):
print "Chad "
def last(self):
print "A "
x = foo()
y = x.first()
y.last()
But when I ran it, I got the following...
[cdalten@localhost oakland]$ ./chain.py
Chad
Traceback (most recent call last):
File "./chain.py", line 12, in ?
y.last()
AttributeError: 'NoneType' object has no attribute 'last'
[cdalten@localhost oakland]$