Re: [Pydev-code] Getting started with PyDev scripting
Brought to you by:
fabioz
From: Fabio Z. <fa...@gm...> - 2006-04-24 15:29:25
|
Well, actually, now that you mentioned it, maybe just putting: True, False =3D 1,0 in the start of the script would be enough... Cheers, Fabio On 4/24/06, Don & Sue - pi...@ca... <pi...@ca...> 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 #@UndefinedVariable > except NameError: > (True, False) =3D (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 Geronim= o > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > |