Hi Noel,

You might try also the following:
dir(Descriptors)
The dir() function returns an alphabetized list of names.

You can also have a look at the inspect module, especially the getdoc and 
getargspec functions; these will give you more information on each function. 
The inspect.isroutine or inspect.isfunction functions might be helpful to find 
out which items of the list are "real" descriptors.

Cheers,

Grégori


------------------------------

Date: Thu, 31 Mar 2011 18:28:23 +0100
From: "Noel O'Boyle" <[email protected]>
Subject: [Rdkit-discuss] Getting the list of descriptors
To: RDKit Discuss <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1

Hi Greg,

With the deprecation of the AvailDescriptors module, it seems that the only way 
to get the list of descriptors is:
   len(Descriptors._descList)

I don't like accessing hidden attributes; is there some better way to do this?

- Noel


------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Rdkit-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to