Thanks to all for the prompt replies. I look forward to trying both
approaches.
I wasn't aware that subpackages such as numpy.random and such could be imported
after numpy was imported at the top level. For some reason I thought it would
cause confusion.
The functools.reduce and class ap
I am trying to write some recursive code to explore the methods, classes,
functions, builtins, etc. of a package all the way down the hierarchy.
1) Preliminaries
In [2]: def explore_pkg(pkg):
...: return dir(pkg)
...:
In [3]: import numpy as np
In [4]: l2 = explore_pkg(np.random)
On Monday, May 15, 2017 at 1:30:05 PM UTC-7, qasi...@gmail.com wrote:
> Hi,
>
> I need to get the center of mass (COM) of each half of the ligand shown in
> the figure (https://i.stack.imgur.com/dtdul.png). I get the main COM all the
> ligand, lets say it is close to C1 atom. ...
I don't quite
On Saturday, May 13, 2017 at 3:39:52 PM UTC-7, Terry Reedy wrote:
> On 5/13/2017 1:23 PM, jeanbigbo...@gmail.com wrote:
>
> > Thank you for bringing up this important topic. As an occasional Python
> > user, I find that Python documentation is all over the usability map - some
> > great, some d
On Friday, May 12, 2017 at 3:02:58 AM UTC-7, Steve D'Aprano wrote:
> One of the more controversial aspects of the Python ecosystem is the Python
> docs. Some people love them, and some people hate them and describe them as
> horrible.
>
> Here are a couple of suggestions for improving(?) the docs.
On Sunday, December 20, 2015 at 3:29:30 AM UTC-8, Chris Angelico wrote:
[... much instruction deleted]
> There is a half-and-half possibility, too; sometimes a course will
> give you a challenge, and *then* introduce you to the techniques
> necessary for solving it (after letting you have a shot a
On Friday, December 25, 2015 at 4:14:56 PM UTC-8, Steven D'Aprano wrote:
> On Sat, 26 Dec 2015 10:01 am, jeanbigbo...@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 rea
On Friday, December 25, 2015 at 4:07:43 PM UTC-8, Terry Reedy wrote:
> On 12/25/2015 6:01 PM, jeanbigbo...@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. I can do this after a
> > fashion interactive
As an occasional Python user, I'd like to be able to get for myself a
high-level overview of a package's capabilities. I can do this after a fashion
interactively in IPython using tab completes.
e.g.
import numpy as np
np. ---> Big list of capabilities, highlight one item
np.array --> Nothing