1.1 --- a/templates/ops.c Thu Mar 23 23:36:32 2017 +0100
1.2 +++ b/templates/ops.c Fri Mar 24 19:07:01 2017 +0100
1.3 @@ -326,8 +326,11 @@
1.4
1.5 __attr (*__get_function(__attr context, __attr target))(__attr[])
1.6 {
1.7 - target = __unwrap_callable(target);
1.8 + return __get_function_unwrapped(context, __unwrap_callable(target));
1.9 +}
1.10
1.11 +__attr (*__get_function_unwrapped(__attr context, __attr target))(__attr[])
1.12 +{
1.13 /* Require null or instance contexts for functions and methods respectively,
1.14 or type instance contexts for type methods. */
1.15
1.16 @@ -339,8 +342,11 @@
1.17
1.18 __attr (*__check_and_get_function(__attr context, __attr target))(__attr[])
1.19 {
1.20 - target = __unwrap_callable(target);
1.21 + return __check_and_get_function_unwrapped(context, __unwrap_callable(target));
1.22 +}
1.23
1.24 +__attr (*__check_and_get_function_unwrapped(__attr context, __attr target))(__attr[])
1.25 +{
1.26 /* Require null or instance contexts for functions and methods respectively,
1.27 or type instance contexts for type methods. */
1.28