Paul is a PyCharm and WebStorm Developer Advocate at JetBrains. Before that: co-founder of Zope Corporation, bootstrapped both the Python Software Foundation and the Plone Foundation.
I believe you discussed it in a ticket and I don't want to pollute your tracker with questions.
Any chance of varying dispatch by more than one criteria? Pyramid has a concept of predicates which let you have a number of view registrations, each with different predicates saying which should be used. The choice is then kind of a score-based system.
My guess (and I believe your ticket answer) is it's just not feasible in the type system.
I don't think that it is possible right now, but this is totally something I would love to add. But, before going deeper we need to fix some performance and typing issues.
Glad that you are interested in dry-python!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I believe you discussed it in a ticket and I don't want to pollute your tracker with questions.
Any chance of varying dispatch by more than one criteria? Pyramid has a concept of predicates which let you have a number of view registrations, each with different predicates saying which should be used. The choice is then kind of a score-based system.
My guess (and I believe your ticket answer) is it's just not feasible in the type system.
Hi!
Do you mean something like
multidispatch
? github.com/mrocklin/multipledispatchI don't think that it is possible right now, but this is totally something I would love to add. But, before going deeper we need to fix some performance and typing issues.
Glad that you are interested in dry-python!