← Back to team overview

yade-dev team mailing list archive

Re: on the "import" stuff

 

Bruno Chareyre said:     (by the date of Fri, 06 May 2011 16:45:53 +0200)

> Hi,
> 
> 1/ It seems to me that a series of "import" are found at the beginning
> of many scripts (e.g. pack). Couldn't we load them by default, so that
> we could get rid of the imports in scripts?
> 2/ functions, like sphere(), SpherePack(), aabbWalls(), can't be used
> just like this, we need to always type _utils_.sphere. I don't see
> advantage, and it's not always obvious which module contains a given
> function. Would it be a problem to make such functions reachable from
> the global namespace (just adding "from utils import *" in yade.py)?
> 
> If there are no objections, I'll make this change.

I am just curious why Vaclav haven't done that.

-- 
Janek Kozicki                               http://janek.kozicki.pl/  |


References