9 Dec
2000
9 Dec
'00
7:35 p.m.
On Sat, 9 Dec 2000, Andreas Jung wrote:
Inside a product I tried to replace the following function
def myfunc(self,arg1='',arg2='',REQUEST=None):
by
def myfunc(self,*args,**kw):
to get a more generic interface. However in every case "args" and "kw" are empty when I output their contents inside the function. Bug or feature ?
Zope will only match up arguments from a request with your function arguments when you are specific. It won't just shove everything it can into *args or **kw. -Michel