RE: [Python-Dev] Re: new syntax for wrapping (PEP 318)

From: Barry Warsaw
On Thu, 2004-02-26 at 02:43, Josiah Carlson wrote:
You (and others) have convinced me. There exists a reasonably large number of use-cases, even if I don't have one. The real question is whether everyone can decide on a good syntax.
We won't, so if the PEP's accepted, the BDFL will do it for us. That's why we keep him around <wink>.
The PEP doesn't specify where discussion should take place, but the author hasn't participated here. At some point, he (or someone else) is going to have to put the PEP forward for acceptance. At the moment, the PEP appears fairly strongly in favour of "as" and against the use of brackets. But the author admits that he has not got the expertise to provide an implementation. So where do we go from here? Is anyone willing to modify MWH's patch to implement the "as" syntax, resulting in a PEP with associated implementation which can be submitted for approval? Should the PEP be changed to propose a syntax that matches the existing patch? I've copied the PEP author, in the hope that he can share his views. Paul.

"Moore, Paul" <Paul.Moore@atosorigin.com> writes:
So where do we go from here? Is anyone willing to modify MWH's patch to implement the "as" syntax, resulting in a PEP with associated implementation which can be submitted for approval? Should the PEP be changed to propose a syntax that matches the existing patch?
If Guido is in faviour of the 'as' variant, I can do it. There's more to it than that, though, as PEP 306 explains. Bob Ippolito said he would help with what remains. Cheers, mwh -- Very clever implementation techniques are required to implement this insanity correctly and usefully, not to mention that code written with this feature used and abused east and west is exceptionally exciting to debug. -- Erik Naggum on Algol-style "call-by-name"

On Thu, 2004-02-26 at 08:48, Moore, Paul wrote:
The PEP doesn't specify where discussion should take place, but the author hasn't participated here. At some point, he (or someone else) is going to have to put the PEP forward for acceptance.
At the moment, the PEP appears fairly strongly in favour of "as" and against the use of brackets. But the author admits that he has not got the expertise to provide an implementation.
At this point, I think the PEP should try to outline the various syntactic options in a way that the BDFL can look at them and make a decision. I think it's okay that the implementation picks one of those -- I don't think we necessarily need implementations of every syntax option right now. The existing one allows people to play with the semantics which should be good enough to decide whether we want new syntax to support this at all. -Barry
participants (3)
-
Barry Warsaw
-
Michael Hudson
-
Moore, Paul