Skip to content

Conversation

@mjdorma
Copy link
Contributor

@mjdorma mjdorma commented Aug 11, 2015

When begin.conver(_automatic=True) and our default value is is set, tolist will fail if that argument was not provided. i.e. def foo(moo=[]): pass decorated will fail with an attribute error 'list' object has no attribute split. This change compares the input value with the original value to see if it is different. TODO: probably best to check type?

…olist will fail if that argument was not provided. i.e. def foo(moo=[]): pass decorated will fail with an attribute error 'list' object has no attribute split. This change compares the input value with the original value to see if it is different. TODO: probably best to check type?
@evanunderscore
Copy link

Is the problem when the value is not provided or when it is? It looks like convert is already ignoring default arguments, and I only see the error when I call foo([]). If that's the case, this is just a symptom of #57.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants