#9483: Title template filter is broken ---------------------------------------------+------------------------------ Reporter: hdevries | Owner: hdevries Status: assigned | Milestone: post-1.0 Component: Template system | Version: SVN Resolution: | Keywords: title template filter Stage: Design decision needed | Has_patch: 1 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | ---------------------------------------------+------------------------------ Changes (by SmileyChris):
* stage: Unreviewed => Design decision needed Comment: Out of interest: {{{ >>> import timeit >>> # Don'T Do It, Harold! It'S A Hyper-Trap! >>> timeit.Timer("s.title()", 's="Don\'t do it, Harold! It\'s a hyper- trap!"').timeit() 1.9782196480278917 >>> # Don't Do It, Harold! It's A Hyper-trap! >>> timeit.Timer("string.capwords(s)", 's="Don\'t do it, Harold! It\'s a hyper-trap!";import string').timeit() 6.9016400129066682 >>> # Don't Do It, Harold! It's A Hyper-trap! >>> timeit.Timer("r.sub(cap,s)", 's="Don\'t do it, Harold! It\'s a hyper- trap!"; import re;r=re.compile(r"(\s|^)\w");cap=lambda x: x.group().upper()').timeit() 13.67118104395945 }}} -- Ticket URL: <http://code.djangoproject.com/ticket/9483#comment:13> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---