Ticket #16297: make_list_integer-16297.diff

File make_list_integer-16297.diff, 824 bytes (added by teraom, 13 years ago)
  • docs/ref/templates/builtins.txt

     
    17461746make_list
    17471747~~~~~~~~~
    17481748
    1749 Returns the value turned into a list. For an integer, it's a list of
    1750 digits. For a string, it's a list of characters.
     1749Returns the value turned into a list. For a string, it's a list of characters.
     1750For an integer, the argument is cast into an unicode string before creating a
     1751list.
    17511752
    17521753For example::
    17531754
     
    17551756
    17561757If ``value`` is the string ``"Joel"``, the output would be the list
    17571758``[u'J', u'o', u'e', u'l']``. If ``value`` is ``123``, the output will be the
    1758 list ``[1, 2, 3]``.
     1759list ``[u'1', u'2', u'3']``.
    17591760
    17601761.. templatefilter:: phone2numeric
    17611762
Back to Top