Re: [Python-Dev] Use Python 3.0 syntax for except and raise?

2008-02-24 Thread Collin Winter
On Mon, Feb 18, 2008 at 3:44 PM, Guido van Rossum [EMAIL PROTECTED] wrote: I don't know if you're done with this already, but there's a lot of experience suggesting such sweeps are quite dangerous. In the past, whenever a sweep across the entire stdlib was done, it's always caused a few

Re: [Python-Dev] Use Python 3.0 syntax for except and raise?

2008-02-18 Thread Guido van Rossum
I don't know if you're done with this already, but there's a lot of experience suggesting such sweeps are quite dangerous. In the past, whenever a sweep across the entire stdlib was done, it's always caused a few breakages, some of which didn't get caught until the next release. Things to worry

[Python-Dev] Use Python 3.0 syntax for except and raise?

2008-02-17 Thread Christian Heimes
Good evening everybody! I like to run the 2to3 tool with raise and except fixers over the 2.6 sources. The raise fixer changes raise Exception, msg to raise Exception(msg) and the except fixer replaces except Exception, err by except Exception as err. In my humble opinion the Python stdlib should

Re: [Python-Dev] Use Python 3.0 syntax for except and raise?

2008-02-17 Thread Jeffrey Yasskin
Sounds good to me. Along those lines, shall we work on fixing warnings that -3 raises in the regression test suite? On Feb 17, 2008 8:57 AM, Christian Heimes [EMAIL PROTECTED] wrote: Good evening everybody! I like to run the 2to3 tool with raise and except fixers over the 2.6 sources. The

Re: [Python-Dev] Use Python 3.0 syntax for except and raise?

2008-02-17 Thread Georg Brandl
Christian Heimes schrieb: Good evening everybody! I like to run the 2to3 tool with raise and except fixers over the 2.6 sources. The raise fixer changes raise Exception, msg to raise Exception(msg) and the except fixer replaces except Exception, err by except Exception as err. In my humble

Re: [Python-Dev] Use Python 3.0 syntax for except and raise?

2008-02-17 Thread Raymond Hettinger
[Christian Heimes] I like to run the 2to3 tool with raise and except fixers over the 2.6 sources. The raise fixer changes raise Exception, msg to raise Exception(msg) and the except fixer replaces except Exception, err by except Exception as err. +1 The new syntax so much better that we

Re: [Python-Dev] Use Python 3.0 syntax for except and raise?

2008-02-17 Thread Mark Dickinson
On Feb 17, 2008 2:42 PM, Raymond Hettinger [EMAIL PROTECTED] wrote: There are some modules like Decimal that make a promise to run on earlier versions of Python. In those cases only the first change (backwards compatible) should be made. Our 5,000 line Decimal package will need to wait for

Re: [Python-Dev] Use Python 3.0 syntax for except and raise?

2008-02-17 Thread Mark Dickinson
On Feb 17, 2:42 pm, Raymond Hettinger [EMAIL PROTECTED] wrote: There are some modules like Decimal that make a promise to run on earlier versions of Python.  In those cases only the first change (backwards compatible) should be made.  Our 5,000 line Decimal package will need to wait for 3.0