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

Jean-Michel Pichavant jeanmichel at sequans.com
Mon Jun 22 14:57:37 CEST 2009


J. Cliff Dyer wrote:
> 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
>
>
>   
The import * should not used if possible, I totally agree on that point, 
but there's no need to rename namespaces for that.

br

Jean-Michel




More information about the Python-list mailing list