New submission from James Edwards:

There's inconsistent leading whitespace between the two classes in the 4th code 
snippet of the "Special Method Lookup" section.

https://docs.python.org/3/reference/datamodel.html#special-method-lookup

The (very substantial :) included patch makes both classes use consistent 
leading whitespace, that is PEP-8 conformant.

(This issue also exists in the Python 2 documentation[1], but since other 
things have changed -- e.g. print statement -> function, metaclass declaration 
-- the same patch won't apply cleanly.)

[1] 
https://docs.python.org/2/reference/datamodel.html#special-method-lookup-for-new-style-classes

----------
assignee: docs@python
components: Documentation
files: datamodel.rst.diff
keywords: patch
messages: 240458
nosy: docs@python, jedwards
priority: normal
severity: normal
status: open
title: Inconsistent whitespace/formatting in docs/reference/datamodel/Special 
Method Lookup
versions: Python 3.6
Added file: http://bugs.python.org/file38894/datamodel.rst.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23912>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to