[issue20303] Argument Clinic: optional groups

2015-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Does this work? No, Argument Clinic just rejects this (as in msg208478). Perhaps a half of functions that need optional groups, need also support of default argument or other optional group. -- ___ Python track

[issue20303] Argument Clinic: optional groups

2015-05-05 Thread Larry Hastings
Larry Hastings added the comment: Yes, when I implemented optional groups, I didn't realize that sometimes people mixed them with optional arguments (with default values). Clinic doesn't cope well when you mix the two. Does this work? /*[clinic input] _curses.window.getstr [ y: int

[issue20303] Argument Clinic: optional groups

2015-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I tried to make a workaround with using default value instead of optional group, but for the following declaration an incorrect code is generated: /*[clinic input] _curses.window.getstr [ y: int Y-coordinate. x: int X-coordinate.

[issue20303] Argument Clinic: optional groups

2015-02-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +Argument Clinic ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue20303] Argument Clinic: optional groups

2014-01-21 Thread Larry Hastings
Larry Hastings added the comment: When I fix #20303, the new rules will be: * You can have top-level optional groups anywhere. * You may nest up to one nested group in a group. * Whenever you nest a group in another group, all nested groups in that stack must favor the same side (left or right)

[issue20303] Argument Clinic: optional groups

2014-01-21 Thread Larry Hastings
Larry Hastings added the comment: Confirmed, and yes it's low priority. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue20303] Argument Clinic: optional groups

2014-01-19 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: This is very very low priority issue. Currently Argument Clinic can't process following declaration: /*[clinic input] curses.window.chgat self: self(type="PyCursesWindowObject *") [ y: int Y-coordinate. x: int X-coordinate.