__init__ question

Adrian Eyre a.eyre at optichrome.com
Wed Aug 11 04:52:39 EDT 1999

> class Vector:
> 	def __init__(self, x=0, y=0, z=0):
> 		self.x, self.y, self.z = x, y, z
> all examples from the original post, plus my own, work with the added
> benefit Python does all argument parsing for us.

True, but I got the impression from the original post that the number
of allowed arguments may be unlimited.

More information about the Python-list mailing list