[GH-ISSUE #217] Python raw f-strings crash #83

Closed
opened 2026-05-06 13:15:15 +02:00 by BreizhHardware · 2 comments

Originally created by @Golem642 on GitHub (May 5, 2022).
Original GitHub issue: https://github.com/UpsilonNumworks/Upsilon/issues/217

Describe the bug
Never-ending loop on something in the python editor which makes the calculator unusable until a reset. Upsilon doesn't crash, it just gets stuck

To Reproduce
Steps to reproduce the behavior:

  1. Go to "Python"
  2. Click on "New script" and name it whatever you want or open an existing script
  3. Write the following inside the script anywhere you want: fr"

Expected behavior
The calculator shouldn't be responding anymore and can only be restored with the reset button on the back

Device

  • Numworks 110
  • Upsilon Version: 1.0.0-dev
  • Upsilon commit: public
Originally created by @Golem642 on GitHub (May 5, 2022). Original GitHub issue: https://github.com/UpsilonNumworks/Upsilon/issues/217 **Describe the bug** Never-ending loop on something in the python editor which makes the calculator unusable until a reset. Upsilon doesn't crash, it just gets stuck **To Reproduce** Steps to reproduce the behavior: 1. Go to "Python" 2. Click on "New script" and name it whatever you want or open an existing script 5. Write the following inside the script anywhere you want: `fr"` **Expected behavior** The calculator shouldn't be responding anymore and can only be restored with the reset button on the back **Device** - Numworks 110 - Upsilon Version: 1.0.0-dev - Upsilon commit: public
BreizhHardware 2026-05-06 13:15:15 +02:00
  • closed this issue
  • added the
    fixed
    label
Author
Owner

@Golem642 commented on GitHub (May 5, 2022):

Additional Informations
The bug doesn't seem to execute if fr" is fully quoted (like "fr") and is sticked to it, so the bug will execute if you enter " fr" because there is a space between the first quote and the thing.

<!-- gh-comment-id:1118390641 --> @Golem642 commented on GitHub (May 5, 2022): **Additional Informations** The bug doesn't seem to execute if `fr"` is fully quoted (like `"fr"`) and is sticked to it, so the bug will execute if you enter `" fr"` because there is a space between the first quote and the thing.
Author
Owner

@Golem642 commented on GitHub (May 5, 2022):

Update
When entered into the console, the calculator doesn't crash and gives us this error :

  Last command
SyntaxError: raw f-strings are not supported

I believe this is the source of the problem

<!-- gh-comment-id:1118400198 --> @Golem642 commented on GitHub (May 5, 2022): **Update** When entered into the console, the calculator doesn't crash and gives us this error : ``` Last command SyntaxError: raw f-strings are not supported ``` I believe this is the source of the problem
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Upsilon#83
No description provided.