sebdevine / implicit_globals

A Python decorator which allow runtime overrides of a function's global and default variables.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

when a default arg is a []

rbuckland opened this issue · comments

An issue was encountered when a default arg value was a list

def func(a=[]):
   ...

the base bug found is that the dict mixing default args and values had them swapped around.
The fix and a test case is added in the PR.

@sebdevine did you have a chance to look at this ?

commented

@rbuckland Hi ! sorry it seems i missed the first github alert, thx for taking the time to look at my small project, I'll have a look in the next days.