[Python-ideas] Short form for keyword arguments and dicts

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Jun 26 09:48:54 CEST 2013


Ron Adam wrote:
> And I don't like the '=' with nothing on the right.

Expanding on the suggestion someone made of having a
single marker of some kind in the argument list, I
came up with this:

     def __init__(self, text, font = system_font, style = 'plain'):
        default_size = calc_button_size(text, font, style)
        Widget.__init__(self, size = default_size, pass font, style)

-- 
Greg


More information about the Python-ideas mailing list