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
I've falled out of love with inheritence trees and mixins. I would rather make the ezproxy instances I create return a fresh object, with no parent class, that fits the requests.Session API but is not a Session.
I think the easiest way to do this is to override getattribute to proxy calls to requests.Session, except for those we explicitly define.
... but maybe that's just reimplementing python's inheritence lookup rules all over again? I'm not sure. Anyway, it'll be a good excercise to try.
The text was updated successfully, but these errors were encountered:
I've falled out of love with inheritence trees and mixins. I would rather make the ezproxy instances I create return a fresh object, with no parent class, that fits the requests.Session API but is not a Session.
I think the easiest way to do this is to override getattribute to proxy calls to requests.Session, except for those we explicitly define.
... but maybe that's just reimplementing python's inheritence lookup rules all over again? I'm not sure. Anyway, it'll be a good excercise to try.
The text was updated successfully, but these errors were encountered: