From 305ab64504339fbcfa2214ed4e83b39b8eaff9be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 24 May 2013 10:15:46 +0200 Subject: [PATCH] Add documentation about type of PYSON issue3137 review901002 --- doc/ref/pyson.rst | 5 +++++ doc/topics/pyson.rst | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/doc/ref/pyson.rst b/doc/ref/pyson.rst index 782bf5b760..5f012b91a7 100644 --- a/doc/ref/pyson.rst +++ b/doc/ref/pyson.rst @@ -74,6 +74,11 @@ value of the statement named by ``value``, if defined in the evaluation context, otherwise the ``default`` value (empty string by default). Returns an instance of itself. +.. note:: + + The default value determines the type of the statement. +.. + .. class:: Not(value) A :class:`Not` object represents the PYSON ``Not()`` diff --git a/doc/topics/pyson.rst b/doc/topics/pyson.rst index 120b441cfa..a193caa1ee 100644 --- a/doc/topics/pyson.rst +++ b/doc/topics/pyson.rst @@ -13,9 +13,9 @@ A PYSON parser can easily be implemented in other programming languages. So third party softwares do not need to depend on Python to be able to fully communicate with the Tryton server. -PYSON is a `deterministic algorithm`_ which will always -succeed to evaluate statements. There is a default behavior for -unknown values. +PYSON is a `deterministic algorithm`_ which will always succeed to evaluate +statements. There is a default behavior for unknown values. It is statically +typed and checked on instantiation. There is also a :ref:`reference documentation of the API `.