[Tutor] Classes Turn Strings Into Tuples for some reason
alan.gauld at freenet.co.uk
Thu Oct 28 00:34:36 CEST 2004
----- Original Message -----
From: "Gooch, John" <John.Gooch at echostar.com>
To: <tutor at python.org>
Sent: Wednesday, October 27, 2004 12:10 AM
Subject: [Tutor] Classes Turn Strings Into Tuples for some reason
> #Define Classes
> class Record:
> def __init__(self, name ):
> self.name = name,
The comma at the end says "make this a tuple of one string".
Remove the comma and all will be well.
More information about the Tutor