issues Search Results · repo:santinic/pampy language:Python
Filter by
33 results
(64 ms)33 results
insantinic/pampy (press backspace or delete to remove)Hello, is this project still alive? I noticed that the owner hasn t been active for a year and no PRs have been accepted
for a while. I know that pattern matching is hitting python 3.10 at some point, ...
themanifold
- 1
- Opened on Feb 11, 2021
- #52
Matching an instance of a class against it s class works perfectly but i just realied that you cannot match with the
class itself:
class Marker: pass
match({ my_marker : Marker}, { my_marker : Marker}, ...
sunbit
- Opened on Aug 31, 2020
- #51
In conda-recipe-s it is not possible to include pip dependencies, could you please also publish pampy as conda package?
antonkulaga
- Opened on Jul 19, 2020
- #50
PEP: 622 proposes Structural Pattern Matching for python 3.10. For some users it may be interesting how difficult it
would be to port the pampy pattern matching code to native python 3.10 code. (that is ...
v217
- 1
- Opened on Jun 28, 2020
- #49
Hi, Great jobs on pampy ! this is the closest thing I could find to core.match from clojure.
I m wondering if we can apply a new guard function in matching pattern ?
match ( 3,
(lambda x: x%2==1), ...
yellowbean
- Opened on Mar 26, 2020
- #47
this is taken from #43
Idea:
from pampy import match, _, raise_error
return match(x,
1, foo ,
2, bar ,
_, raise_error(ValueError, Message )
)
rochacbruno
- 1
- Opened on Feb 19, 2020
- #45
The most great and simple examples in README are images and blind programmers cant see this examples.
Why not use ``` tags to describe it?
dunossauro
- Opened on Feb 19, 2020
- #44
Hi, below sample code give me error:
return match
(
name,
WarmupMultiStepLR , WarmupMultiStepLR( \
optimizer, \
cfg.SOLVER.STEPS, \
cfg.SOLVER.GAMMA, ...
sailfish009
- 1
- Opened on Feb 15, 2020
- #43
Is there a way to match a pattern like [_, 0, _] only if the two _s are equal, and if they aren t continue to the next
pattern?
zlee-personal
- 1
- Opened on Oct 22, 2019
- #41
I think there is a problem with matching simple python objects that have binary strings in them.
In the example below the first three cases should be matched, but they all fail.
match({b name : John ...
naumruso
- 1
- Opened on Oct 18, 2019
- #40

Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Restrict your search to the title by using the in:title qualifier.
Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Press the /
key to activate the search input again and adjust your query.