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.

classification
Title: Argument Clinic: support cloning existing functions
Type: enhancement Stage: resolved
Components: Versions: Python 3.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: larry Nosy List: georg.brandl, larry, python-dev, serhiy.storchaka
Priority: normal Keywords:

Created on 2014-01-15 05:49 by larry, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
larry.clinic.clone.functions.diff.1.txt larry, 2014-01-15 05:49 review
Messages (6)
msg208143 - (view) Author: Larry Hastings (larry) * (Python committer) Date: 2014-01-15 05:49
It was a quick hack: Clinic now has a syntax for cloning an existing
function!  The first line of the function block should be 

    module.class.new_function [as c_basename] = module.class.existing_fn

Hurry up and give me a LGTM so you can use it everywhere! :D
msg208144 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2014-01-15 06:04
Functionality looks good. Implementation I can't say.
msg208145 - (view) Author: Larry Hastings (larry) * (Python committer) Date: 2014-01-15 06:14
Shall I just check it in and fix it if it breaks?
msg208146 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2014-01-15 06:18
Sure!
msg208147 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-01-15 06:23
New changeset 565773aabafb by Larry Hastings in branch 'default':
Issue #20268: Argument Clinic now supports cloning the parameters
http://hg.python.org/cpython/rev/565773aabafb
msg208148 - (view) Author: Larry Hastings (larry) * (Python committer) Date: 2014-01-15 06:23
Begun, the clone war has.
History
Date User Action Args
2022-04-11 14:57:56adminsetgithub: 64467
2014-01-15 06:23:50larrysetstatus: open -> closed
resolution: fixed
messages: + msg208148

stage: patch review -> resolved
2014-01-15 06:23:09python-devsetnosy: + python-dev
messages: + msg208147
2014-01-15 06:18:39georg.brandlsetmessages: + msg208146
2014-01-15 06:14:50larrysetmessages: + msg208145
2014-01-15 06:04:34georg.brandlsetmessages: + msg208144
2014-01-15 05:49:19larrycreate