Re: ZODB and Python 2.5
Jean-Paul Calderone schrieb: Python 2.5 made quite a changes which were not backwards compatible, though. I think for the case of Python 2.4 - Python 2.5 transition, quite a few apps will be broken, many of them in relatively subtle ways (for example, they may have been handling OSError instead of WindowsError That shouldn't cause a problem, though: OSError is a base class of WindowsError, so if handled OSError, the same exception handlers will get invoked. The problem occurs when they had been handling WindowsError, and looked at errno, treating it as a windows error code: errno is now a real POSIX error number (with the same values that the errno module uses), and the windows error number is stored in an additional attribute. or it might define a slightly buggy but previously working __hash__ which returns the id() of an object That shouldn't cause problems, either. It did cause problems in the beta release, but IIRC, somebody solved this before the release... it might have relied on the atime and mtime fields of a stat structure being integers rather than floats). This was actually changed in 2.3, not in 2.5; 2.5 just changed the value of os.stat_float_times. Advance warning about this change was given for quite some time (but certainly, most people have ignored it). Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list
Re: ZODB and Python 2.5
Robert Kern wrote: I would suggest, in order: 1) Look on the relevant mailing list for people talking about using ZODB with Python 2.5. Been there, didn't find anything. Except that recently released versions of Zope (2.9.5 and 2.10.0) aren't compatible with Python 2.5. [Being pedantic 2.9.5 doesn't work under Python 2.5, 2.10.0 is merely unsupported.] 2) Just try it. Install Python 2.5 alongside 2.4, install ZODB, run the test suite. Now if ZODB had been pure Python, or I was using a Unix(ish) platform I would have tried that. Getting set up to compile C extensions under Windows is a bit too much hassle. I can wait ;-). -- http://mail.python.org/mailman/listinfo/python-list
ZODB and Python 2.5
I'm going to have to delay upgrading to Python 2.5 until all the libraries I use support it. One key library for me is ZODB. I've Googled and can't find any information on the developers' plans. Does anyone have any information that might help? - Andrew -- http://mail.python.org/mailman/listinfo/python-list
Re: ZODB and Python 2.5
Andrew McLean wrote: I'm going to have to delay upgrading to Python 2.5 until all the libraries I use support it. One key library for me is ZODB. I've Googled and can't find any information on the developers' plans. Does anyone have any information that might help? Since the Python development team tries hard to maintain backwards compatibility, the vast majority of Python packages will automatically support the newest release of Python in that they will work just dandy. Developers don't really have plans to do that kind of support since it just happens. If you mean something else by support (like making use of new language or standard library features), then what do you mean? I would suggest, in order: 1) Look on the relevant mailing list for people talking about using ZODB with Python 2.5. 2) Just try it. Install Python 2.5 alongside 2.4, install ZODB, run the test suite. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco -- http://mail.python.org/mailman/listinfo/python-list
Re: ZODB and Python 2.5
On Fri, 20 Oct 2006 14:04:46 -0500, Robert Kern [EMAIL PROTECTED] wrote: Andrew McLean wrote: I'm going to have to delay upgrading to Python 2.5 until all the libraries I use support it. One key library for me is ZODB. I've Googled and can't find any information on the developers' plans. Does anyone have any information that might help? Since the Python development team tries hard to maintain backwards compatibility, the vast majority of Python packages will automatically support the newest release of Python in that they will work just dandy. Developers don't really have plans to do that kind of support since it just happens. Python 2.5 made quite a changes which were not backwards compatible, though. I think for the case of Python 2.4 - Python 2.5 transition, quite a few apps will be broken, many of them in relatively subtle ways (for example, they may have been handling OSError instead of WindowsError, or they may have relied on exceptions being classic classes, or it might not be able to handle NullImporter, or it might define a slightly buggy but previously working __hash__ which returns the id() of an object or it may be unable to handle the unconditional stderr writes that the compiler does when it encounters `with' used as a variable or it might have relied on top-level code having a name of ? rather than the new module or it might have relied on the atime and mtime fields of a stat structure being integers rather than floats). If you mean something else by support (like making use of new language or standard library features), then what do you mean? I would suggest, in order: 1) Look on the relevant mailing list for people talking about using ZODB with Python 2.5. 2) Just try it. Install Python 2.5 alongside 2.4, install ZODB, run the test suite. These are pretty good suggestions, though, particularly the latter. Jean-Paul -- http://mail.python.org/mailman/listinfo/python-list