Ezio Melotti added the comment:

> Yes: ham[lower + offset : upper + offset], ham[lower : upper : 3]

This feels a bit weird to me, perhaps because I seldom have expressions in 
slices and don't feel the need to add further spaces.
For the first case I would definitely not put spaces around the +, and likely 
not even around the :.
For the second case I also wouldn't put spaces around the :.
In general complex expressions that requires additional spaces around the : to 
better separate start, stop, and step should be avoided or, if really 
necessary, additional variables should be used*.
I would be -0.5 if this is kept but with a "Maybe" instead of the "Yes", -0 if 
the spaces around the + are removed.

* note that I'm not too familiar with bumpy/scipy, where I believe complex 
slice expressions might be more common.

----------
nosy: +ezio.melotti

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22316>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to