This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients amaury.forgeotdarc, john.weldon
Date 2008-12-05.00:47:48
SpamBayes Score 2.4400482e-12
Marked as misclassified No
Message-id <1228438070.05.0.984286595262.issue4540@psf.upfronthosting.co.za>
In-reply-to
Content
When enumerating all possible modules, the help system tries to import 
test.bad_coding.py :-(
I tried to catch this LookupError, but then it fail on test.badsyntax_pep3120.py, 
with a SyntaxError
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python30\lib\site.py", line 427, in __call__
    return pydoc.help(*args, **kwds)
  File "c:\python30\lib\pydoc.py", line 1675, in __call__
    self.interact()
  File "c:\python30\lib\pydoc.py", line 1693, in interact
    self.help(request)
  File "c:\python30\lib\pydoc.py", line 1711, in help
    self.listmodules(request.split()[1])
  File "c:\python30\lib\pydoc.py", line 1799, in listmodules
    apropos(key)
  File "c:\python30\lib\pydoc.py", line 1913, in apropos
    ModuleScanner().run(callback, key, onerror=onerror)
  File "c:\python30\lib\pydoc.py", line 1872, in run
    loader = importer.find_module(modname)
  File "C:\Python30\lib\pkgutil.py", line 186, in find_module
    file, filename, etc = imp.find_module(subname, path)
SyntaxError: Non-UTF-8 code starting with '\xf6' in file (null) on line 1, but n
o encoding declared; see http://python.org/dev/peps/pep-0263/ for details


[Note: I don't like the (null) as a filename...]
History
Date User Action Args
2008-12-05 00:47:50amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, john.weldon
2008-12-05 00:47:50amaury.forgeotdarcsetmessageid: <1228438070.05.0.984286595262.issue4540@psf.upfronthosting.co.za>
2008-12-05 00:47:49amaury.forgeotdarclinkissue4540 messages
2008-12-05 00:47:48amaury.forgeotdarccreate