summaryrefslogtreecommitdiffhomepage
path: root/python3.html.markdown
Commit message (Collapse)AuthorAgeLines
* Merge pull request #3790 from tonicava/masterMax Schumacher2020-01-28-0/+3
|\ | | | | [Python3/en] copy sets
| * copy setsOctavian Mocanu2019-12-07-0/+3
| |
* | Merge pull request #3781 from Benur21/patch-1Divay Prakash2020-01-24-2/+3
|\ \ | | | | | | Explaining better and improving consistence
| * | Explaining better and improving consistenceBenur212019-11-21-2/+3
| |/ | | | | | | Added a version without parentheses to make it clear what they are doing; Added return values for True and False because 3 also has it.
* | Merge pull request #3673 from laszlokiraly/patch-1Divay Prakash2020-01-11-2/+2
|\ \ | |/ |/| [python/en] don't overwrite list function
| * don't overwrite listLászló Király2019-10-04-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | problem: assigning a list of animals to the list variable overwrites the list function, so that later in line 531 the list function is not available and raises a Type Error: ``` In [133]: list(filled_dict.keys()) --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-133-a2c520b90051> in <module> ----> 1 list(filled_dict.keys()) TypeError: 'list' object is not callable ``` solution: use another variable name instead of list
* | Fixed typo: uptil => untilcaminsha2019-11-14-1/+2
| |
* | [python3/en] Clarify difference between iterators and iterables in the last ↵Mariusz Skoneczko2019-10-22-2/+8
|/ | | | example (closes #3586)
* Fix explanation for slicesDivay Prakash2019-09-24-9/+5
|
* Added write to and read from a file syntaxBen Landry2019-08-21-0/+20
|
* [python3/en] Added enumerate function (#3601)Ben Landry2019-08-13-0/+11
| | | | | | * Added enumerate function * adjusted spacing
* Add output for python3 f-string.Ryota Kayanuma2019-07-15-1/+1
|
* Update python3.html.markdownGaven Finch2019-02-05-2/+2
|
* Merge pull request #3424 from EvilKhaosKat/patch-1Divay Prakash2018-12-21-0/+1
|\ | | | | [python3/en] A note about common gotcha with mutable defaults
| * [python3/en] A note about common gotcha with mutable defaultsRoman Garanin2018-12-19-0/+1
| | | | | | | | A reminder to be aware of using mutable defaults. Whether it is a real problem or not depends on exact use-case, but an update fully describing that and updating code with copying list, or defaulting with None and conditional initialization, would probably negatively affect readability of the example.
* | [python3/en] Add note about dictionary item ordering in Python 3.7+ (#3423)Nico Dinata2018-12-21-5/+8
|/ | | | | * Add changes to dict item ordering in Python 3.7+ * Fix line length * Fix typo in example
* Merge pull request #3413 from nielsbom/patch-2Divay Prakash2018-12-01-1/+4
|\ | | | | [python3/en] show chaining operators nicer
| * [python3/en] show chaining operators nicerNiels Bom2018-11-30-1/+4
| |
* | [python3/en] show that True and False are ints (#3412)Niels Bom2018-12-01-6/+15
|/ | | | | | | | * [python3/en] show that True and False are ints * [python3/en] rework some boolean stuff I removed the example `-5 != False != True #=> True` because we didn't cover chaining yet.
* Fix tuple unpacking example in python3, closes #3130 (#3328)Divay Prakash2018-10-26-1/+2
|
* Add f-string clarification.Joseph G2018-10-11-1/+3
|
* Clarification about setsRoberto Fernandez Diaz2018-08-07-0/+3
| | | I indicate that a set doesn't contain duplicate elements and add a little example
* added example for f-string理絵子2018-07-29-0/+4
| | | Literal string interpolation is new in python 3.6 [pep-0498](https://www.python.org/dev/peps/pep-0498/)
* Corrections on Python3 pageqzhangjhu2018-02-28-5/+5
|
* Merge pull request #3057 from ebzzry/fix-typoPratik Karki2018-02-28-3/+4
|\ | | | | [python3/en]: fix typo
| * [python3/en]: fix typoRommel Martinez2018-02-03-3/+4
| |
* | Fix omitting in list and clarified commentsAswin Sanakan2017-12-05-2/+2
|/
* python3/en cleanup for single inheritance mergeKeith Miyake2017-10-23-15/+5
|
* [python3/en] Add single inheritance sectionKeith Miyake2017-10-19-17/+111
|
* Update python3.html.markdown (#2776)Alfonso Millan2017-06-29-0/+1
|
* Some improvements to Python 3 (#2713)Ned Batchelder2017-05-18-25/+24
|
* [Python] Slightly tweak ** example Adam Bard2017-04-05-1/+1
| | | 2^4 == 4^2, 2^3 seems a bit less ambiguous as an example for exponentiation.
* add underscore to property (#2691)Ankush Aggarwal2017-03-28-1/+1
| | | property is exposed using setter and getters
* Updated mistake in Python3/en tutorial (#2678)Andrew Lee2017-02-28-2/+5
| | | | A fix on static method section (around line 728). Specifically, i.grunt() should raise an error since grunt() is a static method and 'i' is an instance of the class.
* [python3/en] Fix two "getter" output examples (#2658)lilhandsbgdreams2017-02-16-2/+2
|
* Fix omitting end / beginning in ranges (#2649)Adrian Sieber2017-02-10-2/+2
|
* [python3/en] Add examples to Bool operators with ints (#2639)ghostduck2017-01-28-0/+3
|
* [python3/en] fixed "StopIterator", no such Exception (#2591)kakakaya2016-12-03-1/+1
| | | | | | * [python3/en] Add empty tuple to "False if evaluated" list * [python3/en] Fixed "StopIterator Exception" - no such exception
* [python3/en] Add empty tuple to "False if evaluated" list (#2587)kakakaya2016-11-30-2/+2
|
* [python3/en] Edit python3 division (#2560)Foo Chuan Wei2016-11-09-7/+1
| | | | | | | | The result of division is always a float. e.g. 35/5 = 7.0 10 / 3 = 3.3333333333333335 10.0 / 3 = 3.3333333333333335 10 / 3.0 = 3.3333333333333335
* Add python3 class notes (#2479)Harry Moreno2016-10-20-0/+5
| | | | | * explain that you can place the human and bat classes into seperate files * explain how to import specific functions from other files
* [python3] updated docs on division for python3 (#2473)Srinivas Gorur-Shandilya2016-10-20-3/+7
| | | | | | | | | | * updated docs on division for python3 prev. docs were confusing, did not show how to actually divide. * modified language about python division * fixed grammar
* Update python3.html.markdownven2016-10-04-6/+0
|
* Update python3.html.markdown (#2381)Subhrajyoti Sen2016-09-21-0/+1
|
* [Eng/Python3] add new book: "Learn Python 3.0 VISUALLY" (#2360)Patrick Callahan2016-09-06-0/+1
| | | | | | * add new book * sanitized link
* correction for the set comprehension in py3 (#2358)PhoenixYip2016-09-06-1/+1
|
* [python3/en] Adding "Dive Into Python 3" (#2353)Patrick Callahan2016-09-01-0/+2
| | | | The previous version of this file had the original Dive Into Python, which was written with Python 2 in mind. It has come to my attention that the author of the original has published an updated version designed for Python 3, so I added this version back in.
* Remove Python 2 resources from Python 3 page (#2350)Patrick Callahan2016-09-01-5/+0
| | | There were several resources here that teach Python 2, but not Python 3. I removed them so that a reader will only see resources that apply to Python 3.
* [python/en] Set, dict, and generator comprehensions (#2298)J. Ryan Rembert2016-07-03-14/+24
| | | | | | | | * Add set and dict comprehensions for python 2 and 3 * Clean up formatting and generator explanation * Include documentation for generator comprehensions
* Python3/en: multiple inheritance (#2217)Alexandre Constantino2016-06-26-50/+147
| | | | | | | | | | | | | | | | | | | | * Add __name__ check to make testing easier * Update say to call print. Add more usage examples * Move Modules section before Classes Makes more sense for when explaining inheritance * Add multiple inheritance example * Add examples for multiple inheritance * Add instance check examples * Fix multiple inheritance example * Add note on the __name__ variable