[Zope-dev] Re: Acquisition in Python2.5

Tres Seaver tseaver at palladion.com
Mon Jan 21 14:33:31 EST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Nikhil N wrote:
> Hello all ,
> 
> I am stuck with an error in Acquisition while trying to make
> Zope2 work in Python2.5. I reduced the errors obtained
> to those as follows (its not exactly as in the code, but a
> minimum set which shows the problem).
> 
>  from ExtensionClass import Base
>  import Acquisition
>  class B(Base):
>     color='red'
>  class A(Acquisition.Implicit):
>     pass
>  b=B()
>  c = A()
>  b.c = c
>  print b.c == c
> 
> When the last print statement should return true (2.4) ,in
> 2.5 its returning false. Please give some hint on this.

Does 2.5 define new "rich comparison" slots, or something?


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHlPOL+gerLs4ltQ4RAqdSAKDZJOMl0yHnIm68jXAl8PwUoy4iogCfU4OD
owvenStnH4VgUeNvtPKQm5Y=
=4bXw
-----END PGP SIGNATURE-----



More information about the Zope-Dev mailing list