[python-win32] how to see what content have by object? & write its content to separe file?

Tim Roberts timr at probo.com
Mon Mar 12 19:18:19 CET 2012

sagarnikam123 wrote:
> want to see what is inside cn object & write its content line by line in .txt
> file

Well, that's basically what your code is currently doing.  The "cn"
object appears to be an iterator, returning a list of tuples one by
one.  If you want the results formatted in a pretty way, then you need
to know more about the "Residue" object in the tuples it is returning. 
We don't know anything about those objects -- you'll have to find that
in the code or its documentation.

Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.

More information about the python-win32 mailing list