summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial/classes.rst
Commit message (Collapse)AuthorAgeFilesLines
* [3.12] gh-101100: Fix sphinx warnings in `tutorial/classes.rst` (GH-108746) ↵Miss Islington (bot)2023-09-011-1/+1
| | | | | | | | (#108756) gh-101100: Fix sphinx warnings in `tutorial/classes.rst` (GH-108746) (cherry picked from commit e775601ef1ada83a80e1539d0bcd5509deadee14) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] Improve references in the tutorial (GH-108069) (#108203)Miss Islington (bot)2023-08-211-21/+22
| | | | | | | | | | Improve references in the tutorial (GH-108069) * Use full qualified names for references (even if they do not work now, they will work in future). * Silence references to examples. (cherry picked from commit 622ddc41674c2566062af82f7b079aa01d2aae8c) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* GH-97950: Use new-style index directive ('object') (#104158)Adam Turner2023-05-041-1/+1
| | | | | | | | | | | * 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
* gh-100633 Tutorial: Fix dataclasses import (#100638)Owain Davies2022-12-311-1/+1
| | | import dataclass not dataclasses from dataclasses
* gh-99908: Tutorial: Modernize the 'data-record class' example (#100499)JosephSBoyle2022-12-241-9/+15
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-70393: Clarify mention of "middle" scope (#98839)Shantanu2022-12-121-2/+2
|
* gh-73196: Add namespace/scope clarification for inheritance section (#92840)Stanley2022-10-071-1/+2
| | | Add namespace/scope clarification for inheritance section
* Docs: remove redundant "adverb-adjective" hyphens from compound modifiers ↵Ned Batchelder2022-07-051-1/+1
| | | | | (GH-94551) Discussion: https://discuss.python.org/t/slight-grammar-fix-throughout-adverbs-dont-need-hyphen/17021
* gh-89158: Add some REPL secondary prompt markers (#93073)Nicolas Haller2022-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.
* 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
|