True, False = 1,0
in the start of the script would be enough...
Cheers,
Fabio
On 4/24/06, Don & Sue - [EMAIL PROTECTED] <[EMAIL PROTECTED]
> wrote:
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 [EMAIL PROTECTED]
except NameError:
(True, False) = (1, 0)
Don.
-------------------------------------------------------
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
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
pydev-code mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-code
