numpy/numpy — pull request #3560 by arinkverma (2013-07-30 17:55:08+00:00)
Title: ENH: Implementation Copy-paste tag in conv_template.py

Ability to paste same copied code segment at more than one place. It take care of main concerned of code duplication in template.

Implementation of copy and paste tag in cove_template.py
copy and paste tag
-----------------------
Example
Here is demo template

/**begin copy
*@hi@
*/
Hello! This is just a dummy line
/**end copy**/

First I will write some useless line, then include code pasted to variable
hi as /**paste @hi@**/

Output:

First I will write some useless line, then include code pasted to variable
hi as Hello! This is just an dummy line

Example
-------------
See modified scalarmathmodule.c.src with this pr.