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?

X-Received by 10.50.50.138 with SMTP id c10mr7634126igo.3.1451090849590; Fri, 25 Dec 2015 16:47:29 -0800 (PST)
X-Received by 10.50.134.69 with SMTP id pi5mr702545igb.5.1451090849564; Fri, 25 Dec 2015 16:47:29 -0800 (PST)
Path csiph.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.glorb.com!mv3no21201123igc.0!news-out.google.com!l1ni2421igd.0!nntp.google.com!mv3no15336336igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.python
Date Fri, 25 Dec 2015 16:47:28 -0800 (PST)
In-Reply-To <567ddbf5$0$1592$c3e8da3$5496439d@news.astraweb.com>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=68.135.37.181; posting-account=Zzc_cwoAAAAb3HvI1pw7S79hKGMNWfCA
NNTP-Posting-Host 68.135.37.181
References <a8737340-ffe6-40f3-82a8-dca5835dba4d@googlegroups.com> <567ddbf5$0$1592$c3e8da3$5496439d@news.astraweb.com>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <c7f708ed-2abd-400e-ad58-3deac1d1dd80@googlegroups.com> (permalink)
Subject Re: Recursively listing the contents of a package?
From jeanbigboute@gmail.com
Injection-Date Sat, 26 Dec 2015 00:47:29 +0000
Content-Type text/plain; charset=ISO-8859-1
Xref csiph.com comp.lang.python:100873

Show key headers only | 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