-
- Notifications
You must be signed in to change notification settings - Fork 16
Closed
Description
This code:
size(200, 200) def draw_random_circle(): x = random_int(width) y = random_int(height) circle(x, y, random_int(25)) for _ in range(20): draw_random_circle()Doesn't work in py5bot or with run_sketch. The draw_random_circle() function messes up the code evaluation because it matches the regex ^def draw[^:]*:.
Somehow I remember changing this code because of a bug @villares reported, where def draw () , which is valid Python, was getting skipped over when it should not.
So this bug has been in py5 for a while and we did not notice it until now.
villares
Metadata
Metadata
Assignees
Labels
No labels