Ticket #2102: for_loop_with_generator.diff
File for_loop_with_generator.diff, 465 bytes (added by , 18 years ago) |
---|
-
defaulttags.py
88 88 values = [] 89 89 if values is None: 90 90 values = [] 91 if not hasattr(values, '__len__'): 92 values = list(values) 91 93 len_values = len(values) 92 94 if self.reversed: 93 95 # From http://www.python.org/doc/current/tut/node11.html