-
Notifications
You must be signed in to change notification settings - Fork 0
Add the mirror_defaults
decorator
#185
base: master
Are you sure you want to change the base?
Conversation
c.c. @koreno - I can't add you as a reviewer. |
ba3a10a
to
b453f3f
Compare
b453f3f
to
d8b183b
Compare
|
@doroncohen will I be re-admitted to this repo?... |
How do you feel about
I see no reason why it shouldn't work everywhere - though we may need to have special treatment for generators to avoid messing up reflection... |
I think that we should allow the users to use these features but using them in the repo might put off other developers from contributing. |
I think that if we don't use an easypy feature within easypy, then it shouldn't be in easypy...
mm.... that feels odd and unreadable.
then I think we should implement this treatment... |
Too long. Let's just use |
Can we decide about the token before I start applying this wherever possible and using that token everywhere? |
We can also pass the names of parameters we want to mirror as |
Another option is to create a decorator that verifies the defaults are the same: def foo(a=1, b=2, c=3):
...
@ensure_same_defaults(foo)
def bar(a=1, b=2, c=4):
... This will raise an exception because |
So do we still want this? or did we lose interest? |
Looks like we can't agree on the implementation. |
Not on the |
👍 |
This can solve the problem of using AUTO vs replicating arguments. We could have: