|
From: Michael S. <mic...@ph...> - 2003-10-16 12:53:39
|
Hi Jörg and André,
> On 16.10.03, Joerg Lehmann wrote:
> > I'm not sure about that. Of course, at the moment an "import pyx"
> > doesn't do anything (expect providing access to pyx.__version__ and
> > pyx.__all__) and using the code given above it would at least do
> > something reasonable. On the other hand, the behaviour seems to
> > be rather implicit than explicit to me. So, as I said, I don't know.
>
> Well, same for me. Should we play dice now?
I threw a coin, and it said "Number" -- what now?
Some statements about the above:
1. Usually one does not want to say
pyx.canvas.canvas() instead of canvas.canvas(),
which is long enough.
2. There might be some conflicts with other module names, and in this
case it is more work to import the necessary modules one by one
without these conflicts.
3. Loading everything by default is not a good idea, as can be seen in the
scipy-project which is too slow for usage.
Is there a possibility for the following?
"import pyx" --> access via "pyx.canvas.canvas()", everything
is loaded automatically
"from pyx import *" --> say "canvas.canvas()" instead
Best Greetings,
Michael
--
"A mathematician is a device for turning coffee into theorems"
Paul Erdös.
|