Should I switch to Python 1.5.2?
I've been using Python 2.0 with Zope 2.3.0. It generally works well, but lately I've run into problems using string.split() and now I notice that httplib encounters a similar ("loop over non-sequence") problem. I'm thinking of chucking it and going back to Python 1.5.2, but I found that it does not compile out of the box under SPARC Solaris 2.8. # ./python /usr/local/lib/python1.5/compileall.py 'import site' failed; use -v for traceback Traceback (innermost last): File "/usr/local/lib/python1.5/compileall.py", line 128, in ? sys.exit(not main()) File "/usr/local/lib/python1.5/compileall.py", line 121, in main success = compile_path() File "/usr/local/lib/python1.5/compileall.py", line 85, in compile_path if (not dir or dir == os.curdir) and skip_curdir: AttributeError: curdir (It doesn't know about os.curdir or os.getcwd().) So...before I try beating 1.5.2 into submission under Solaris, I want to know if there's an update of Zope in the near future that fixes the Python 2.0 compatibilities. Thank you. --kyler
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Kyler B. Laird Sent: Friday, February 09, 2001 12:32 PM To: zope@zope.org Cc: cameron@lairds.com Subject: [Zope] Should I switch to Python 1.5.2?
I've been using Python 2.0 with Zope 2.3.0. It generally works well, but lately I've run into problems using string.split() and now I notice that httplib encounters a similar ("loop over non-sequence") problem.
I've been using 2.0 as well and other than this problem, it has been working fine. I found that in Python Scripts (and maybe other places?) you cannot do 'import string', but you *can* do 'from string import split' (or whatever other functions you want). DC is aware of it, so I expect it will be fixed as they start working on Zope 2.4. _______________________ Ron Bickers Logic Etc, Inc. rbickers@logicetc.com
On Saturday 10 February 2001 04:32, Kyler B. Laird wrote:
I've been using Python 2.0 with Zope 2.3.0. It generally works well, but lately I've run into problems using string.split() and now I notice that httplib encounters a similar ("loop over non-sequence") problem.
I do recall one of the warnings on Python 2.0 is that it is less tolerant (esp in the socket libs) of not properly wrapping lists. In some cases you could pass func( foo, bar ) when it should have been func( (foo, bar) ). Perhaps you should check if this is the case for the line causing errors, because that is the error you would be likely to see.
So...before I try beating 1.5.2 into submission under Solaris, I want to know if there's an update of Zope in the near future that fixes the Python 2.0 compatibilities.
Very odd. I had no problems compiling Python 1.5.2 under Solaris 2.7. However, I never used a python script to build it. Just "configure" (with some switches), and "make".
Thank you.
--kyler
Have a better one, Curtis Maloney
participants (3)
-
Curtis Maloney -
Kyler B. Laird -
Ron Bickers