.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEGetComment

.. oe:function:: OEGetComment

   .. oe:language:: c++ java csharp

      .. oe:api::

         const char* OEGetComment(const OEMolBase& mol)

   .. oe:language:: python

      .. oe:api:: python

         OEGetComment(mol: Union[OEGraphMol,OEMol,OEQMol]) -> str


   Returns a pointer to the text comment attached to a molecule.  These
   comments are written to the comment field of .sdf and .mol2 formats
   and are also stored in OEBinary format.  This property may be set
   using the :oe:func:`OEChem::OESetComment` function.

