Hello! I did a quick test on how Zope would run on Python 2.1. I didn't do extensive tests, but at first glance it works without a problem. I've got some deprecation warnings: /usr/local/Zope/ZServer/medusa/asynchat.py:293: DeprecationWarning: the regex module is deprecated; please use the re module import regex /usr/local/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning) /usr/local/Zope/ZServer/medusa/asynchat.py:293: DeprecationWarning: the regex module is deprecated; please use the re module import regex /usr/local/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning) Oleg. ---- Oleg Broytmann http://phd.pp.ru/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
Take the risk of search-replace all occurances of "regex" with "re". "regex" is a pretty "odd" word so it's unlikely to find it inside other words. Let us know if that worked.
-----Message d'origine----- De : zope-admin@zope.org [mailto:zope-admin@zope.org]De la part de Oleg Broytmann Envoye : vendredi 20 avril 2001 11:14 A : Zope Mailing List Objet : [Zope] Zope on Python 2.1
Hello!
I did a quick test on how Zope would run on Python 2.1. I didn't do extensive tests, but at first glance it works without a problem. I've got some deprecation warnings:
/usr/local/Zope/ZServer/medusa/asynchat.py:293: DeprecationWarning: the regex module is deprecated; please use the re module import regex /usr/local/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning) /usr/local/Zope/ZServer/medusa/asynchat.py:293: DeprecationWarning: the regex module is deprecated; please use the re module import regex /usr/local/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning)
Oleg. ---- Oleg Broytmann http://phd.pp.ru/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Hi! Thank you. But it was only an information message! I didn't ask for help :))) I only wanted to let people to know that Zope is running on Python 2.1. I won't change Zope myself for Python 2.1 - Python 2.1 has many interesting capabilities, and DC people already announced that they will produce special version for python 2.1 (probably Zope 2.4). I cannot speak for them, but I think the most important things are Unicode and function attributes. Function attributes allow one to mark a function with user-defined attributes. Zope can use this in a number of ways. Mark a function as "publishable" (instead of abusing docstrings); assign roles to the function... etc. On Fri, 20 Apr 2001, Peter Bengtsson wrote:
Take the risk of search-replace all occurances of "regex" with "re". "regex" is a pretty "odd" word so it's unlikely to find it inside other words. Let us know if that worked.
-----Message d'origine----- De : zope-admin@zope.org [mailto:zope-admin@zope.org]De la part de Oleg Broytmann Envoye : vendredi 20 avril 2001 11:14 A : Zope Mailing List Objet : [Zope] Zope on Python 2.1
Hello!
I did a quick test on how Zope would run on Python 2.1. I didn't do extensive tests, but at first glance it works without a problem. I've got some deprecation warnings:
/usr/local/Zope/ZServer/medusa/asynchat.py:293: DeprecationWarning: the regex module is deprecated; please use the re module import regex /usr/local/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning) /usr/local/Zope/ZServer/medusa/asynchat.py:293: DeprecationWarning: the regex module is deprecated; please use the re module import regex /usr/local/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning)
Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
Yup. See http://dev.zope.org/Wikis/DevSite/Projects/SupportPython21/FrontPage for the things that need to be done to the codebase for Python 2.1. ----- Original Message ----- From: "Oleg Broytmann" <phd@phd.fep.ru> To: "Peter Bengtsson" <peter@grenna.net> Cc: <zope@zope.org> Sent: Friday, April 20, 2001 5:48 AM Subject: RE: [Zope] Zope on Python 2.1
Hi!
Thank you. But it was only an information message! I didn't ask for help :))) I only wanted to let people to know that Zope is running on Python 2.1. I won't change Zope myself for Python 2.1 - Python 2.1 has many interesting capabilities, and DC people already announced that they will produce special version for python 2.1 (probably Zope 2.4). I cannot speak for them, but I think the most important things are Unicode and function attributes. Function attributes allow one to mark a function with user-defined attributes. Zope can use this in a number of ways. Mark a function as "publishable" (instead of abusing docstrings); assign roles to the function... etc.
On Fri, 20 Apr 2001, Peter Bengtsson wrote:
Take the risk of search-replace all occurances of "regex" with "re". "regex" is a pretty "odd" word so it's unlikely to find it inside other words. Let us know if that worked.
-----Message d'origine----- De : zope-admin@zope.org [mailto:zope-admin@zope.org]De la part de Oleg Broytmann Envoye : vendredi 20 avril 2001 11:14 A : Zope Mailing List Objet : [Zope] Zope on Python 2.1
Hello!
I did a quick test on how Zope would run on Python 2.1. I didn't do extensive tests, but at first glance it works without a problem. I've got some deprecation warnings:
/usr/local/Zope/ZServer/medusa/asynchat.py:293: DeprecationWarning: the regex module is deprecated; please use the re module import regex /usr/local/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning) /usr/local/Zope/ZServer/medusa/asynchat.py:293: DeprecationWarning: the regex module is deprecated; please use the re module import regex /usr/local/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning)
Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Hi, this is only in ansynchat.py, I replaced it once and it works since then without problems. However I thought about replacing the whole function where it gets used with one of my first C extensions if I get so far ;) Regards Tino --On Freitag, 20. April 2001 11:41 +0200 Peter Bengtsson <peter@grenna.net> wrote:
Take the risk of search-replace all occurances of "regex" with "re". "regex" is a pretty "odd" word so it's unlikely to find it inside other words. Let us know if that worked.
-----Message d'origine----- De : zope-admin@zope.org [mailto:zope-admin@zope.org]De la part de Oleg Broytmann Envoye : vendredi 20 avril 2001 11:14 A : Zope Mailing List Objet : [Zope] Zope on Python 2.1
Hello!
I did a quick test on how Zope would run on Python 2.1. I didn't do extensive tests, but at first glance it works without a problem. I've got some deprecation warnings:
/usr/local/Zope/ZServer/medusa/asynchat.py:293: DeprecationWarning: the regex module is deprecated; please use the re module import regex /usr/local/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning) /usr/local/Zope/ZServer/medusa/asynchat.py:293: DeprecationWarning: the regex module is deprecated; please use the re module import regex /usr/local/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning)
Oleg. ---- Oleg Broytmann http://phd.pp.ru/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
On Fri, Apr 20, 2001 at 11:41:46AM +0200, Peter Bengtsson wrote:
Take the risk of search-replace all occurances of "regex" with "re". "regex" is a pretty "odd" word so it's unlikely to find it inside other words.
No need to. Because Zope 2.4 will require Python 2.1, Andreas Jung is already hard at work replacing all regex and ts_regex usage with re. This is not as simple as it looks; take a look at the recent acrives of Zope-Checkins starting at: http://lists.zope.org/pipermail/zope-checkins/2001-April/author.html#5992 -- Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ ---------------------------------------------
You can't switch from regex to re by just replacing regex by re. Both modules use different notations for regular expressions and have a *different* API. Stay tuned until Zope 2.4 - this will be regex/regsub free. I am currently working on this stuff. Andreas Jung Digitial Creations ----- Original Message ----- From: "Peter Bengtsson" <peter@grenna.net> To: <phd@phd.fep.ru> Cc: <zope@zope.org> Sent: Friday, April 20, 2001 5:41 AM Subject: RE: [Zope] Zope on Python 2.1
Take the risk of search-replace all occurances of "regex" with "re". "regex" is a pretty "odd" word so it's unlikely to find it inside other words. Let us know if that worked.
-----Message d'origine----- De : zope-admin@zope.org [mailto:zope-admin@zope.org]De la part de Oleg Broytmann Envoye : vendredi 20 avril 2001 11:14 A : Zope Mailing List Objet : [Zope] Zope on Python 2.1
Hello!
I did a quick test on how Zope would run on Python 2.1. I didn't do extensive tests, but at first glance it works without a problem. I've got some deprecation warnings:
/usr/local/Zope/ZServer/medusa/asynchat.py:293: DeprecationWarning: the regex module is deprecated; please use the re module import regex /usr/local/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning) /usr/local/Zope/ZServer/medusa/asynchat.py:293: DeprecationWarning: the regex module is deprecated; please use the re module import regex /usr/local/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning)
Oleg. ---- Oleg Broytmann http://phd.pp.ru/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (6)
-
Andreas Jung -
Chris McDonough -
Martijn Pieters -
Oleg Broytmann -
Peter Bengtsson -
Tino Wildenhain