[Python-3000] PEP 3113 (Removal of Tuple Parameter Unpacking)
Guido van Rossum
guido at python.org
Sat Mar 3 02:28:40 CET 2007
On 3/2/07, Collin Winter <collinw at gmail.com> wrote:
> On 3/2/07, Guido van Rossum <guido at python.org> wrote:
> > Has anyone tried to create a 2to3 transformer for this? I think it
> > should be possible, although there are a few warts (like inserting the
> > new code after the docstring, and how to come up with names for the
> > anonymous tuple(s), and having to do it for potentially any number of
> > arguments. Still, it would require no dataflow analysis, and the
> > except transformer already has a similar statement insertion. So I
> > think it's doable.
> I can take a crack at this. I had to do similar things for the raise
> fixer before switching it over to use with_traceback().
That would be great! You may end up adding some generally useful code
for inserting statements into a block...
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-3000