[Python-Dev] removing nested tuple function parameters

Nick Coghlan ncoghlan at gmail.com
Mon Sep 19 00:22:42 CEST 2005

Brett Cannon wrote:
> Is anyone truly attached to nested tuple function parameters; ``def
> fxn((a,b)): print a,b``?  At one of the PyCon sprints Guido seemed
> okay with just having them removed when Jeremy asked about ditching
> them thanks to the pain they caused in the AST branch.  I personally
> don't see them being overly useful thanks to assignment unpacking. 
> Plus I don't think they are used very much (gut feeling, though, and
> not based on any grepping).

The fixes needed to make them work properly didn't seem all that ugly to me. 
Also, if they weren't used in the stdlib, they wouldn't have caused us any 
grief on the AST branch ;)


Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia

More information about the Python-Dev mailing list