[Python-3000] Stars (original) (raw)
Raymond Hettinger raymond.hettinger at verizon.net
Thu Mar 1 07:11:10 CET 2007
- Previous message: [Python-3000] unit test for advanced formatting
- Next message: [Python-3000] Stars
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
What we have now: def f(a, b, *args, **dict(c=1)): # Yuck!
What we really need: def f(a, b, *args, **, c=1): # Two stars spell dictionary.
What I heard was planned instead: def f(a, b, *args, *, c=1): # One star spells iterable.
Two stars make a nice visual separator. One star following *args just looks funny,
Raymond
P.S. I would actually like to see this in Py2.6. It doesn't conflict with anything else and solves an annoying problem.
- Previous message: [Python-3000] unit test for advanced formatting
- Next message: [Python-3000] Stars
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]