Re: [Python-Dev] PEP 457: Syntax For Positional-Only Parameters

2013-10-09 Thread Andrea Corbellini
Sorry if I meddle, but wouldn't be better to include a module in the standard library that provides functions and classes to help parsing *args and **kwargs? This way you can avoid defining a new syntax, new builtin objects and so on. ___ Python-Dev mail

Re: [Python-Dev] Add a "transformdict" to collections

2013-09-10 Thread Andrea Corbellini
On Tue, Sep 10, 2013 at 11:28 AM, Antoine Pitrou wrote: > Therefore I propose adding the general pattern. Simple example: > >>>> d = transformdict(str.lower) >>>> d['Foo'] = 5 >>>> d['foo'] >5 >>>> d['FOO'] >5 >>>> list(d) >['Foo'] > > (case-insensitive but case-pre