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

Barry Warsaw barry at python.org
Tue Apr 17 17:36:31 CEST 2012


On Apr 17, 2012, at 08:25 AM, R. David Murray wrote:
>On 2012年4月17日 08:53:43 +0200, Matej Cepl <mcepl at redhat.com> 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.

+1
-Barry


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /