Re: another docs problem - imp

2006-01-22 Thread Christoph Zwerschke
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

Re: another docs problem - imp

2006-01-22 Thread rurpy
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

Re: another docs problem - imp

2006-01-13 Thread Kent Johnson
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

Re: another docs problem - imp

2006-01-13 Thread Fredrik Lundh
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

Re: another docs problem - imp

2006-01-13 Thread Steve Holden
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

Re: another docs problem - imp

2006-01-13 Thread Kent Johnson
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

Re: another docs problem - imp

2006-01-13 Thread Fredrik Lundh
[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

Re: another docs problem - imp

2006-01-13 Thread rurpy
"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

Re: another docs problem - imp

2006-01-12 Thread Steve Holden
[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

Re: another docs problem - imp

2006-01-10 Thread Fredrik Lundh
[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

Re: another docs problem - imp

2006-01-10 Thread rurpy
"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_

Re: another docs problem - imp

2006-01-09 Thread Fredrik Lundh
[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])

Re: another docs problem - imp

2006-01-09 Thread rurpy
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...

Re: another docs problem - imp

2006-01-09 Thread Tony Meyer
[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 docs problem - imp

2006-01-09 Thread rurpy
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