Perl's @foo[3,7,1,-1] ?

J. Cliff Dyer jcd at sdf.lonestar.org
Wed Jun 17 22:03:21 CEST 2009


On Wed, 2009-06-17 at 14:13 +0200, Jean-Michel Pichavant wrote:
> On Wed, Jun 17, 2009 at 04:14, Steven D'Aprano wrote:
> >> What's np.arange?
> >>     
> >
> > import numpy as np
> >
> > --
> > Pierre "delroth" Bourdon <delroth at gmail.com>
> > Étudiant à l'EPITA / Student at EPITA
> >   
> 
> Perfect example of why renaming namespaces should be done only when 
> absolutely required, that is, almost never.
> 
> Jean-Michel

I disagree.  Renaming namespaces should always be done if it will help
stop people from doing a 'from package import *'.  However, example code
should always include relevant imports.

Cheers,
Cliff





More information about the Python-list mailing list