Marc Poulin
1d1ebf540d
Side effects of changing a list
2018-09-14 11:20:53 -06:00
Marc Poulin
dc078e1a66
Cleaned up some wording
2018-09-14 11:11:16 -06:00
Marc Poulin
6d8a602a0c
Cleaned up formatting and grammar
2018-09-14 10:46:54 -06:00
Marc Poulin
29abc5acf3
Modifying the values in a list
...
To avoid side effects, don't modify the original list. Create a new list instead.
2018-09-13 11:28:43 -06:00
Marc Poulin
e69d7e7657
2.x vs 3.x, lists vs. iterators
...
Describe the differences between 2.x and 3.x and suggest situations when iterators would be more appropriate than lists.
2018-09-13 11:00:37 -06:00
Marc Poulin
436dec875c
Issue 796, clarify ways to manipulate a list
2018-09-11 15:52:31 -06:00
Dan Bader
03ed5fbf0d
Host photos locally
2018-07-16 17:51:29 -07:00
kennethreitz
e2ccc68cc2
Update style.rst
2017-09-04 16:46:37 -04:00
Daniel Andersson
3f8f2fd739
pep8 is nowadays called pycodestyle
...
See <https://github.com/PyCQA/pycodestyle/issues/466 >. Pointing towards
the `pep8` tool risks leading users to outdated versions of the tool
(the last `pep8` version is 1.7.0 from January 2016; the currently
latest `pycodestyle` version is 2.3.0).
2017-05-25 19:40:08 +02:00
Thomas Gratier
ecb39fcf6a
Indent unindented content in numbered list
2016-07-16 21:48:36 +02:00
kikisdeliveryservice
2ed32ebe0d
Clean up of intro paragraphs for clarity.
2016-06-20 13:38:23 -07:00
dfowler
5888db734d
Fix a few typos
2016-06-03 17:58:02 -04:00
kennethreitz
ad28c338ee
they see me stylin'
2016-02-21 19:10:42 -05:00
Kuldeep Singh
7aca6814e2
Added Note for xrange
...
Python 3 does not have xrange(). Uses range() instead.
2016-01-25 23:09:42 +05:30
Kuldeep Singh
e6fb422d45
Changed xrange to range
...
Since xrange no longer works in python3
2016-01-25 22:28:46 +05:30
Ian Cordasco
fecd5ec481
Merge pull request #576 from emilydolson/master
...
Resolved issue #174 by subdividing list idioms and replacing dict w/ set
2015-10-03 14:28:40 -05:00
emilydolson
df255faa64
Fixed typo + formatting
2015-10-03 13:50:42 -04:00
Ian Cordasco
0058198bb3
Merge pull request #578 from tkschmidt/typos
...
fixed a few typos
2015-10-03 11:00:14 -05:00
Tobias Schmidt
139a9671db
fixed a few typos
2015-10-03 00:50:20 +02:00
Cadel Watson
b0896e8468
Added usage instructions for autopep8
2015-10-03 08:27:13 +10:00
emilydolson
680f7d83d9
Resolved issue #174 by subdividing list idioms and replacing dict w/ set
2015-10-02 17:22:14 -04:00
Kristi Nikolla
f7ee56f50d
Corrected line ending after removing broken link
2015-05-03 11:25:46 -04:00
Kristi Nikolla
28e365f1ea
Removed broken link to Zen of Python in style.rst
2015-05-03 11:20:37 -04:00
taddeimania
060851270d
Revise 'consenting adult' verbiage
2015-03-08 22:10:33 -05:00
Vincent Zee
7e385158c7
Corrected lines to be no longer than 78 characters
2015-03-01 16:27:06 +01:00
Mary Brennan
db1a94fd43
copy edits
2014-12-06 11:55:30 -08:00
kennethreitz
9d664e6ba5
Merge pull request #455 from george2/extended-unpacking
...
Added pep-3132 style extended unpacking.
2014-06-18 03:01:15 +08:00
george
59eaef2f78
Added pep-3132 style extended unpacking.
2014-06-17 12:27:44 -06:00
george
2e9ae2152f
Grammar and a couple line wraps for writing/style.
2014-06-17 12:18:51 -06:00
Simeon Visser
71187f4274
Changed python into Python where needed
2014-05-25 20:58:19 +02:00
Brian Dréau
aa76da294d
Fixed minor typos in writing/style
2014-05-17 15:36:50 +02:00
Zearin
1e4b4a5460
docs/**: Specify language for code-blocks (syntax highlighting! mmm…)
2014-03-28 13:26:24 -04:00
rogererens
8fd4e4586e
Reset list 'a'
...
The result of the previous block containing the map example left 'a' to be [6, 7, 8], so resetting 'a' back to [3, 4, 5] seems to keep the example in line with the other ones.
2014-03-19 23:02:37 +01:00
Natan L
6dfc9ae953
Fix broken link
2013-12-02 22:58:17 -08:00
Alois Mahdal
f32ef5f38f
Reworded per rgbkrk's suggestion
2013-09-24 22:28:12 +02:00
Alois Mahdal
239909dc4c
Clarify presence of a two-element tuple.
2013-09-24 14:02:54 +02:00
Duta
c666597a73
Update style.rst
2013-08-12 12:44:37 +01:00
kuyan
13d99d95fe
Let Sphinx link to Python documentation.
...
Instead of directly linking to the relevant passages.
2013-08-03 19:28:48 -07:00
kuyan
1a77f1bbec
No need to say 'PEP 8' twice.
2013-07-30 13:13:05 -07:00
kuyan
b6f014342d
Use the :pep: tag instead of directly linking PEPs
2013-07-30 13:05:56 -07:00
Matthew Boehm
963ab0aabf
Fix enumerate code snippet to run without error message
...
Code previously added numbers to strings, which results in a TypeError
2013-07-28 10:20:47 -04:00
Arthur Loder
8d6f737438
minor formatting changes.
2013-06-21 22:35:10 -04:00
Dominique Plante
b4a08152b7
reapply some improvements to code style section in different branch
2013-05-13 21:37:51 -07:00
Kenneth Reitz
c7f1da22a2
Merge pull request #264 from simon-weber/fix-codestyle-typo
...
Fix typo/links to code_style section
2013-04-03 09:50:02 -07:00
Simon Weber
7cf628d8ea
fix links to code_style section
2013-04-03 12:46:48 -04:00
Pascal Borreli
54f1d8ca4d
Fixed typos
2013-04-01 19:09:15 +00:00
Kyle Kelley
810956c56b
Grammar: plurality fixes, tense fix, typos
2013-03-18 19:06:50 -03:00
Eli
709f8d3451
Fix mispelling
2013-03-08 16:55:48 -05:00
lambdadi
8c15d01979
Fix markdown formatting mistakes
...
Markdown formatting, for text emphasis and file paths, was broken in my
previous commit to the 'Idioms' section of the style.rst document. My
previous commit may be found at:
https://github.com/kennethreitz/python-guide/pull/243
Sorry!
2013-03-06 14:38:23 +05:30
Kenneth Reitz
9178fdfd2c
Merge pull request #243 from lambdadi/master
...
Suggest improved introduction to Style/#Idioms
2013-03-04 15:41:21 -08:00