Coordinate Grid Points

greg greg at cosc.canterbury.ac.nz
Tue Feb 6 18:59:36 EST 2007


Eric.Gabrielson at gmail.com wrote:

> class Point(object):
> 	def _init_(self, x, y):

The name of the __init__ method needs *two* underscores
at each end, i.e.

       def __init__(self, x, y):

--
Greg



More information about the Python-list mailing list