type coercion inconsistently fails depending on order of arguments
@klarose ci sta già lavorando.
Dal 1/6/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
I was surprised to find that a less-than comparison failed between an integer and a float, since I thought I had seen it work earlier. Sure enough, it works if the left hand side is a float, but not if the left hand side is an int.
Example:
# good
python -m celpy -n '4.0 < 10'
true
# bad
python -m celpy -n '10 < 4.0'
ERROR: <input>:1:1 found no matching overload for 'relation_lt' applied to '(<class 'celpy.celtypes.IntType'>, <class 'celpy.celtypes.DoubleType'>)'
| 10 < 4.0
Both of these work in golang, see cel playground
I expect both statements to properly evaluate. This appears to affect a bunch of other operators (<=, >, >=)
- Lingua principale
- Python
- Stelle
- 174
- Fork
- 40
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di cloud-custodian/cel-python
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
cloud-custodian/cel-python#180 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
cloud-custodian/cel-python#194 ·
-
documentation enhancement tracking
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
cloud-custodian/cel-python#182 ·
-
Refresh Features Apertadependencies
cloud-custodian/cel-python#172 · 2 commenti · 1 assegnatario ·
-
enhancement
cloud-custodian/cel-python#169 · 3 commenti · 1 assegnatario ·
Tutte le issue di cloud-custodian/cel-python
Issue simili
-
area: harness bug status: needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Human-Agent-Society/reef#625 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 80/100
learningequality/kolibri#15351 · 2 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Name consistency Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
eellak/triplestore#65 · 1 commento ·