diff --git a/doc/topics/pyson.rst b/doc/topics/pyson.rst index 1d5d5e897b..120b441cfa 100644 --- a/doc/topics/pyson.rst +++ b/doc/topics/pyson.rst @@ -98,7 +98,7 @@ dictionary ``{}``. ``Get()`` checks the former resulting dictionary and returns the value of the key ``'company'``, otherwise it returns the number ``0``. A similar expression in Python looks like this:: - 'context' in locals() and context.get('company', 0) + 'context' in locals() and context.get('company', 0) or 0