Re: [Python-Dev] Suggested addition to PEP 8 for context managers

2012年4月18日 01:31:18 -0700

On 17 April 2012 16:36, Barry Warsaw <[email protected]> wrote:
> On Apr 17, 2012, at 08:25 AM, R. David Murray wrote:
>
>>On 2012年4月17日 08:53:43 +0200, Matej Cepl <[email protected]> wrote:
>>> On 16.4.2012 18:10, Nam Nguyen wrote:
>>> > a_list[pos + 1 : -1]
>>>
>>> or other way around
>>>
>>> a_list[pos+1:-1]
>>
>>
>>That's what I always use. No spaces inside the brackets for me :)
>>
>>If the expression gets unreadable that way, factor it out.
Ditto here.
And since this is OT by now, one of the other pep8 annoyances I
have[0] is the blanket whitespace around arithmetic operators,
including **. To me the first just looks ugly:
>>> 1024 ** 2
>>> 1024**2
Certainly when the expressions are larger.
Regards,
Floris
-- 
Debian GNU/Linux -- The Power of Freedom
www.debian.org | www.gnu.org | www.kernel.org
_______________________________________________
Python-Dev mailing list
[email protected]
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