Problem with assert testing two ranges
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 35/100
Piste de recherche
Start by extracting test.zip and running the provided source test.py with the reported uncompyle6 3.7.0 and Python 3.8.3 environment. Trace how the decompiler handles the assert containing two chained range comparisons and the following cfg.trace call. Done means the input no longer produces a parse error and yields output reasonably similar to the source.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Description
Fails after an assert with and of two (a<= b <c) type conditions with message
Parse error at or near `CALL_METHOD_1' instruction at offset 60
How to Reproduce
I've attached a zip with the source, code and output
Source test.py
#! python3
def bug(cfg, dst, src):
assert (0 <= dst <= cfg.WIDTH and
0 <= src <= cfg.WIDTH);
cfg.trace("hello bug");
Expected behavior
Well - that it wouldn't give a parse error but sonething reasonably similar to the input!
Environment
uncompyle6 3.7.0
python 3.8.3
on Windows 10
Additional Environment or Context
- Langage dominant
- Python
- Étoiles
- 4.3k
- Forks
- 464
- Merge moyen
- 10 h 7 min
- PR mergées (30 j)
- 1
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de rocky/python-uncompyle6
-
Works on decompyle3
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
rocky/python-uncompyle6#506 · 1 commentaire ·
-
Python 3.8 Volunteer wanted Works on decompyle3
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
rocky/python-uncompyle6#492 · 4 commentaires ·
-
Redundant "else:"OuverteControl Flow Python 3.8 Volunteer wanted Works on decompyle3
Difficulté 4/5 3-5 jours Accessibilité débutants 45/100
rocky/python-uncompyle6#486 ·
-
Missing "While True"OuverteControl Flow Python 3.8 Volunteer wanted Works on decompyle3
Difficulté 4/5 3-5 jours Accessibilité débutants 45/100
rocky/python-uncompyle6#485 · 4 commentaires ·
-
Duplicate Python 3.9+
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
rocky/python-uncompyle6#484 · 9 réactions ·
Toutes les issues de rocky/python-uncompyle6
Issues similaires
-
area:core-platform effort:S priority:P3 status:in-review type:test
Difficulté 2/5 Moins d'une heure Accessibilité débutants 80/100
randomparity/kdive#3246 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Requantification library converts m/z to mass with the hydrogen-atom mass instead of the proton massOuvertebug
Difficulté 1/5 Moins d'une heure Accessibilité débutants 85/100
nf-core/metaboigniter#130 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
common-workflow-language/cwl-utils#477 ·
Les mainteneurs répondent en général sous 1 jour
-
Add dependabotOuvertefeat
Difficulté 2/5 Moins d'une heure Accessibilité débutants 72/100
open-nudge/opentemplate#204 ·
Les mainteneurs répondent en général sous 1 jour
-
github-stale-ci-pr-closer: KV state is double-wrapped, never persists, and hits the depth-32 limitPeut-être pris @VascoSch92 l’a pris aujourd’hui. Ouvertepriority:medium ready-for-dev
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
OpenHands/extensions#781 ·
Les mainteneurs répondent en général sous 1 jour