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
Casting one element to a list #31
Comments
|
Thank you for suggestion. But it seem that in my case the solution does not fit perfectly. Example config : I get things after words 'trafaret instance' and evaluate it with environment containing 'trafaret' module. Evaluation give me a trafaret object wich I use for data validation. I still can't understand what to write after words 'trafaret instance' to get a trafaret which convert individual value to List. |
Trafaret can not contain all trafarets that you will ever need, so it seems correct way is to create custom one and populate it to your environment to evaluation. |
Probably you are right. |
Sorry for disturbing again.
I wonder is it possible to convet individually supplied value to a list.
I want to do something like:
t = trafaret.List(trafaret.String())
t(['a','b'])
It will be amazingly cosily to pass FieldStorage.getvalue() directly to trafaret.
The text was updated successfully, but these errors were encountered: