ways to declare empty set variable

Ben Finney bignose+hates-spam at benfinney.id.au
Wed Feb 13 17:18:30 EST 2008


Nick Craig-Wood <nick at craig-wood.com> writes:

> Ben Finney <bignose+hates-spam at benfinney.id.au> wrote:
> >  bearophileHUGS at lycos.com writes:
> > 
> > > Missing that, I think dict() and set() and tuple() and list()
> > 
> >  I often use these myself. They're slightly more explicit, which can
> >  help when I want the reader not to have to think too much, and they're
> >  not particularly verbose because the names are well-chosen and
> >  short.
> 
> You can also do this with the dict() syntax

As was implied by the plural "these" in "I often use these myself".

-- 
 \        "My house is made out of balsa wood, so when I want to scare |
  `\     the neighborhood kids I lift it over my head and tell them to |
_o__)  get out of my yard or I'll throw it at them."  -- Steven Wright |
Ben Finney



More information about the Python-list mailing list