bpo-36052: Raise a SyntaxError when assigning a value to __debug__ with := (GH-11958)
Trying to assign a value to __debug__ using the assignment operator is supposed to fail, but a missing check for forbidden names when setting the context in the ast was preventing this behaviour.
S
Stéphane Wirtel committed
3ad91673057d410bf9f8c53df6bb8aa18c4b68ca
Parent: ea6207d
Committed by Pablo Galindo <Pablogsal@gmail.com>
on 2/21/2019, 10:11:53 AM