Dave Angel wrote:
On 01/-10/-28163 02:59 PM, Jim Byrnes wrote:
I'm trying to teach myself OOP in python (again). The following code
from Dawson's book runs fine, unaltered [1].
class Critter(object):
""" A virtual pet """
def __init__(self, name):
print "A new critter is born"
self.name = name
Steven D'Aprano wrote:
Jim Byrnes wrote:
I'm trying to teach myself OOP in python (again). The following code
from Dawson's book runs fine, unaltered [1].
What's Dawson's book?
Python Programming for the absolute beginner, by Michael Dawson
Thanks for the explanation. It was exactly wit
On 01/-10/-28163 02:59 PM, Jim Byrnes wrote:
I'm trying to teach myself OOP in python (again). The following code
from Dawson's book runs fine, unaltered [1].
class Critter(object):
""" A virtual pet """
def __init__(self, name):
print "A new critter is born"
self.name = name
def get_name(self)
Jim Byrnes wrote:
I'm trying to teach myself OOP in python (again). The following code
from Dawson's book runs fine, unaltered [1].
What's Dawson's book?
class Critter(object):
""" A virtual pet """
def __init__(self, name):
print "A new critter is born"
self.name = n
I do not think you can override a property.
Ramit
Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology
712 Main Street | Houston, TX 77002
work phone: 713 - 216 - 5423
-Original Message-
From: tutor-bounces+ramit.prasad=jpmchase@python.org
[mailto:tutor-bounces+r