summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
Commit message (Collapse)AuthorAgeFilesLines
* [3.12] Add 'The Python 2.3 Method Resolution Order' (GH-116435) (#117885)Hugo van Kemenade2024-04-151-1/+1
| | | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* [3.12] gh-117597: Clarify exception handling in the tutorial (GH-117681) ↵Miss Islington (bot)2024-04-091-3/+3
| | | | | | | (#117700) (cherry picked from commit a05068db0cb43337d20a936d919b9d88c35d9818) Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
* [3.12] gh-116563: Update tutorial error example (GH-116569) (#116624)Miss Islington (bot)2024-03-111-4/+4
| | | | | | | | There now may be multiple carets pointing at a token rather than just a character. Fix the sentence about possible causes. (cherry picked from commit 3e45030076bf2cfab41c4456c73fb212b7322c60) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.12] GH-116271 Docs: provide clarification for object assignments in the ↵Miss Islington (bot)2024-03-041-7/+24
| | | | | | | | Tutorial section (GH-116283) (#116305) Co-authored-by: Kerim Kabirov <39376984+Privat33r-dev@users.noreply.github.com> Co-authored-by: Ned Batchelder <ned@nedbatchelder.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* [3.12] gh-114648: Add IndexError exception to tutorial datastructures ↵Miss Islington (bot)2024-02-011-4/+3
| | | | | | | | list.pop entry (GH-114681) (#114841) Remove redundant explanation of optional argument. (cherry picked from commit 57c3e775df5a5ca0982adf15010ed80a158b1b80) Co-authored-by: srinivasan <shivnaren@gmail.com>
* [3.12] gh-114069: Revise Tutorial Methods paragraph (GH-114127) (#114131)Miss Islington (bot)2024-01-161-6/+5
| | | | | | | | gh-114069: Revise Tutorial Methods paragraph (GH-114127) Remove excess words in the first and third sentences. (cherry picked from commit 31a2543c80e1e38c97e50533249d9aa00e2f6cae) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.12] Tutorial: Clarify 'nonzero exit status' in the appendix (GH-112039) ↵Miss Islington (bot)2024-01-121-1/+1
| | | | | | | | (#113999) Tutorial: Clarify 'nonzero exit status' in the appendix (GH-112039) (cherry picked from commit 32f3684b8f18d757945eee67a697cb4a95c697db) Co-authored-by: Andrew Zipperer <47086307+zipperer@users.noreply.github.com>
* [3.12] gh-113208: Mention namespace packages don't require __init__.py ↵Miss Islington (bot)2023-12-191-1/+2
| | | | | | | (GH-113209) (#113276) Co-authored-by: Unique-Usman <86585626+Unique-Usman@users.noreply.github.com> Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* [3.12] gh-113113: doc: use less ambiguously named variable (gh-113114) ↵Miss Islington (bot)2023-12-141-3/+3
| | | | (gh-113122)
* [3.12] gh-101100: Improve documentation for attributes on instance methods ↵Miss Islington (bot)2023-12-081-2/+4
| | | | | | | | (GH-112832) (#112872) gh-101100: Improve documentation for attributes on instance methods (GH-112832) (cherry picked from commit ed21d0c1f4bd17b392e24bfd83e652723dad4ddf) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] Fix link to 'The Perils of Floating Point', on the tutorial ↵Miss Islington (bot)2023-12-031-1/+1
| | | | | | | | (GH-112499) (GH-112664) Use author link to 'The Perils of Floating Point'. (cherry picked from commit c27b09c81368bc3b756e94a79a39307ce44a4a2c) Co-authored-by: Marco Aurélio A. Barbosa <aureliobarbosa@gmail.com>
* [3.12] gh-110383: Explained which error message is generated when there is ↵Miss Islington (bot)2023-11-191-2/+1
| | | | | | | an unhandled exception (GH-111574) (#112264) Co-authored-by: Unique-Usman <86585626+Unique-Usman@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-111406: Fix broken link to bpython's site (GH-111407) (#111408)Miss Islington (bot)2023-10-271-1/+1
| | | | | | gh-111406: Fix broken link to bpython's site (GH-111407) (cherry picked from commit 8a158a753c48d166ebceae0687e88ae0c0725c02) Co-authored-by: Zack Cerza <zack@cerza.org>
* [3.12] gh-101100: Fix Sphinx warning in `tutorial/introduction.rst` ↵Miss Islington (bot)2023-10-221-1/+1
| | | | | | | | (GH-111173) (#111175) gh-101100: Fix Sphinx warning in `tutorial/introduction.rst` (GH-111173) (cherry picked from commit 663cf513b0e973ab7aa4a8609d6616ad2c283f22) Co-authored-by: Maciej Olko <maciej.olko@affirm.com>
* [3.12] gh-110534 fix a URL redirect to wikipedia article on Fibonacci ↵Miss Islington (bot)2023-10-091-1/+1
| | | | | | | | numbers (GH-110535) (#110536) gh-110534 fix a URL redirect to wikipedia article on Fibonacci numbers (GH-110535) (cherry picked from commit 892ee72b3622de30acd12576b59259fc69e2e40a) Co-authored-by: partev <petrosyan@gmail.com>
* [3.12] Update floatingpoint.rst (GH-110509) (#110513)Miss Islington (bot)2023-10-081-1/+1
| | | | | | | | | | | | | | | | Update floatingpoint.rst (GH-110509) This commit removes a ':'. I believe the extra colon causes a display error. What I believe to be an error: Above this expression `round(math.pi, ndigits=2) == round(22 / 7, ndigits=2)` the page displays `.. doctest::`. What I observed: After I remove the extra colon, the page does not display `.. doctest::` (cherry picked from commit 8e56d551ceef37a307280bcc5303bf69ccc9f9c1) Co-authored-by: zipperer <47086307+zipperer@users.noreply.github.com>
* [3.12] gh-101100: Fix Sphinx warnings in `tutorial/controlflow.rst` ↵Miss Islington (bot)2023-09-291-2/+2
| | | | | | | | | (GH-109424) (#110084) gh-101100: Fix Sphinx warnings in `tutorial/controlflow.rst` (GH-109424) (cherry picked from commit 8898a8683b5631c24d51a6a7babf55a255874950) Co-authored-by: Maciej Olko <maciej.olko@affirm.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] gh-101100: Fix sphinx warnings in `tutorial/appendix.rst` (GH-108750) ↵Hugo van Kemenade2023-09-021-4/+4
| | | | | | | | (#108759) (cherry picked from commit 3047f09490ae63f25d57efe1d14a9a65d9b5f6db) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [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-215-47/+48
| | | | | | | | | | 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>
* [3.12] GH-107987: Remove the Distributing Python Modules guide (GH-108016) ↵Miss Islington (bot)2023-08-171-1/+3
| | | | | | | | (#108081) GH-107987: Remove the Distributing Python Modules guide (GH-108016) (cherry picked from commit 33e6e3fec02ff3035dec52692542d3dd10124bef) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] gh-101100: Sphinx warnings: pick the low hanging fruits (GH-107386) ↵Serhiy Storchaka2023-07-292-3/+3
| | | | | (GH-107419) (cherry picked from commit f2d07d3289947d10b065b2bb7670c8fb6b6582f2)
* [3.12] gh-107017: Change Chapter Strings to Texts in the Introduction ↵Miss Islington (bot)2023-07-241-20/+20
| | | | | | | chapter. (GH-107104) (#107167) Co-authored-by: TommyUnreal <45427816+TommyUnreal@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-107017: Analolgy to Pascal and C replaced. (GH-107025) (#107124)Miss Islington (bot)2023-07-231-2/+2
| | | | | | (cherry picked from commit e59da0c4f283b966ccb175fb94460f58211a9704) Co-authored-by: TommyUnreal <45427816+TommyUnreal@users.noreply.github.com> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* [3.12] gh-107017: removed mention that C does it the same way (GH-107020) ↵Miss Islington (bot)2023-07-231-8/+15
| | | | | | (#107097) Co-authored-by: Jakub Červinka <cervinka.jakub.1989@gmail.com>
* [3.12] gh-71261: Add paragraph on shadowing submodules with star imports ↵Miss Islington (bot)2023-07-231-0/+16
| | | | | | (GH-107004) (#107100) Co-authored-by: wulmer <wulmer@users.noreply.github.com>
* [3.12] Reformat code block to make it easier to read (GH-106965) (#107010)Miss Islington (bot)2023-07-221-5/+14
| | | | | (cherry picked from commit ed491d9f782480fb00535abcf667027e0e323287) Co-authored-by: Joe Kaufeld <opensource@joekaufeld.com>
* [3.12] gh-106780: Add __match_args__ to tutorial example (GH-106784) (#106819)Miss Islington (bot)2023-07-171-1/+7
| | | | | | | Add Point definition with this attribute before example that needs it. (cherry picked from commit 7aa89e505d893cd5e6f33b84d66e5fa769089931) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.12] gh-106625 : Add missing code to tutorial 4.6 example (GH-106623) ↵Miss Islington (bot)2023-07-111-2/+3
| | | | | | | | (#106636) (cherry picked from commit d0b7e18262e69dd4b8252e804e4f98fc9533bcd6) Co-authored-by: RustyNail <takonoyawarakaage@yahoo.co.jp> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.12] Doc: Add missing ref labels to exception groups/notes sections ↵Miss Islington (bot)2023-07-061-0/+2
| | | | | | (GH-106465) (#106473) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* [3.12] gh-104479: Update outdated tutorial floating-point reference ↵Miss Islington (bot)2023-05-261-10/+13
| | | | | | | (GH-104681) (#104960) (cherry picked from commit 2cf04e455d8f087bd08cd1d43751007b5e41b3c5) Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
* GH-97950: Use new-style index directive ('builtin') (#104164)Adam Turner2023-05-062-2/+2
| | | | | | | | | | | | | * Uncomment builtin removal in pairindextypes * Use new-style index directive ('builtin') - C API * Use new-style index directive ('builtin') - Extending * Use new-style index directive ('builtin') - Library * Use new-style index directive ('builtin') - Reference * Use new-style index directive ('builtin') - Tutorial
* GH-97950: Use new-style index directive ('statement') (#104162)Adam Turner2023-05-041-1/+1
|
* GH-97950: Use new-style index directive ('object') (#104158)Adam Turner2023-05-042-2/+2
| | | | | | | | | | | * 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-97950: Use new-style index directive ('module') (#103996)Adam Turner2023-05-042-3/+3
| | | | | | | | | | | | | | | | | * Use new-style index directive ('module') - C API * Use new-style index directive ('module') - Library * Use new-style index directive ('module') - Reference * Use new-style index directive ('module') - Tutorial * Uncomment module removal in pairindextypes * Use new-style index directive ('module') - C API * Use new-style index directive ('module') - Library * Use new-style index directive ('module') - Reference
* [doc] Fix error in tutorial example: type(exc) is the type rather than the ↵Jens-Hilmar Bradt2023-03-221-1/+1
| | | | instance (#102751)
* gh-102703: Fix typo in modules tutorial documentation (GH-102707)Robert Prater (B. Eng)2023-03-151-1/+1
| | | | | | | | | **Before** This prevents directories with a common name, such as ``string``, unintentionally hiding ... **After** This prevents directories with a common name, such as ``string``, from unintentionally hiding ...
* gh-102354: change python3 to python in docs examples (#102696)Paul Watson2023-03-141-1/+1
|
* Misc improvements to the float tutorial (GH-102052)Raymond Hettinger2023-02-191-33/+106
|
* gh-100425: Update tutorial docs related to sum() accuracy (FH-101854)neuralstring2023-02-191-1/+1
|
* docs: replace PyPI description with link (#101506)François Magimel2023-02-031-2/+2
|
* gh-100633 Tutorial: Fix dataclasses import (#100638)Owain Davies2022-12-311-1/+1
| | | import dataclass not dataclasses from dataclasses
* gh-55688: Add note about ending backslashes for raw strings (#94768)Stanley2022-12-281-0/+5
| | | Co-authored-by: hauntsaninja <hauntsaninja@gmail.com>
* 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-100425: Improve accuracy of builtin sum() for float inputs (GH-100426)Raymond Hettinger2022-12-231-1/+1
|
* Fix typo in introduction.rst (#100266)Mikhail Berkov2022-12-161-1/+1
|
* gh-70393: Clarify mention of "middle" scope (#98839)Shantanu2022-12-121-2/+2
|
* [doc] fix typo (GH-99143)Doj2022-11-051-1/+1
|
* Doc: use "unnumbered" footnotes (#98954)Manuel Kaufmann2022-11-011-2/+2
| | | | | Use unnumbered footnote in this file to avoid reseting the footnotes numbering. Example: when building the tutorial into a PDF and using `latex_show_urls = "footnotes"`; this footnote become the number 8. However, without this change, the footnote shows the number 1.
* Missing PS1 prompt in tutorial example (GH-98921)Manuel Kaufmann2022-11-011-2/+3
|