On Tue, Jan 14, 2014 at 2:16 PM, MRAB <pyt...@mrabarnett.plus.com> wrote:
> Alternatively:
>
> g = max(self.saved_groups, [1])
>
> or even:
>
> g = max(self.saved_groups or [1])

Patch created and tracker issue opened. I've used something similar to
MRAB's idea as it looks compact. Thanks all!

http://bugs.python.org/issue20249

Is the patch in the right format? I'm not familiar with hg, so I just
looked up a git<->hg Rosetta Stone that told me to use 'hg export'.
The patch works with 'hg import' on 2.7 and 3.3.

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

Reply via email to