On Fri, Dec 29, 2017 at 7:02 AM, Nick Coghlan wrote:
> On 28 December 2017 at 04:22, Ethan Smith wrote:
> > Okay, if there is no further feedback, I will work on a
> singledispatchmethod
> > decorator like partialmethod.
> >
> > For the future perhaps, would it not be possible to tell that the p
On 28 December 2017 at 04:22, Ethan Smith wrote:
> Okay, if there is no further feedback, I will work on a singledispatchmethod
> decorator like partialmethod.
>
> For the future perhaps, would it not be possible to tell that the passed
> argument is a descriptor/function and dispatch to the corre
Okay, if there is no further feedback, I will work on a
singledispatchmethod decorator like partialmethod.
For the future perhaps, would it not be possible to tell that the passed
argument is a descriptor/function and dispatch to the correct
implementation, thus not needing two functions for essen
On 26 December 2017 at 01:41, Nick Coghlan wrote:
> On 25 December 2017 at 12:32, Ethan Smith wrote:
> > So at the moment, I don't think it is possible to implement
> singledispatch
> > on classmethod or staticmethod decorated functions.
>
> I've posted this to the PR, but adding it here as well
On 25 December 2017 at 12:32, Ethan Smith wrote:
> So at the moment, I don't think it is possible to implement singledispatch
> on classmethod or staticmethod decorated functions.
I've posted this to the PR, but adding it here as well: I think this
is a situation very similar to the case with fun
Hello all,
In https://bugs.python.org/issue32380 I was hoping to add support for
singledispatch with methods. Unfortunately, this cannot be achieved
internally without ugly attribute or stack hacks.
Therefore, I was thinking it would be nice if singledispatch supported a
keyword argument of the a