#13956: Indefinite args for simpletags and inclusion tags -------------------------------------+------------------------------------- Reporter: melinath | Owner: gregmuellegger Type: New | Status: assigned feature | Component: Template system Milestone: | Severity: Normal Version: SVN | Keywords: simple_tag, Resolution: | simpletag Triage Stage: Accepted | Has patch: 1 Needs documentation: 1 | Needs tests: 1 Patch needs improvement: 1 | Easy pickings: 0 UI/UX: 0 | -------------------------------------+-------------------------------------
Comment (by melinath): On the other hand, "beautiful is better than ugly". If I really want to maintain backwards-compatibility, I need to make the additional argument optional. Comparison: 1. Original signature: `(params, defaults, name, node_class, parser, token)` 2. New signature: `(parser, token, params, defaults, name, node_class, varargs)` 3. Alternate: `(params, defaults, name, node_class, varargs, parser, token)` 4. Backwards-compatible signature: `(params, defaults, name, node_class, parser, token, varargs=None)` 4 is taking a turn down an inelegant path. I really would rather do 2 or 3. -- Ticket URL: <https://code.djangoproject.com/ticket/13956#comment:16> Django <https://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.