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...

[cdal...@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'
[cdal...@localhost oakland]$
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to