A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2012-April/118808.html below:

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

[Python-Dev] Suggested addition to PEP 8 for context managers [Python-Dev] Suggested addition to PEP 8 for context managersR. David Murray rdmurray at bitdance.com
Tue Apr 17 14:25:01 CEST 2012
On Tue, 17 Apr 2012 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.

--David
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4