beginner question: extending python types
Michael Gilfix
mgilfix at eecs.tufts.edu
Thu May 16 18:03:00 EDT 2002
This is one of those places where 'True' will really
shine methinks.
-- Mike
On Thu, May 16 @ 10:04, Michael Hudson wrote:
> Bob Horvath <usenet at horvath.com> writes:
>
> > Jeremy Yallop wrote:
> > > * Uwe Mayer
> > > | I found Python lacking the type of a "set". i.e. an unordered list.
> > > Use a dictionary, with the same value (1) for every key.
> > >
> >
> > Is there any significance to the value 1?
>
> In this context, no. It might be a tad confusing to have something
> that was false, so None, 0 and () might be bad choices. But I don't
> think there's a good reason.
--
Michael Gilfix
mgilfix at eecs.tufts.edu
For my gpg public key:
http://www.eecs.tufts.edu/~mgilfix/contact.html
More information about the Python-list
mailing list