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 anthonymayer
Recipients Guido.van.Rossum, anthonymayer, barry, docs@python, ncoghlan
Date 2014-08-31.16:02:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1409500963.42.0.440331342486.issue22316@psf.upfronthosting.co.za>
In-reply-to
Content
After discussion about extraneous whitespace around colons in a list slice not being an error on the pep8 checker project (see https://github.com/jcrocholl/pep8/issues/321#issuecomment-53649841), ncoghlan suggested filing a ticket here to get the issue added to PEP8. The issue being that PEP8 doesn't say that

x = [1, 2, 3, 4]
x[1: 3]

is wrong. It should suggest doing

x = [1, 2, 3, 4]
x[1:3]

instead. This rule should probably be added to the "Whitespace In Expressions and Statements" section of PEP8 (http://legacy.python.org/dev/peps/pep-0008/#whitespace-in-expressions-and-statements)
History
Date User Action Args
2014-08-31 16:02:43anthonymayersetrecipients: + anthonymayer, barry, ncoghlan, docs@python, Guido.van.Rossum
2014-08-31 16:02:43anthonymayersetmessageid: <1409500963.42.0.440331342486.issue22316@psf.upfronthosting.co.za>
2014-08-31 16:02:43anthonymayerlinkissue22316 messages
2014-08-31 16:02:43anthonymayercreate