I assume one cause of the misunderstanding was the name "path" for the
search path. If it had been named "paths" it would have been more
obvious. But Python is only following a common standard here. Since
environment variables are called PATH, CLASSPATH etc. it was only
logical to use PYTHONPAT
Steve Holden wrote:
> [EMAIL PROTECTED] wrote:
[...snip...]
> Well, perhaps if you'd read the intro to the documentation (more
> carefully), or if you were more used to reading programming manuals,
> you'd quickly have recognised
>
> [, path]
>
> as meaning precisely that the path argument is
Fredrik Lundh wrote:
> Kent Johnson wrote:
>>Is there such a list? I have contributed many doc patches and if such
>>glory is mine I would like to know it!
>
> unfortunately, your name don't seem to be mentioned in the Doc version
> history either:
>
> do you have more details (a reference to a p
Kent Johnson wrote:
>> Clearly. So get your sleeves rolled up and provide a fix. Then you too
>> will get your name in the Python documentation contributors' list.
>
> Is there such a list? I have contributed many doc patches and if such
> glory is mine I would like to know it!
unfortunately, you
Kent Johnson wrote:
> Steve Holden wrote:
>
>>Clearly. So get your sleeves rolled up and provide a fix. Then you too
>>will get your name in the Python documentation contributors' list.
>
>
> Is there such a list? I have contributed many doc patches and if such
> glory is mine I would like to
Steve Holden wrote:
> Clearly. So get your sleeves rolled up and provide a fix. Then you too
> will get your name in the Python documentation contributors' list.
Is there such a list? I have contributed many doc patches and if such
glory is mine I would like to know it!
Kent
--
http://mail.pyt
[EMAIL PROTECTED] wrote:
> > The first sentence says that the _path_ argument is a search path.
> > It does not say that it can be a string; that's something you made
> > up all by yourself.
>
> Correct it does not say it's a string. But your implication that
> one can therefore conclude that it
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> [EMAIL PROTECTED] wrote:
>
> > > from the find_module documentation:
> > >
> > > find_module( name[, path])
> > >
> > > Try to find the module _name_ on the search path _path_.
> > > If _path_ is a list
[EMAIL PROTECTED] wrote:
> "Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>
>>[EMAIL PROTECTED] wrote:
>>
>>
from the find_module documentation:
find_module( name[, path])
[...]
>
> Reading more carefully is always useful. But that does
[EMAIL PROTECTED] wrote:
> > from the find_module documentation:
> >
> > find_module( name[, path])
> >
> > Try to find the module _name_ on the search path _path_.
> > If _path_ is a list of directory names, each directory is
> > searched for files /.../. Invalid names in th
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
>
> > Turns out that you have to do
> > >>> imp.find_module("mymod", ["./subdir"])
> >
> > I saw not a hint of this in the docs. In fact
> > they seem to say that the first (unworking)
> > form *should* work.
>
> from the find_
[EMAIL PROTECTED] wrote:
> Turns out that you have to do
> >>> imp.find_module("mymod", ["./subdir"])
>
> I saw not a hint of this in the docs. In fact
> they seem to say that the first (unworking)
> form *should* work.
from the find_module documentation:
find_module( name[, path])
Tony Meyer wrote:
> [EMAIL PROTECTED]
>
> > Another Python docs problem...
> >
> > I was trying to use imp.find_module().
> > [...]
> > I saw not a hint of this in the docs. In fact
> > they seem to say that the first (unworking)
> > form *should* work. Bye bye about two
> > hours altogether...
[EMAIL PROTECTED]
> Another Python docs problem...
>
> I was trying to use imp.find_module().
> [...]
> I saw not a hint of this in the docs. In fact
> they seem to say that the first (unworking)
> form *should* work. Bye bye about two
> hours altogether...
>
> I thought I would post this and ho
Another Python docs problem...
I was trying to use imp.find_module().
>>> imp.find_module("mymod", "./subdir")
ImportError: No frozen submodule named ./subdir.mymod
subdir/mymod.py definately exists, has reasonable
permissions, etc.
After a lot of reading and re-reading the docs,
trying various
15 matches
Mail list logo