[Python-Dev] [Python-checkins] peps: Restore whitespace characters lost via email transmission. (original) (raw)

Éric Araujo merwok at netwok.org
Wed Jul 20 17:05:28 CEST 2011


Le 20/07/2011 16:40, P.J. Eby a écrit :

PEP 12 prescribes four-space indents for PEPs, actually, wherever it mentions an specific indentation depth.

Ah, thanks. I see in my docutils docs that David Goodger used three and four-space indents (three for indenting the body of a directive, four for other cases).

(I'm a bit surprised that three-space indents are mandated for anything involving documenting Python in reST, though, since that would mean you'd also have to indent your code samples by three spaces, or else have an editor that supports two different tab widths.)

I don’t remember this being a pain. Maybe it’s because the reST I tend to edit has much more reST indents than Python code example indents, so I don’t mind typing .

Cheers



More information about the Python-Dev mailing list