<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="X-UA-Compatible" content="IE=Edge" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>max_key – Representation for the MongoDB internal MaxKey type — PyMongo 3.7.2 documentation</title> <link rel="stylesheet" href="../../_static/pydoctheme.css" type="text/css" /> <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" /> <script type="text/javascript" id="documentation_options" data-url_root="../../" src="../../_static/documentation_options.js"></script> <script type="text/javascript" src="../../_static/jquery.js"></script> <script type="text/javascript" src="../../_static/underscore.js"></script> <script type="text/javascript" src="../../_static/doctools.js"></script> <script type="text/javascript" src="../../_static/language_data.js"></script> <script type="text/javascript" src="../../_static/sidebar.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> <link rel="search" title="Search" href="../../search.html" /> <link rel="next" title="min_key – Representation for the MongoDB internal MinKey type" href="min_key.html" /> <link rel="prev" title="json_util – Tools for using Python’s json module with BSON documents" href="json_util.html" /> </head><body> <div class="related" role="navigation" aria-label="related navigation"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../../genindex.html" title="General Index" accesskey="I">index</a></li> <li class="right" > <a href="../../py-modindex.html" title="Python Module Index" >modules</a> |</li> <li class="right" > <a href="min_key.html" title="min_key – Representation for the MongoDB internal MinKey type" accesskey="N">next</a> |</li> <li class="right" > <a href="json_util.html" title="json_util – Tools for using Python’s json module with BSON documents" accesskey="P">previous</a> |</li> <li class="nav-item nav-item-0"><a href="../../index.html">PyMongo 3.7.2 documentation</a> »</li> <li class="nav-item nav-item-1"><a href="../index.html" >API Documentation</a> »</li> <li class="nav-item nav-item-2"><a href="index.html" accesskey="U"><code class="docutils literal notranslate"><span class="pre">bson</span></code> – BSON (Binary JSON) Encoding and Decoding</a> »</li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body" role="main"> <div class="section" id="module-bson.max_key"> <span id="max-key-representation-for-the-mongodb-internal-maxkey-type"></span><h1><code class="xref py py-mod docutils literal notranslate"><span class="pre">max_key</span></code> – Representation for the MongoDB internal MaxKey type<a class="headerlink" href="#module-bson.max_key" title="Permalink to this headline">¶</a></h1> <p>Representation for the MongoDB internal MaxKey type.</p> <dl class="class"> <dt id="bson.max_key.MaxKey"> <em class="property">class </em><code class="descclassname">bson.max_key.</code><code class="descname">MaxKey</code><a class="headerlink" href="#bson.max_key.MaxKey" title="Permalink to this definition">¶</a></dt> <dd><p>MongoDB internal MaxKey type.</p> <div class="versionchanged"> <p><span class="versionmodified">Changed in version 2.7: </span><code class="docutils literal notranslate"><span class="pre">MaxKey</span></code> now implements comparison operators.</p> </div> </dd></dl> </div> </div> </div> </div> <div class="sphinxsidebar" role="navigation" aria-label="main navigation"> <div class="sphinxsidebarwrapper"> <h4>Previous topic</h4> <p class="topless"><a href="json_util.html" title="previous chapter"><code class="docutils literal notranslate"><span class="pre">json_util</span></code> – Tools for using Python’s <code class="docutils literal notranslate"><span class="pre">json</span></code> module with BSON documents</a></p> <h4>Next topic</h4> <p class="topless"><a href="min_key.html" title="next chapter"><code class="docutils literal notranslate"><span class="pre">min_key</span></code> – Representation for the MongoDB internal MinKey type</a></p> <div role="note" aria-label="source link"> <h3>This Page</h3> <ul class="this-page-menu"> <li><a href="../../_sources/api/bson/max_key.rst.txt" rel="nofollow">Show Source</a></li> </ul> </div> <div id="searchbox" style="display: none" role="search"> <h3>Quick search</h3> <div class="searchformwrapper"> <form class="search" action="../../search.html" method="get"> <input type="text" name="q" /> <input type="submit" value="Go" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> </div> </div> <script type="text/javascript">$('#searchbox').show(0);</script> </div> </div> <div class="clearer"></div> </div> <div class="related" role="navigation" aria-label="related navigation"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../../genindex.html" title="General Index" >index</a></li> <li class="right" > <a href="../../py-modindex.html" title="Python Module Index" >modules</a> |</li> <li class="right" > <a href="min_key.html" title="min_key – Representation for the MongoDB internal MinKey type" >next</a> |</li> <li class="right" > <a href="json_util.html" title="json_util – Tools for using Python’s json module with BSON documents" >previous</a> |</li> <li class="nav-item nav-item-0"><a href="../../index.html">PyMongo 3.7.2 documentation</a> »</li> <li class="nav-item nav-item-1"><a href="../index.html" >API Documentation</a> »</li> <li class="nav-item nav-item-2"><a href="index.html" ><code class="docutils literal notranslate"><span class="pre">bson</span></code> – BSON (Binary JSON) Encoding and Decoding</a> »</li> </ul> </div> <div class="footer" role="contentinfo"> © Copyright MongoDB, Inc. 2008-present. MongoDB, Mongo, and the leaf logo are registered trademarks of MongoDB, Inc. </div> </body> </html>