Using a decorator to *remove* parameters from a call

2009-04-13 Thread Michel Albert
A small foreword: This might look like a cherrypy-oriented post, and should therefore go to the cherrypy group, but if you read to the end, you'll see it's a more basic python problem, with cherrypy only as an example. ;) From the decorator PEP (318) I get it that you can /add/ parameters to a

Re: Using a decorator to *remove* parameters from a call

2009-04-13 Thread Aaron Brady
On Apr 13, 5:11 am, Michel Albert exh...@gmail.com wrote: A small foreword: This might look like a cherrypy-oriented post, and should therefore go to the cherrypy group, but if you read to the end, you'll see it's a more basic python problem, with cherrypy only as an example. ;) From the

Re: Using a decorator to *remove* parameters from a call

2009-04-13 Thread Jon Clements
On 13 Apr, 11:11, Michel Albert exh...@gmail.com wrote: A small foreword: This might look like a cherrypy-oriented post, and should therefore go to the cherrypy group, but if you read to the end, you'll see it's a more basic python problem, with cherrypy only as an example. ;) From the

Re: Using a decorator to *remove* parameters from a call

2009-04-13 Thread Michel Albert
On Apr 13, 12:52 pm, Jon Clements jon...@googlemail.com wrote: On 13 Apr, 11:11, Michel Albert exh...@gmail.com wrote: A small foreword: This might look like a cherrypy-oriented post, and should therefore go to the cherrypy group, but if you read to the end, you'll see it's a more basic

Re: Using a decorator to *remove* parameters from a call

2009-04-13 Thread Michel Albert
On Apr 13, 12:45 pm, Aaron Brady castiro...@gmail.com wrote: On Apr 13, 5:11 am, Michel Albert exh...@gmail.com wrote: A small foreword: This might look like a cherrypy-oriented post, and should therefore go to the cherrypy group, but if you read to the end, you'll see it's a more basic

Re: Using a decorator to *remove* parameters from a call

2009-04-13 Thread azeem
On Apr 13, 3:45 pm, Aaron Brady castiro...@gmail.com wrote: On Apr 13, 5:11 am, Michel Albert exh...@gmail.com wrote: A small foreword: This might look like a cherrypy-oriented post, and should therefore go to the cherrypy group, but if you read to the end, you'll see it's a more basic

Re: Using a decorator to *remove* parameters from a call

2009-04-13 Thread Aaron Brady
On Apr 13, 8:25 am, azeem quadri.az...@gmail.com wrote: On Apr 13, 3:45 pm, Aaron Brady castiro...@gmail.com wrote: snip @take_ab def f( c= 42, d= 'some' ):     print( 'in f, c= %r, d= %r'% ( c, d ) ) f( a= 'paramA', b= 'paramB', c= 'other number' ) /Output: aval 'paramA' and bval