Update playbooks_python_version.rst

Minor edits
pull/23982/head
scottb 8 years ago committed by Toshio Kuratomi
parent 78dd3496e2
commit 946658cd24

@ -22,9 +22,9 @@ Dictionary Views
In Python2, the :meth:`dict.keys`, :meth:`dict.values`, and :meth:`dict.items` In Python2, the :meth:`dict.keys`, :meth:`dict.values`, and :meth:`dict.items`
methods returns a list. Jinja2 returns that to Ansible via a string methods returns a list. Jinja2 returns that to Ansible via a string
representation that Ansible can turn back into a list. In Python3, those representation that Ansible can turn back into a list. In Python3, those
methods returns a :ref:`dictionary view <python3:dict-views>` object. The methods return a :ref:`dictionary view <python3:dict-views>` object. The
string representation that Jinja2 returns for dictionary views is not parsable string representation that Jinja2 returns for dictionary views cannot be parsed back
by Ansible back into a list. It is, however, easy to make this portable by into a list by Ansible. It is, however, easy to make this portable by
using the :func:`list <jinja2:list>` filter whenever using :meth:`dict.keys`, using the :func:`list <jinja2:list>` filter whenever using :meth:`dict.keys`,
:meth:`dict.values`, or :meth:`dict.items`:: :meth:`dict.values`, or :meth:`dict.items`::

Loading…
Cancel
Save