From e2d4aa12070e5a039a43f39272db3928951794e4 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Sun, 9 Jun 2013 12:23:14 +0100 Subject: [PATCH] Added a missing note to the docs --- docs/api.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/api.rst b/docs/api.rst index 3eacc5f5..48bb001e 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -283,6 +283,9 @@ thing, like it does for :class:`request` and :class:`session`. user = getattr(flask.g, 'user', None) user = flask.g.get('user', None) + It's now also possible to use the ``in`` operator on it to see if an + attribute is defined and it yields all keys on iteration. + This is a proxy. See :ref:`notes-on-proxies` for more information.