You're welcome to give it a try.

** Changed in: pyflakes
     Assignee: (unassigned) => David (david-szotten)

-- 
You received this bug notification because you are a member of Divmod-
dev, which is the registrant for Pyflakes.
https://bugs.launchpad.net/bugs/885140

Title:
  using del in if clause confuses pyflakes

Status in Pyflakes:
  New

Bug description:
  code:

  ----------------------------------------
  test = True
  if False:
      del(test)
  assert(test)
  ----------------------------------------

  pyflakes complains:
  [...].py:4: undefined name 'test'

  
  i guess this may be too hard for a static analysier, in which case, how about

  ----------------------------------------
  test = True
  if False:
      del(test)
  else:
      assert(test)
  ----------------------------------------

  where the usage is in a different else branch to the del

  output:
  [...].py:5: undefined name 'test'

To manage notifications about this bug go to:
https://bugs.launchpad.net/pyflakes/+bug/885140/+subscriptions

-- 
Mailing list: https://launchpad.net/~divmod-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~divmod-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to