#7430: Recursively iterating through a template's nodes
-------------------------------------+-------------------------------------
     Reporter:  miracle2k            |                    Owner:  Anders
                                     |  Hovmöller
         Type:  Bug                  |                   Status:  assigned
    Component:  Template system      |                  Version:  dev
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Ready for
                                     |  checkin
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Anders Hovmöller):

 Just FYI I have working code for walking the syntax tree:
 https://github.com/boxed/okrand/blob/main/okrand/__init__.py#L262

 It's... not ideal as it requires two monkey patches that I've found so
 far. But I personally don't think having `__iter__` on stuff is very
 useful. There are multiple child nodelists, so iter would be a little
 weird honestly.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/7430#comment:10>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018612037250-8de01e58-eb1f-430d-af5d-876aa1c2e23e-000000%40eu-central-1.amazonses.com.

Reply via email to