On Tue, 17 Apr 2012 08:53:43 +0200, Matej Cepl <mc...@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 _______________________________________________ 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