Ticket #16297: make_list_integer-16297.diff
File make_list_integer-16297.diff, 824 bytes (added by , 13 years ago) |
---|
-
docs/ref/templates/builtins.txt
1746 1746 make_list 1747 1747 ~~~~~~~~~ 1748 1748 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. 1749 Returns the value turned into a list. For a string, it's a list of characters. 1750 For an integer, the argument is cast into an unicode string before creating a 1751 list. 1751 1752 1752 1753 For example:: 1753 1754 … … 1755 1756 1756 1757 If ``value`` is the string ``"Joel"``, the output would be the list 1757 1758 ``[u'J', u'o', u'e', u'l']``. If ``value`` is ``123``, the output will be the 1758 list ``[ 1, 2, 3]``.1759 list ``[u'1', u'2', u'3']``. 1759 1760 1760 1761 .. templatefilter:: phone2numeric 1761 1762