Author terry.reedy
Recipients amaury.forgeotdarc, jhylton, terry.reedy
Date 2008-12-12.23:03:43
SpamBayes Score 6.26322e-08
Marked as misclassified No
Message-id <1229123025.48.0.44706758394.issue4617@psf.upfronthosting.co.za>
In-reply-to
Content
-1 as I understand the proposal.  Your code is bugged and should fail as
soon as possible.

If I understand correctly, you agree that the SyntaxError is correct as
the language is currently defined, but you want the definition changed.
It is not clear if you only want implicit deletes at the end of except
clauses to work or if you only want explicit deletes to work.

If the latter, you want

def f():
  e = 1
  del e
  def g(): print(e)
  return g

to compile. I would not.  Your reason "After all, the "variable
referenced" has no value before it is set," (duh, right) makes no sense
to me in this context.  g must have a valid value of e to run.  So you
seem to be suggesting that detection of buggy code should be delayed.
History
Date User Action Args
2008-12-12 23:03:45terry.reedysetrecipients: + terry.reedy, jhylton, amaury.forgeotdarc
2008-12-12 23:03:45terry.reedysetmessageid: <1229123025.48.0.44706758394.issue4617@psf.upfronthosting.co.za>
2008-12-12 23:03:43terry.reedylinkissue4617 messages
2008-12-12 23:03:43terry.reedycreate