Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 1st, 2012  |  syntax: None  |  size: 0.26 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. why doesn't eclipse-python have magic refactor?
  2. #silly.py
  3.  
  4. import sys
  5.  
  6. if len(sys.argv) > 1:
  7.     thisNowExists = True
  8.  
  9. #1
  10.  
  11. try:
  12.     if thisNowExists:
  13.         print("this existed before")
  14. except NameError:
  15.     print("this _now_ exists")
  16.     thisNowExists = True