beginner question: extending python types

David LeBlanc whisper at oz.net
Wed May 15 22:11:21 EDT 2002


The primary significance of 1 is to keep 0 and 2 from getting too frisky
with each other. Otherwise, you're being had: you can't have duplicate keys
in a dictionary.

David LeBlanc
Seattle, WA USA

> -----Original Message-----
> From: python-list-admin at python.org
> [mailto:python-list-admin at python.org]On Behalf Of Bob Horvath
> Sent: Wednesday, May 15, 2002 19:27
> To: python-list at python.org
> Subject: Re: beginner question: extending python types
>
>
> 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?
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list






More information about the Python-list mailing list