durusmail: quixote-users: Quixote, Zope, Python2.1
Quixote, Zope, Python2.1
2003-02-08
2003-02-09
2003-02-09
2003-02-11
ANN: Generating REST-ful Quixote applications
2003-02-12
2003-02-13
2003-02-23
2003-02-24
2003-02-26
2003-03-05
Quixote, Zope, Python2.1
Tom Jenkins
2003-02-11
Greg Ward wrote:
> On 09 February 2003, Jeff Bauer said:
>
>>I'm not sure if my singular experience should be enough bias
>>Quixote towards Python 2.1 compatibility, especially if 2.2
>>offers substantial convenience to the Quixote team.
>
>
> I think maintaining 2.1 compatibility is worth it, simply because of the
> installed base of Zope servers.  I'll do my bit by reverting True/False
> to 1/0 now.
>
>

We run both 2.1 and 2.2 on our production servers.  2.1 is the default
python which runs our zeos. we just call python2.2 when/if we need 2.2
functionality.

re True/False: would it be worthwile to do what i see in other modules
and try a true assignment in a try block?
try:
    a = True
except:
    # 2.1 or below
    False = 0
    True = 1
del a

though for 0/1 i guess its readable enough and keeps from doing one
extra lookup.

Tom


reply