Marc-Andre Lemburg <[EMAIL PROTECTED]> added the comment:

On 2008-12-05 11:24, Amaury Forgeot d'Arc wrote:
> Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment:
> 
> Yes, it is the full traceback.
> 
> The modules are not compiled nor imported. 
> But to load the source code, importer.find_module() needs to open the
> file in text mode, so it calls PyTokenizer_FindEncoding() (this is the
> second failure, with test.badsyntax_pep3120.py), then the encoding is
> used to decode text (this is the first failure, with test.bad_coding.py)

I see.

>> Instead, pydoc should just say that a module was not specified 
>> and be done with it.
>
> I'm not sure to understand.

Sorry, I didn't see the attached PNG screenshot until now. Forget that
comment.

What I don't understand is that this works:

help> modules

Please wait a moment while I gather a list of all available modules...
...

while this doesn't:

help> modules web

Here is a list of matching modules.  Enter any module name to get more help.

Traceback (most recent call last):
...

Shouldn't the first method also cause a traceback ?

_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4540>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to