/usr/share/doc/python-pymongo-doc/html/_sources/api/bson/objectid.txt is in python-pymongo-doc 2.7.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | :mod:`objectid` -- Tools for working with MongoDB ObjectIds
===========================================================
.. automodule:: bson.objectid
:synopsis: Tools for working with MongoDB ObjectIds
.. autoclass:: bson.objectid.ObjectId([oid=None])
:members:
.. describe:: str(o)
Get a hex encoded version of :class:`ObjectId` `o`.
The following property always holds:
.. testsetup::
from bson.objectid import ObjectId
.. doctest::
>>> o = ObjectId()
>>> o == ObjectId(str(o))
True
This representation is useful for urls or other places where
``o.binary`` is inappropriate.
|