Message226192
> 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. |
|
Date |
User |
Action |
Args |
2014-08-31 21:28:04 | ezio.melotti | set | recipients:
+ ezio.melotti, gvanrossum, barry, ncoghlan, docs@python, Guido.van.Rossum, anthonymayer |
2014-08-31 21:28:04 | ezio.melotti | set | messageid: <1409520484.72.0.896405242865.issue22316@psf.upfronthosting.co.za> |
2014-08-31 21:28:04 | ezio.melotti | link | issue22316 messages |
2014-08-31 21:28:04 | ezio.melotti | create | |
|