Well, actually, now that you mentioned it, maybe just putting:

True, False = 1,0

in the start of the script would be enough...



On 4/24/06, Don & Sue - pilger@canada.com <pilger@canada.com > wrote:
Fabio Zadrozny wrote:

> Actually, I think that putting the True/False to be recognized as
> globals in the preferences would be better...


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:

     True, False #@UndefinedVariable
except NameError:
     (True, False) = (1, 0)


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
pydev-code mailing list