RE: [Zope-ZEO] How to get rid of the cPickle and asyncore depende ncy hassles ncy hassles
[cc to zope-dev.]
Ive been using Zope only with Python 2.0 recently.
That's great to hear. I'm frankly a bit surprised that this works.
2.0 is a suprisingly conservative upgrade from 1.5.2
Did you have to make many changes to Zope?
All my critical patches are already merged into the Zope cvs, or the Python cvs ;-) There are also some non-critical bug fixes related to Unicode awareness, bundled up with my other Unicode-In-Zope patches at http://www.zope.org/Members/htrd/wstring. These mostly relate to the fact that Zope does not defend against objects that raise exceptions when converted to a string using str() - and Unicode objects do this frequently. (At the moment these extra patches are not 1.5.2 compatible... Ill work on this if DC feel the need for a transition period during which Zope supports both 1.5.2 and 2.0.)
I heard that ExtensionClass didn't work with Python 2.0.
It looks like a little work is needed to support 2.0's garbage collection of cyclic trash - but thats not enabled by default. Apart from that, everything works very well. (In some ways, better than 1.5.2)
[Jim]
I heard that ExtensionClass didn't work with Python 2.0.
[Toby]
It looks like a little work is needed to support 2.0's garbage collection of cyclic trash - but thats not enabled by default. Apart from that, everything works very well. (In some ways, better than 1.5.2)
Which 2.0 are you using? GC has been enabled in the recent betas and will almost certainly be enabled in the release. If ExtensionClass needs work to play nicely with GC then I would be happy to take a look at it. Where can I get the latest version? Neil
[Toby]
It looks like a little work is needed to support 2.0's garbage collection of cyclic trash
[Neil]
Which 2.0 are you using?
I was basing my comments on my last attempt in mid July. Ive just tried enabling WITH_CYCLE_GC again (and with the patch below) and it does all seem to be working happily. Ill make further tests next week. Index: z2.py =================================================================== RCS file: /home/cvs/development/external/Zope2/z2.py,v retrieving revision 1.4 retrieving revision 1.7 diff -c -4 -r1.4 -r1.7 *************** *** 430,443 **** if v=='-': v='' DNS_IP=v elif o=='-u': UID=v elif o=='-D': os.environ['Z_DEBUG_MODE']='1' DEBUG=1 elif o=='-S': sys.ZMANAGED=1 elif o=='-X': --- 429,448 ---- if v=='-': v='' DNS_IP=v elif o=='-u': UID=v elif o=='-D': + try: + import gc + except ImportError: + pass + else: + gc.set_debug(gc.DEBUG_LEAK) os.environ['Z_DEBUG_MODE']='1' DEBUG=1 elif o=='-S': sys.ZMANAGED=1 elif o=='-X': Toby Dickenson tdickenson@geminidataloggers.com
Toby Dickenson wrote:
[cc to zope-dev.]
Ive been using Zope only with Python 2.0 recently.
That's great to hear. I'm frankly a bit surprised that this works.
2.0 is a suprisingly conservative upgrade from 1.5.2
Did you have to make many changes to Zope?
All my critical patches are already merged into the Zope cvs, or the Python cvs ;-)
There are also some non-critical bug fixes related to Unicode awareness, bundled up with my other Unicode-In-Zope patches at http://www.zope.org/Members/htrd/wstring. These mostly relate to the fact that Zope does not defend against objects that raise exceptions when converted to a string using str() - and Unicode objects do this frequently.
(At the moment these extra patches are not 1.5.2 compatible... Ill work on this if DC feel the need for a transition period during which Zope supports both 1.5.2 and 2.0.)
I heard that ExtensionClass didn't work with Python 2.0.
It looks like a little work is needed to support 2.0's garbage collection of cyclic trash - but thats not enabled by default. Apart from that, everything works very well. (In some ways, better than 1.5.2)
Wow! That's swesome. I'll get back to you on some of this. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats.
On Fri, 6 Oct 2000 15:06:59 +0100 , Toby Dickenson <tdickenson@geminidataloggers.com> wrote:
All my critical patches are already merged into the Zope cvs
Arh no - I lied. http://classic.zope.org:8080/Collector/1442/view is still outstanding. Not strictly a 2.0 bug; it applies to 1.5.2 too, but the Py_TRACE_REFS debugging option is more likely to be turned on by default in 2.0 Toby Dickenson tdickenson@geminidataloggers.com
participants (4)
-
Jim Fulton -
Neil Schemenauer -
Toby Dickenson -
Toby Dickenson