From 483b62eec201cdd3f9cd9b8d78a411ef7c8a2bfe Mon Sep 17 00:00:00 2001 From: David Lord Date: Tue, 23 Jul 2019 08:19:51 -0700 Subject: clean up scientific notation support add changelog clean up docs parametrize tests --- docs/templates.rst | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) (limited to 'docs') diff --git a/docs/templates.rst b/docs/templates.rst index 9da05773..88df9167 100644 --- a/docs/templates.rst +++ b/docs/templates.rst @@ -396,7 +396,7 @@ this template, it first locates the parent. The extends tag should be the first tag in the template. Everything before it is printed out normally and may cause confusion. For details about this behavior and how to take advantage of it, see :ref:`null-master-fallback`. Also a block will always be -filled in regardless of whether the surrounding condition is evaluated to be true +filled in regardless of whether the surrounding condition is evaluated to be true or false. The filename of the template depends on the template loader. For example, the @@ -1178,17 +1178,12 @@ for Python objects such as strings and numbers. The following literals exist: template). 42: - Integers numbers are created by just writing the number down. - If a dot is present, the number will be considered a float, otherwise an - integer. Keep in mind that, in Python, ``42`` and ``42.0`` - are different (``int`` and ``float``, respectively). - -42.23 / 42e2 / 42E2 / 1e0: - Floating point numbers are created by just writing the - number down. Floating points can be written using the dot as a decimal mark, - or they can be written in scientific notation in which - case you can use lower case 'e' or upper case 'E' to indicate the exponent - part. + Integers are whole numbers without a decimal part. + +42.23 / 42.1e2: + Floating point numbers can be written using a '.' as a decimal mark. + They can also be written in scientific notation with an upper or + lower case 'e' to indicate the exponent part. ['list', 'of', 'objects']: Everything between two brackets is a list. Lists are useful for storing -- cgit v1.2.3