summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial/classes.rst
Commit message (Collapse)AuthorAgeFilesLines
* [3.11] GH-97950: Use new-style index directive ('object') (GH-104158) (#104159)Miss Islington (bot)2023-05-041-1/+1
| | | | | | | | | | | | | | | | GH-97950: Use new-style index directive ('object') (GH-104158) * Uncomment object removal in pairindextypes * Use new-style index directive ('object') - C API * Use new-style index directive ('object') - Library * Use new-style index directive ('object') - Reference * Use new-style index directive ('object') - Tutorial (cherry picked from commit 6ab463684b9d79880d98cd1f1406aa86af65985e) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* gh-100633 Tutorial: Fix dataclasses import (GH-100638)Miss Islington (bot)2022-12-311-1/+1
| | | | | | import dataclass not dataclasses from dataclasses (cherry picked from commit 98308dbeb110198ebe28bdb7720d3671b3e7f57b) Co-authored-by: Owain Davies <116417456+OTheDev@users.noreply.github.com>
* gh-99908: Tutorial: Modernize the 'data-record class' example (GH-100499)Miss Islington (bot)2022-12-241-9/+15
| | | | | | (cherry picked from commit 00afa5066bd45348ed82a38d3442763b2ed1a068) Co-authored-by: JosephSBoyle <48555120+JosephSBoyle@users.noreply.github.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-70393: Clarify mention of "middle" scope (GH-98839)Miss Islington (bot)2022-12-121-2/+2
| | | | | (cherry picked from commit 70be5e42f6e288de32e0df3c77ac22a9ddf1a74b) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* Docs: remove redundant "adverb-adjective" hyphens from compound modifiers ↵Miss Islington (bot)2022-07-051-1/+1
| | | | | | | | (GH-94551) (GH-94557) Discussion: https://discuss.python.org/t/slight-grammar-fix-throughout-adverbs-dont-need-hyphen/17021 (cherry picked from commit 3440d197a55800ecceea3e115e44b4262411359c) Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
* gh-89158: Add some REPL secondary prompt markers (GH-93073)Miss Islington (bot)2022-05-231-3/+3
| | | | | | | This fixes an issue on tutorial/classes.rst section 9.4 where the example "class Warehouse" was truncated when pressing the >>> button to hide the prompts and output. (cherry picked from commit 88f0d0c1e8fdda036f3f64b0048911ba28ce7f06) Co-authored-by: Nicolas Haller <nicolas@haller.im>
* Fix the output of built-in iter() function example in Iterators (Section ↵Vivek Vashist2021-12-161-1/+1
| | | | | 9.8) of The Python Tutorial (GH-30110) Updated the output for it=iter(s) from <iterator object at 0x00A1DB50> to <str_iterator object at 0x10c90e650>
* bpo-40204: Fix reference to terms in the doc (GH-21865)Victor Stinner2020-08-141-1/+1
| | | | | | | | Sphinx 3 requires to refer to terms with the exact case. For example, fix the Sphinx 3 warning: Doc/library/pkgutil.rst:71: WARNING: term Loader not found in case sensitive match.made a reference to loader instead.
* Fix repeated words in Classes tutorial (GH-21455)Paul McMillan2020-07-141-2/+2
| | | | | The phrase "At any time during execution," was repeated twice. Automerge-Triggered-By: @Mariatta
* bpo-26205: Specify the number of nested scopes (GH-21324)Joannah Nanjekye2020-07-061-2/+2
| | | | | | | | | * Clarify number of scopes * Indicate 3 or 4 Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-39869: Fix typo in 'Instance objects' section. (GH-18889)Antoine2020-03-101-1/+1
|
* bpo-39431: Also mention nonlocal in assignment quirk (GH-17375)Shanavas M2020-01-231-4/+4
|
* bpo-12634: Clarify an awkward section of the tutorial (GH-15406)Raymond Hettinger2019-08-231-6/+14
|
* bpo-35506: Remove redundant and incorrect links from keywords. (GH-11174)Serhiy Storchaka2018-12-191-1/+1
|
* Add a reference to the name mangling description in the tutorial to the ↵Andrés Delfino2018-11-071-0/+3
| | | | index. (GH-10138)
* bpo-21196: Clarify name mangling rules in tutorial (GH-5667)Berker Peksag2018-10-201-0/+5
| | | Initial patch by Chandan Kumar.
* bpo-28677: Improve phrasing of when instance attribute is referenced (GH-6208)Aaron Ang2018-07-251-2/+2
|
* bpo-32722: Remove useless example in the Classes tutorial (#5446)Stéphane Wirtel2018-02-011-4/+1
| | | | | In the tutorial about the Generator expression, there is an example with a dict comprehension and not with a generator expression, just removed the code.
* bpo-32452: clarify term 'brackets' in generator tutorial (#5079)Emily Morehouse2018-01-021-3/+3
| | | Updates documentation for generator expressions in classes tutorial: Clarify usage of ambiguous term "brackets" by replacing with "square brackets". Updated subsequent lines to respect line breaks. (#5079)
* bpo-30466: Add brief explanation of classes to tutorial (GH-1804)Trey Hunner2017-07-131-0/+6
|
* bpo-28315: Improve code examples in docs (GH-1372)UltimateCoder2017-05-031-1/+1
| | | | | | Replace File "<stdin>", line 1, in ? with File "<stdin>", line 1, in <module>
* #29005: clarify terminology in tutorial 'method' discussion.R David Murray2016-12-181-3/+2
| | | | Patch by Jim Fasarakis-Hilliard.
* Issue #21864: Remove outdated section about exceptions from the tutorialBerker Peksag2016-11-061-49/+0
| | | | | Move the still relevant parts of it to the previous chapter, "Errors and Exceptions".
* Issue #24314: Fix doc links for general attributes like __name__, __dict__Martin Panter2016-06-181-2/+2
|
* Fix typo in Python tutorialBerker Peksag2016-06-011-1/+1
|
* Issue #23921: Standardized documentation whitespace formatting.Serhiy Storchaka2016-05-101-1/+11
| | | | Original patch by James Edwards.
* minor grammar fixes (from docs@python.org)Georg Brandl2014-10-311-2/+2
|
* Use https:// URLs when referring to python.org hosts.Georg Brandl2014-10-291-1/+1
|
* #22170: avoid printing newlines twice in tutorial example.Ezio Melotti2014-08-081-1/+1
|
* Issue #11974: Add tutorial section on class and instance variablesRaymond Hettinger2014-06-241-0/+71
| | | | (Based on a patch from Renee Chu.)
* Issue #19193: Improved cross-references in the tutorial.Serhiy Storchaka2013-10-091-3/+3
|
* Remove newline in method that makes it possible to copy example to the ↵Georg Brandl2013-10-061-1/+0
| | | | interactive interpreter.
* merge 3.2Benjamin Peterson2012-10-121-9/+9
|\
| * Fix links to the __next__ method.Ezio Melotti2012-10-121-9/+9
| |
| * Fix closes Issue: 14217 - 3.2 branchSenthil Kumaran2012-03-091-1/+4
| |
* | Fix closes Issue: 14217 - Appropriate sphinx directive for output. Patch by ↵Senthil Kumaran2012-03-091-1/+3
| | | | | | | | Tshepang Lekhonkhobe
* | Merge with 3.2Terry Jan Reedy2012-01-111-2/+2
|\ \ | |/
| * Minor correction. #11418Terry Jan Reedy2012-01-111-2/+2
| |
* | Merge from 3.2 (#10318, #12255, #12043, #12417 and other fixes)Éric Araujo2011-07-291-14/+14
|\ \ | |/
| * Make indentation comply with our style guide and the rest of the fileÉric Araujo2011-07-261-14/+14
| |
* | Issue 12086: add example showing how to use name mangling.Raymond Hettinger2011-06-251-0/+22
|\ \ | |/
| * Issue 12086: add example showing how to use name mangling.Raymond Hettinger2011-06-251-0/+22
| |
* | merge with 3.2Georg Brandl2011-05-011-2/+1
|\ \ | |/
| * Split combined code/doctest code blocks in two blocks, to enable proper ↵Georg Brandl2011-05-011-2/+5
| | | | | | | | highlighting.
* | Split combined code/doctest code blocks in two blocks, to enable proper ↵Georg Brandl2011-05-011-0/+4
| | | | | | | | highlighting.
* | Name c -> cls in example.Georg Brandl2011-03-071-2/+2
|/
* #9138: reword introduction to classes in Python.Georg Brandl2010-10-171-16/+16
|
* Clarify that abs() is not a namespace.Georg Brandl2010-08-021-1/+1
|
* Clarification. Yay importlib!Georg Brandl2010-07-191-2/+5
|
* Remove mention of execfile from the tutorial.Mark Dickinson2010-07-121-6/+6
|