Re: htmlescape: inconsistency between _py_htmltext and _c_htmltext
Evan Laforge <[email protected]>
| Newsgroups | gmane.comp.web.quixote.user |
|---|---|
| Message-ID | <[email protected]> |
Speaking of htmltext and subclassing, a while back I experimented with making htmltext a subclass of str. I seem to recall it worked fine and eliminated my problems of forgetting to wrap string literals with str() in html templates. I forget the rationale behind not making htmltext a subclass of str, but in case it was that builtin-type subclassing is new and scary, maybe it's not so new anymore?