[Python-Dev] dict() enhancement idea? (original) (raw)

Alex Martelli aleax@aleax.it
Fri, 22 Nov 2002 09:07:30 +0100


On Friday 22 November 2002 03:00 am, Brett Cannon wrote: ...

> to conveniently build dicts with literal keys. I think I've seen Alex > Martelli advertise it, too. Don't know how well known it is otherwise, > but it is extremly handy.

I think Alex has it in the Cookbook.

Yes, originally from a contribution by Brent Burley: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52313

and in class clothing at: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52308

Alex