[SciPy-Dev] prepending underscores to private module names

Denis Laxalde denis at laxalde.org
Wed May 16 09:32:02 EDT 2012


Hi,

Le vendredi 03 juin 2011 à 21:57 +0200, Ralf Gommers a écrit :
> A while ago we discussed making a clear distinction between public and
> private modules by using underscores consistently, see
> http://thread.gmane.org/gmane.comp.python.scientific.devel/14936. 
> 
> I've done this for a few modules now, see
> https://github.com/rgommers/scipy/tree/underscores. Most files could
> simply be underscored, some other would conflict with extension
> modules so I also had to append _py to the name. Also I added a file
> doc/source/api.rst that states which modules are public (up for
> discussion of course). 
> 
> With google code search I checked how common it is to import from
> modules that are supposed to be private, for example "from
> scipy.optimize.optimize import fmin". It's not very common but does
> happen, so deprecation warnings should be put in.
> 
> Before going further I'd like to check that this looks okay to people.
> What do you think?

What is the status of this refactoring work?
I think it is an interesting move.

-- 
Denis




More information about the SciPy-Dev mailing list