.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OESetComment

.. oe:function:: OESetComment

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

      .. oe:api::

         void OESetComment(OEMolBase& mol, const char* c)
         void OESetComment(OEMolBase& mol, const std::string& c)

   .. oe:language:: python

      .. oe:api:: python

         OESetComment(mol: Union[OEGraphMol,OEMol,OEQMol], c: str) -> None

   Attaches a text comment to a molecule.  This comment will be written
   to the comment field of the .mol2 and .sdf molecular formats.  It will
   also be conserved in OEBinary format.  This property may be retrieved
   using the :oe:func:`OEChem::OEGetComment` function.

