Should stdlib files contain 'narrow non breaking space' U+202F?

Chris Angelico rosuav at gmail.com
Fri Dec 18 04:33:00 EST 2015


On Fri, Dec 18, 2015 at 7:32 PM, Zachary Ware
<zachary.ware+pylist at gmail.com> wrote:
> On Fri, Dec 18, 2015 at 1:43 AM, Chris Angelico <rosuav at gmail.com> wrote:
>> On Fri, Dec 18, 2015 at 6:12 PM, Serhiy Storchaka <storchaka at gmail.com> wrote:
>>> Agreed. Please open an issue.
>>>
>>> Using non-ASCII apostrophes and like in docstrings may be considered a bug.
>>
>> http://bugs.python.org/issue25899
>>
>> Also noticed this. Is this a markup error?
>>
>> Lib/urllib/request.py:190:
>>     Note that *None& may be returned if no handler handles the request (though
>>     the default installed global OpenerDirector uses UnknownHandler to ensure
>>     this never happens).
>
> The '&' is a typo; it should have been '*'.
>
>> It looks fine on the web:
>> https://docs.python.org/3/library/urllib.request.html
>
> Because what's on the web has no relation to the docstring :)

Wasn't sure if it was getting extracted from there. Looking at
help(urllib.request.urlopen) just shows the markup as-is, so I
couldn't be sure.

Should that be a separate tracker issue?

ChrisA



More information about the Python-list mailing list