[Python-Dev] Rough idea for adding introspection information for builtins (original) (raw)

Antoine Pitrou solipsis at pitrou.net
Tue Mar 19 11:13:00 CET 2013


Le Tue, 19 Mar 2013 03:00:45 -0700, Larry Hastings <larry at hastings.org> a écrit :

As for handling optional argument groups, my gut feeling is that we're better off not leaking it out of Argument Clinic--don't expose it in this string we're talking about, and don't add support for it in the inspect.Parameter object. I'm not going to debate range(), the syntax of which predates one of our release managers. But I suggest option groups are simply a misfeature of the curses module. There are some other possible uses in builtins (I forgot to dig those out this evening) but so far we're talking adding complexity to an array of technologies (this representation, the parser, the Parameter object) to support a handful of uses of something we shouldn't have done in the first place, for consumers who I think won't care and won't appreciate the added conceptual complexity.

Agreed with Larry.

Regards

Antoine.



More information about the Python-Dev mailing list