Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tolist attempts to split default value. #55

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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