←back to thread

620 points tambourine_man | 1 comments | | HN request time: 0.209s | source
Show context
dec0dedab0de ◴[] No.43752018[source]
Seems pretty neat so far, but I don't understand the motivation behind not allowing you to call str(template) and get the template as a normal string. I could imagine it being very useful to be able to gather up the template itself in a string to do stringy things with.

The only reason I could imagine, is if you are trying to protect developers from themselves, which kinda goes against the "we're all adults here" mentality that makes Python so great. I suppose it's easy enough to add that functionality, but come on.

replies(1): >>43752172 #
1. gaogao ◴[] No.43752172[source]
The traditional way at the megacorp for something like that is unsafe_str_DO_NOT_USE_OR_YOU_WILL_BE_FIRED(template)