If so, this does not seem very pythonic to me. I am not necessarily right, since I'm not that much of a hacker, but could it not be done by defining the function like this instead? :
In my tests it works fine with 0, 1 or more paramters, and you don't even need to check if paramdict is empty, as it will automagically generate an empty dict.
Sorry to be spamming this bug, but it seems to me that the fixed branch still requires you to pass a dictionary as an option, as in
db.execute_ view("view_ name"," design_ doc",{ 'group':True })
If so, this does not seem very pythonic to me. I am not necessarily right, since I'm not that much of a hacker, but could it not be done by defining the function like this instead? :
def execute_view(self, view_name, design_ doc=DEFAULT_ DESIGN_ DOCUMENT, **paramdict):
In my tests it works fine with 0, 1 or more paramters, and you don't even need to check if paramdict is empty, as it will automagically generate an empty dict.