[issue22096] Argument Clinic: add ability to specify an existing impl function

2014-08-01 Thread Zachary Ware

Zachary Ware added the comment:

Fair enough.

--
resolution:  - rejected
stage:  - resolved
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22096
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22096] Argument Clinic: add ability to specify an existing impl function

2014-07-29 Thread Martin v . Löwis

Martin v. Löwis added the comment:

I don't think it it is worth the effort. You would need two different entry 
functions still, to allow error messages to refer to the function name. Since 
the _impl functions can trivially call each other, the saving in lines of code 
are minimal, and from a code reading point of view, having aliases actually 
complicates the code.

--
nosy: +loewis

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22096
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22096] Argument Clinic: add ability to specify an existing impl function

2014-07-29 Thread Larry Hastings

Larry Hastings added the comment:

I'm with Martin. It would be a funny exception, where the reader'd get 
confused... why is the impl missing? 

Also, any halfway-decent optimizer will inline the impl into the parsing 
function, so this has no runtime cost.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22096
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22096] Argument Clinic: add ability to specify an existing impl function

2014-07-28 Thread Zachary Ware

Changes by Zachary Ware zachary.w...@gmail.com:


--
components: Demos and Tools
nosy: larry, zach.ware
priority: normal
severity: normal
status: open
title: Argument Clinic: add ability to specify an existing impl function
type: enhancement
versions: Python 3.4, Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22096
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22096] Argument Clinic: add ability to specify an existing impl function

2014-07-28 Thread Zachary Ware

New submission from Zachary Ware:

It would be nice to be able to specify an existing function as the _impl 
function, for cases like winreg.OpenKey and OpenKeyEx which are the same 
function by different names, or _winapi.GetCurrentProcess, whose impl function 
is return GetCurrentProcess().

This is pretty minor, but would allow for some shorter and cleaner code.  
Unfortunately, I don't have any great ideas for syntax for this, so it may be 
rejected just on that basis.

--
priority: normal - low

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22096
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com