Skip to content

Commit afab7f6

Browse files
author
Mike Dirolf
committed
BUMP 1.3 see changelog
1 parent e7a6ed9 commit afab7f6

File tree

5 files changed

+40
-14
lines changed

5 files changed

+40
-14
lines changed

doc/changelog.rst

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,37 @@
11
Changelog
22
=========
33

4+
Changes in Version 1.3
5+
----------------------
6+
- DEPRECATED running :meth:`~pymongo.collection.Collection.group` as
7+
:meth:`~pymongo.database.Database.eval`, also changed default for
8+
:meth:`~pymongo.collection.Collection.group` to running as a command
9+
- remove :meth:`pymongo.cursor.Cursor.__len__`, which was deprecated
10+
in 1.1.1 - needed to do this aggressively due to it's presence
11+
breaking **Django** template *for* loops
12+
- DEPRECATED :meth:`~pymongo.connection.Connection.host`,
13+
:meth:`~pymongo.connection.Connection.port`,
14+
:meth:`~pymongo.database.Database.connection`,
15+
:meth:`~pymongo.database.Database.name`,
16+
:meth:`~pymongo.collection.Collection.database`,
17+
:meth:`~pymongo.collection.Collection.name` and
18+
:meth:`~pymongo.collection.Collection.full_name` in favor of
19+
:attr:`~pymongo.connection.Connection.host`,
20+
:attr:`~pymongo.connection.Connection.port`,
21+
:attr:`~pymongo.database.Database.connection`,
22+
:attr:`~pymongo.database.Database.name`,
23+
:attr:`~pymongo.collection.Collection.database`,
24+
:attr:`~pymongo.collection.Collection.name` and
25+
:attr:`~pymongo.collection.Collection.full_name`, respectively. The
26+
deprecation schedule for this change will probably be faster than
27+
usual, as it carries some performance implications.
28+
- added :meth:`~pymongo.connection.Connection.disconnect`
29+
430
Changes in Version 1.2.1
531
------------------------
6-
- add :doc:`changelog` to docs
7-
- add ``setup.py doc --test`` to run doctests for tutorial, examples
8-
- move most examples to Sphinx docs (and remove from *examples/*
32+
- added :doc:`changelog` to docs
33+
- added ``setup.py doc --test`` to run doctests for tutorial, examples
34+
- moved most examples to Sphinx docs (and remove from *examples/*
935
directory)
1036
- raise :class:`~pymongo.errors.InvalidId` instead of
1137
:class:`TypeError` when passing a 24 character string to
@@ -56,7 +82,7 @@ Changes in Version 1.1.1
5682
- added `database` support for :class:`~pymongo.dbref.DBRef`
5783
- added :mod:`~pymongo.json_util` with helpers for encoding / decoding
5884
special types to JSON
59-
- DEPRECATED :meth:`~pymongo.cursor.Cursor.__len__` in favor of
85+
- DEPRECATED :meth:`pymongo.cursor.Cursor.__len__` in favor of
6086
:meth:`~pymongo.cursor.Cursor.count` with `with_limit_and_skip` set
6187
to ``True`` due to performance regression
6288
- switch documentation to Sphinx

pymongo/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
ALL = 2
2929
"""Profile all operations."""
3030

31-
version = "1.2.1+"
31+
version = "1.3"
3232
"""Current version of PyMongo."""
3333

3434
Connection = PyMongo_Connection

pymongo/collection.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def full_name(self):
118118
119119
The full name is of the form `database_name.collection_name`.
120120
121-
.. versionchanged:: 1.1.2+
121+
.. versionchanged:: 1.3
122122
``full_name`` is now a property rather than a method. The
123123
``full_name()`` method is deprecated.
124124
"""
@@ -128,7 +128,7 @@ def full_name(self):
128128
def name(self):
129129
"""The name of this :class:`Collection`.
130130
131-
.. versionchanged:: 1.1.2+
131+
.. versionchanged:: 1.3
132132
``name`` is now a property rather than a method. The
133133
``name()`` method is deprecated.
134134
"""
@@ -139,7 +139,7 @@ def database(self):
139139
"""The :class:`~pymongo.database.Database` that this
140140
:class:`Collection` is a part of.
141141
142-
.. versionchanged:: 1.1.2+
142+
.. versionchanged:: 1.3
143143
``database`` is now a property rather than a method. The
144144
``database()`` method is deprecated.
145145
"""
@@ -646,7 +646,7 @@ def group(self, keys, condition, initial, reduce, finalize=None,
646646
command instead of in an eval - this option is deprecated and
647647
will be removed in favor of running all groups as commands
648648
649-
.. versionchanged:: 1.2.1+
649+
.. versionchanged:: 1.3
650650
The `command` argument now defaults to ``True`` and is deprecated.
651651
"""
652652

pymongo/connection.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ def _purge_index(self, database_name,
288288
def host(self):
289289
"""Current connected host.
290290
291-
.. versionchanged:: 1.1.2+
291+
.. versionchanged:: 1.3
292292
``host`` is now a property rather than a method. The ``host()``
293293
method is deprecated.
294294
"""
@@ -298,7 +298,7 @@ def host(self):
298298
def port(self):
299299
"""Current connected port.
300300
301-
.. versionchanged:: 1.1.2+
301+
.. versionchanged:: 1.3
302302
``port`` is now a property rather than a method. The ``port()``
303303
method is deprecated.
304304
"""
@@ -399,7 +399,7 @@ def disconnect(self):
399399
connection pool. If the :class:`Connection` is used again it
400400
will be automatically re-opened.
401401
402-
.. versionadded:: 1.2.1+
402+
.. versionadded:: 1.3
403403
"""
404404
for i in range(self.__pool_size):
405405
# prevent all operations during the reset

pymongo/database.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def connection(self):
9797
"""The :class:`~pymongo.connection.Connection` instance for this
9898
:class:`Database`.
9999
100-
.. versionchanged:: 1.1.2+
100+
.. versionchanged:: 1.3
101101
``connection`` is now a property rather than a method. The
102102
``connection()`` method is deprecated.
103103
"""
@@ -107,7 +107,7 @@ def connection(self):
107107
def name(self):
108108
"""The name of this :class:`Database`.
109109
110-
.. versionchanged:: 1.1.2+
110+
.. versionchanged:: 1.3
111111
``name`` is now a property rather than a method. The
112112
``name()`` method is deprecated.
113113
"""

0 commit comments

Comments
 (0)