[issue5383] Allow intermixing of keyword arguments and vargarg arguments

2009-07-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Also, the new syntax breaks the symmetry between the function definition and the function call. In any case, the issue tracker is the wrong place for such discussions. This should be done on the python-ideas mailing list. -- nosy: +amaury.forgeot

[issue5383] Allow intermixing of keyword arguments and vargarg arguments

2009-02-27 Thread Ezio Melotti
Ezio Melotti added the comment: > xhtmlNode('div','Hello, world',id='sidebar') > ... but this would not have symmetry with the generated xhtml and > therefore complicates the code. The solution, in my opinion, is to > allow varargs to be intermixed with keyword args. The above real-world >

[issue5383] Allow intermixing of keyword arguments and vargarg arguments

2009-02-27 Thread David W. Lambert
David W. Lambert added the comment: I think you need this order preserving paradigm using python as is: def xhtmlNode(tag,*args): ... xhtmlNode('div', {'id':'sidebar'}, 'Hello world') Less work in xhtmlNode might offset the extra work in writing the function call. Oh well, I didn't rea

[issue5383] Allow intermixing of keyword arguments and vargarg arguments

2009-02-27 Thread David Kerkeslager
Changes by David Kerkeslager : -- components: +Interpreter Core ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5383] Allow intermixing of keyword arguments and vargarg arguments

2009-02-27 Thread David Kerkeslager
Changes by David Kerkeslager : -- type: -> feature request versions: +Python 3.0, Python 3.1 ___ Python tracker ___ ___ Python-bugs-li

[issue5383] Allow intermixing of keyword arguments and vargarg arguments

2009-02-27 Thread David Kerkeslager
New submission from David Kerkeslager : This problem arose in this thread: http://www.python-forum.org/pythonforum/viewtopic.php?f=2&t=11606 Basically, we have the following function which will generate an XHTML node: def xhtmlNode(tag, *content, **attr):... If we call: xhtmlNode('div',id='s