Re: [Pydev-code] Getting started with PyDev scripting
Brought to you by:
fabioz
From: Don & S. - <pi...@ca...> - 2006-04-24 15:20:55
|
Fabio Zadrozny wrote: > > Actually, I think that putting the True/False to be recognized as > globals in the preferences would be better... Hmmm... By this I think that you mean: Window -> Preferences -> Pydev Extensions -> Undefined and then in "Consider the following names as globals: ": "_, True, False" This certainly works but unless Pydev extensions makes this the default setting you are depending upon everybody updating this entry if they want to get rid of these error messages. Then, if they happen to be using Python 2.3 which does not define True and False, Pydev extensions would miss genuinely undefined True/False. Not a big deal, I suppose, but what do you think of using: try: True, False #@UndefinedVariable except NameError: (True, False) = (1, 0) Don. |