From 55ad7780005b0dbeb39865385e7a378a2255118e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Puente=20Sarr=C3=ADn?= Date: Sun, 7 Apr 2013 12:14:30 -0500 Subject: [PATCH 1/2] re.compile() method is not part of PyMongo --- source/reference/operator/not.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/reference/operator/not.txt b/source/reference/operator/not.txt index aca4f9a03bb..8bc18ff92f4 100644 --- a/source/reference/operator/not.txt +++ b/source/reference/operator/not.txt @@ -56,8 +56,8 @@ $not collection where the ``item`` field value does *not* start with the letter ``p``. - If using PyMongo's ``re.compile()``, you can write - the above query as: + If you using Python, you can write the above query with the PyMongo + driver and ``re.compile()`` method, as follows: .. code-block:: python From 108587af38eec3830ca2215a94a0092831783059 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Puente=20Sarr=C3=ADn?= Date: Tue, 9 Apr 2013 22:44:25 -0500 Subject: [PATCH 2/2] Clarification for re.compile method --- source/reference/operator/not.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/reference/operator/not.txt b/source/reference/operator/not.txt index 8bc18ff92f4..ca99b585363 100644 --- a/source/reference/operator/not.txt +++ b/source/reference/operator/not.txt @@ -56,8 +56,9 @@ $not collection where the ``item`` field value does *not* start with the letter ``p``. - If you using Python, you can write the above query with the PyMongo - driver and ``re.compile()`` method, as follows: + If you are using Python, you can write the above query with the PyMongo + driver and the ``re.compile()`` method to compile a regular expression, + as follows: .. code-block:: python