Re: [Python-ideas] singledispatch for instance methods

2016-12-26 Thread Bar Harel
Any updates with a singledispatch for methods? On Tue, Sep 20, 2016, 5:49 PM Bar Harel wrote: > At last! Haven't used single dispatch exactly because of that. Thank you > savior! > +1 > > On Tue, Sep 20, 2016, 6:03 AM Tim Mitchell > wrote: > >>

Re: [Python-ideas] AtributeError inside __get__

2016-12-26 Thread Zahari Dim
> There are a lot of entirely valid properties that look something like this: > > > @property > def attr(self): > try: > return data_store[lookup_key] > except KeyError: > raise AttributeError("attr") But wouldn't something like this be implemented