[docs] [issue11186] pydoc: HTMLDoc.index() doesn't support PEP 383

STINNER Victor report at bugs.python.org
Fri Feb 11 13:56:53 CET 2011


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

Oops, my isUndecodableFilename() example is wrong. PEP 383 only uses U+DC80..U+DCFF range:

def isUndecodableFilename(filename):
  return any((0xDC80 <= ord(ch) <= 0xDCFF) for ch in filename)

Example of undecodable filename: b'bla\xe9\xff.py' with UTF-8 filesystem encoding is decoded as 'bla\uDCE9\uDCFF.py'.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11186>
_______________________________________


More information about the docs mailing list