This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients larry, serhiy.storchaka
Date 2014-01-19.13:11:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1390137113.2.0.816137026514.issue20302@psf.upfronthosting.co.za>
In-reply-to
Content
Currently flags for optional groups are named as group_left_N and  group_right_N. It will be better if they have names use_param, use_param1_param2, etc. E.g. following declaration:

/*[clinic input]
curses.window.addstr

    self: self(type="PyCursesWindowObject *")
    [
    y: int
        Y-coordinate.
    x: int
        X-coordinate.
    ]

    str: object
        String to add.

    [
    attr: long
        Attributes for the character.
    ]
    /

[clinic start generated code]*/

Should produce signature:

static PyObject *
curses_window_addstr_impl(PyCursesWindowObject *self, int use_x_y, int y, int x, PyObject *str, int use_attr, long attr)

(Existing non-clinicalized code use use_xy and use_attr flags).
This will make the code a little cleaner.
History
Date User Action Args
2014-01-19 13:11:53serhiy.storchakasetrecipients: + serhiy.storchaka, larry
2014-01-19 13:11:53serhiy.storchakasetmessageid: <1390137113.2.0.816137026514.issue20302@psf.upfronthosting.co.za>
2014-01-19 13:11:53serhiy.storchakalinkissue20302 messages
2014-01-19 13:11:53serhiy.storchakacreate