Ian Bicking wrote: > Having thought about it, I think storing a tuple of > (args, kwargs) is the best way to do this, since it's > most explicit. Consumers can deal with args specially, > ignore them, or raise an error, as they see fit -- > there are reasons to do each of these. Hiding args > in kwargs makes this choice more implicit, and probably > more error prone as a result. > > One little question: if a dispatcher can never produce > one of the kinds of information (which happens for some > of them), should they put in an empty list/tuple or > empty dict, or should they put in None for that item? > I'm currently saying they must put in a list/tuple or dict.
I would've thought they'd just leave out the entry altogether. Robert Brewer System Architect Amor Ministries [EMAIL PROTECTED] _______________________________________________ Web-SIG mailing list [email protected] Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com
