Skip to content

Conversation

@mattupstate
Copy link
Contributor

Thought this would be useful for some people.

My use case stems from the fact that its not trivial to generate a Python file with a deployment tool like Chef. But it is trivial to render a JSON file.

@ericmanlol
Copy link

very interesting matt!

@ghost
Copy link

ghost commented Aug 16, 2013

Nice idea!
Why don't you add error handling for not valid JSON? And what about loading from a string?

@untitaker
Copy link
Contributor

IMO the default exception messages are good enough, even for IOError.

@untitaker
Copy link
Contributor

But it looks cool to me, +1.

@mattupstate
Copy link
Contributor Author

@Gioi I thought mimicking the same behavior as from_pyfile would be appropriate

@DasIch DasIch merged commit b290bf4 into pallets:master Feb 12, 2014
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants