This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ezio.melotti
Recipients Guido.van.Rossum, anthonymayer, barry, docs@python, ezio.melotti, gvanrossum, ncoghlan
Date 2014-08-31.21:28:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1409520484.72.0.896405242865.issue22316@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.
History
Date User Action Args
2014-08-31 21:28:04ezio.melottisetrecipients: + ezio.melotti, gvanrossum, barry, ncoghlan, docs@python, Guido.van.Rossum, anthonymayer
2014-08-31 21:28:04ezio.melottisetmessageid: <1409520484.72.0.896405242865.issue22316@psf.upfronthosting.co.za>
2014-08-31 21:28:04ezio.melottilinkissue22316 messages
2014-08-31 21:28:04ezio.melotticreate