You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently in order to define a MethodMaker you need to create a class generator which uses a function name, and then a MethodMaker which is also passed that function name in order to extract the function.
This proposes making all code generators also accept a funcname argument. For convenience this should still have a default value.
For example the current eq_generator would be modified to this:
And the MethodMaker.__get__ function would be redefined to call self.code_generator(cls, self.funcname).
This will involve changing all methodmakers to accept multiple arguments but will remove the repetition of the literal names and makes renaming functions from the included generators easier.
The text was updated successfully, but these errors were encountered:
Currently in order to define a
MethodMaker
you need to create a class generator which uses a function name, and then aMethodMaker
which is also passed that function name in order to extract the function.This proposes making all code generators also accept a funcname argument. For convenience this should still have a default value.
For example the current eq_generator would be modified to this:
And the
MethodMaker.__get__
function would be redefined to callself.code_generator(cls, self.funcname)
.This will involve changing all methodmakers to accept multiple arguments but will remove the repetition of the literal names and makes renaming functions from the included generators easier.
The text was updated successfully, but these errors were encountered: