Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #100873

Re: Recursively listing the contents of a package?

Newsgroups comp.lang.python
Date 2015-12-25 16:47 -0800
References <a8737340-ffe6-40f3-82a8-dca5835dba4d@googlegroups.com> <567ddbf5$0$1592$c3e8da3$5496439d@news.astraweb.com>
Message-ID <c7f708ed-2abd-400e-ad58-3deac1d1dd80@googlegroups.com> (permalink)
Subject Re: Recursively listing the contents of a package?
From jeanbigboute@gmail.com

Show all headers | View raw


On Friday, December 25, 2015 at 4:14:56 PM UTC-8, Steven D'Aprano wrote:
> On Sat, 26 Dec 2015 10:01 am, jeanbigboute@gmail.com wrote:
> 
> > As an occasional Python user, I'd like to be able to get for myself a
> > high-level overview of a package's capabilities.
> 
> Best way to do that is to read the package's documentation on the web.

I certainly do so.  Some packages are very well documented, others less so.
 
> 
> [...]
> > Is there a way to determine if a method/function/correct term has items
> > underneath it?
> > 
> > If such a thing exists, I think I could write the code to descend through
> > a package's functions/methods, make a list of nodes and edges, send it to
> > networkx, and create a graph of a package's capabilities.
> 
> Let's say you want to analyse package aardvark.

[ Detailed description]

> I think this more or less gives you the details you need to know to
> programmatically analyse a package.

This is very helpful, thank you for the time in laying out the path.  I will try to implement what you've described.  It will be a good way for me to sharpen my Python skills.

--- JBB

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Recursively listing the contents of a package? jeanbigboute@gmail.com - 2015-12-25 15:01 -0800
  Re: Recursively listing the contents of a package? Terry Reedy <tjreedy@udel.edu> - 2015-12-25 19:06 -0500
    Re: Recursively listing the contents of a package? jeanbigboute@gmail.com - 2015-12-25 16:42 -0800
  Re: Recursively listing the contents of a package? Steven D'Aprano <steve@pearwood.info> - 2015-12-26 11:14 +1100
    Re: Recursively listing the contents of a package? jeanbigboute@gmail.com - 2015-12-25 16:47 -0800

csiph-web