Yury Selivanov added the comment:

Larry,  

I saw your message on the tracker regarding adding support for parameters 
groups to the signature object. Would you mind if I join the discussion with my 
ideas of how this feature might be implemented? 

Yury

On Sunday, January 19, 2014 at 5:44 AM, Larry Hastings wrote:

> 
> Larry Hastings added the comment:
> 
> I just want to mention, while we're all thinking about this stuff: I plan to 
> enhance the Signature object to reflect "optional groups". Right now 
> Signature objects cannot express parameters that are optional but don't have 
> a published default. (e.g. a string parameter for a builtin having a default 
> of NULL). A lot of these are being converted using optional groups, and I 
> want to make it at least possible for user code to introspect those functions 
> and understand that those are optional parameters.
> 
> My original plan was to add a "group" member, containing an arbitrary 
> identifier of the "group" this parameter belongs to. I'm not sure that's 
> sufficient; I may also need a "parent_group" parameter, or something like 
> that, to represent the group that this group is nested in. I'm still thinking 
> about it. But I'm hoping to get to this in the next two or three days.
> 
> ----------
> 
> _______________________________________
> Python tracker <rep...@bugs.python.org (mailto:rep...@bugs.python.org)>
> <http://bugs.python.org/issue17481>
> _______________________________________

----------
nosy: +Yury.Selivanov

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17481>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to