[Web-SIG] Form field dictionaries

Ian Bicking ianb at colorstudy.com
Wed Oct 29 11:17:53 EST 2003


On Wednesday, October 29, 2003, at 11:12 AM, Barry Warsaw wrote:
> Dumb-ass suggestion of the day: what if the field values were
> represented by a dict subclass, and we had several different 
> subclasses,
> each of which specified the exact behavior for __getitem__().  E.g.
> David could have his "_getitem__ is getfirst" behavior, Steve could 
> have
> his verified-multiples behavior, and I could have my "always return a
> list" behavior.  We'd then be reduced to choosing a default and a few
> interfaces and everyone would be happy <wink>.

That would make me unhappy... next thing you know, you'll be 
introducing a magic quoting dict subclass...

--
Ian Bicking | ianb at colorstudy.com | http://blog.ianbicking.org




More information about the Web-SIG mailing list