Jack O'Connor
5f2e855c29
allow reads of "free" variables to refer to a global declaration
...
Previously this worked if there was also a binding in the same scope as
the `global` declaration (probably almost always the case), but CPython
doesn't require this.
This change surfaced an error in an existing test, where a global
variable was only ever declared and bound using the `global` keyword,
and never mentioned explicitly in the global scope. @AlexWaygood
suggested we probably want to keep that requirement, so I'm adding an a
new test for that on top of fixing the failing test.
2025-07-16 08:30:42 -07:00
..
2025-07-15 21:31:53 +02:00
2025-06-20 18:23:54 -04:00
2025-06-20 18:23:54 -04:00
2025-05-17 08:27:32 -04:00
2025-05-06 20:11:25 -04:00
2025-07-15 21:31:53 +02:00
2025-05-06 20:11:25 -04:00
2025-07-15 21:31:53 +02:00
2025-05-03 19:49:15 +02:00
2025-07-15 21:31:53 +02:00
2025-07-15 21:31:53 +02:00
2025-06-26 14:29:33 +02:00
2025-07-15 16:56:54 -07:00
2025-07-04 11:52:52 -07:00
2025-05-09 13:40:51 -04:00
2025-06-12 07:44:42 -07:00
2025-06-27 19:37:16 +01:00
2025-05-29 23:17:18 +00:00
2025-06-29 10:46:33 +00:00
2025-07-15 21:31:53 +02:00
2025-07-15 16:56:54 -07:00
2025-05-09 17:39:15 +01:00
2025-05-03 19:49:15 +02:00
2025-07-15 21:31:53 +02:00
2025-05-03 19:49:15 +02:00
2025-07-16 08:30:42 -07:00
2025-05-03 19:49:15 +02:00
2025-07-15 18:14:46 +00:00
2025-05-22 21:37:03 -04:00
2025-06-24 18:39:02 +00:00
2025-05-03 19:49:15 +02:00
2025-06-27 19:37:16 +01:00
2025-07-15 21:31:53 +02:00
2025-07-15 21:31:53 +02:00
2025-07-11 09:44:54 -07:00
2025-05-06 20:11:25 -04:00
2025-05-26 21:34:47 +02:00
2025-05-03 19:49:15 +02:00
2025-07-15 21:31:53 +02:00
2025-05-13 21:27:48 +00:00
2025-05-09 13:40:51 -04:00
2025-06-12 07:44:42 -07:00
2025-07-05 19:34:23 +01:00
2025-07-15 21:31:53 +02:00
2025-05-03 19:49:15 +02:00
2025-06-24 20:27:37 +00:00
2025-06-24 18:02:05 -07:00
2025-05-03 19:49:15 +02:00
2025-05-03 19:49:15 +02:00
2025-05-03 19:49:15 +02:00
2025-05-06 12:37:10 +01:00
2025-05-06 20:11:25 -04:00
2025-05-26 20:40:16 +01:00
2025-06-03 09:59:43 -07:00
2025-06-20 10:38:17 +02:00
2025-05-19 16:36:49 +02:00
2025-05-09 13:40:51 -04:00
2025-07-07 12:28:32 +01:00
2025-06-26 12:24:40 +02:00
2025-06-26 12:24:40 +02:00
2025-05-03 19:49:15 +02:00
2025-05-03 19:49:15 +02:00
2025-07-04 11:52:52 -07:00
2025-06-24 18:02:05 -07:00
2025-07-15 12:47:19 +01:00
2025-06-24 18:02:05 -07:00
2025-06-27 15:29:04 -04:00
2025-06-26 12:24:40 +02:00