On 07/20/11 17:05, Éric Araujo wrote:
> 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 <Tab><Space>.

Also, chances are that you've tried out your sample code (!) and thus copy
it from a Python file anyway.

Georg

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to