summaryrefslogtreecommitdiffstats
path: root/Doc/faq/programming.rst
Commit message (Collapse)AuthorAgeFilesLines
* [3.11] Resolve reference warnings in faq/programming.rst (GH-108150) (#108171)Miss Islington (bot)2023-08-201-3/+3
| | | | | | Resolve reference warnings in faq/programming.rst (GH-108150) (cherry picked from commit a390ec20f5a85b9c16e8708f117667783d08863c) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.11] GH-103484: Fix redirected permanently URLs (GH-104001) (#104088)Rafael Fontenelle2023-05-021-1/+1
| | | | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Oleg Iarygin <dralife@yandex.ru> Fix redirected permanently URLs (#104001)
* GH-101898: Fix missing term references for hashable definition (GH-101899)Miss Islington (bot)2023-02-141-1/+1
| | | | | | Fix missing term references for hashable definition (cherry picked from commit 3690688149dca11589af59b7704541336613199a) Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
* gh-55688: Add note about ending backslashes for raw strings (GH-94768)Miss Islington (bot)2022-12-281-0/+40
| | | | | | (cherry picked from commit b95b1b3b25b0a93a22c7d58ac5bd5870e62070a8) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com> Co-authored-by: hauntsaninja <hauntsaninja@gmail.com>
* gh-48496: Added example and link to faq for UnboundLocalError in reference ↵Miss Islington (bot)2022-12-221-0/+2
| | | | | | | (GH-93068) (cherry picked from commit f3db68e6e66ebb36e1b9cb30daba913ecc736169) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
* gh-84522: Add for-loop to apply-method-to-sequence FAQ (GH-94660)Miss Islington (bot)2022-11-111-3/+15
| | | | | (cherry picked from commit 97c493dd3543c7c3bb5319587c162f46271d4c5d) Co-authored-by: Samuel Sloniker <sam@kj7rrv.com>
* gh-96265: Formatting changes for faq/programming (GH-98242)Miss Islington (bot)2022-11-021-39/+48
| | | | | | | | | | | | | | | | | | | | * Formatting changes for faq/programming * Add missing method formatting, use non-literal formatting * Fix sphinx warnings * Some extra formatting missed earlier * More formatting suggestions from review Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> * Add missing colon, avoid referening external module (cherry picked from commit 0689b99bb8c4f6058af43a52effaa8a25609dbed) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com> Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-97709: Included newline separator in Mandelbrot set (GH-97737)Miss Islington (bot)2022-10-041-2/+2
| | | | | | | | Included newline separator in Mandelbrot set Now the Mandelbrot set one-liner example on separates the lines with a '\n' character. (cherry picked from commit 49802605f8e47c5c7ddc8a6cecdf4afe44765586) Co-authored-by: matheusja <matheusjahnke@hotmail.com>
* gh-96959: Update more HTTP links (GH-97536)Miss Islington (bot)2022-09-271-2/+2
| | | | | | | Use HTTPS for documents which are available by both HTTP and HTTPS links, but there is no redirection from HTTP to HTTPS or vice versa. (cherry picked from commit dd53b79de0ea98af6a11481217a961daef4e9774) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-96959: Update HTTP links which are redirected to HTTPS (GH-96961)Miss Islington (bot)2022-09-251-1/+1
| | | | | (cherry picked from commit db39050396a104c73d0da473a2f00a62f9dfdfaa) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* GH-96851: Add link to FAQ entry for caching method calls. (GH-96902)Miss Islington (bot)2022-09-181-0/+2
| | | | | (cherry picked from commit bbc24b2bd569108b957ed24c5a95ffeaf8cde0db) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* gh-91838: Resolve HTTP links which redirect to HTTPS (GH-95642)Miss Islington (bot)2022-08-041-1/+1
| | | | | | | It updates links which redirect to HTTPS with different authority or path. (cherry picked from commit d0d0154443cafb2f0a2cdfb6a1267d80cce8388e) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.11] gh-91838: Use HTTPS links in docs for resources which redirect to ↵Serhiy Storchaka2022-08-041-1/+1
| | | | | | | | | | | | HTTPS (GH-95527) (GH-95643) If an HTTP link is redirected to a same looking HTTPS link, the latter can be used directly without changes in readability and behavior. It protects from a men-in-the-middle attack. This change does not affect Python examples.. (cherry picked from commit f79547a429d5c90af83a0da821e082cba20d4712) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Docs: remove redundant "adverb-adjective" hyphens from compound modifiers ↵Miss Islington (bot)2022-07-051-2/+2
| | | | | | | | (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>
* [3.11] gh-85023: [doc] clarify parameters vs arguments explanation in FAQ ↵Irit Katriel2022-06-261-2/+3
| | | | | | | | | (GH-94282) (GH-94311) (cherry picked from commit d71f5adc41569c2d626552269797e0545fc9122c) Co-authored-by: Arun Mani J <49952138+arun-mani-j@users.noreply.github.com> Co-authored-by: Arun Mani J <49952138+arun-mani-j@users.noreply.github.com>
* gh-93851: Fix all broken links in Doc/ (GH-93853) (GH-94076)Miss Islington (bot)2022-06-211-1/+1
| | | | | (cherry picked from commit f62ff97f31a775cc7956adeae32c14e7c85bdc15) Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
* Fix typo in Programming FAQ (#92083)Matt Harding2022-05-021-1/+1
| | | I believe the word "with" was missing here.
* Clarify that this sentence applies to the above example. GH-32405Raymond Hettinger2022-04-081-3/+3
|
* Fix a typo in Doc/faq/programming.rst (GH-31243)Cooper Lees2022-02-141-1/+1
| | | is not longer used -> is no longer used
* Fix minor grammar error (#31325)Scott Noyes2022-02-141-1/+1
| | | "an" followed by consonant should be "a"
* bpo-45846: Fix capitalisation of Van Rossum at the start of sentence (GH-29641)JMcB2021-11-201-1/+1
|
* bpo-20692: Add Programming FAQ entry for 1.__class__ error. (GH-28918)Terry Jan Reedy2021-10-131-0/+21
| | | To avoid error, add either space or parentheses.
* bpo-4442: Document use of __new__ for subclasses of immutable types (GH-27866)Raymond Hettinger2021-08-221-0/+49
|
* Remove dubious suggestion (GH-26789)Raymond Hettinger2021-06-191-18/+0
| | | Remove the weakref example. If a new instance is created and the same arguments are passes, it raises a ReferenceError.
* bpo-44310: Add a FAQ entry for caching method calls (GH-26731)Raymond Hettinger2021-06-171-0/+97
|
* bpo-30757: Improve "How to make stand-alone binaries" FAQ (GH-26309)Erlend Egeberg Aasland2021-05-221-7/+10
| | | | Co-authored-by: denfromufa <denfromufa@users.noreply.github.com> Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
* [doc] Do some polishing in IDEs section (GH-22070)Andre Delfino2021-04-291-12/+12
|
* Fix broken links and improve stand-alone tools list in FAQ GH-22124Andre Delfino2021-04-261-4/+5
|
* Doc: Try to enhance wording on circular imports. (GH-24705)Julien Palard2021-04-131-10/+10
|
* bpo-20503: Show how isinstance() works with ABC registered classes. (GH-25175)Raymond Hettinger2021-04-051-0/+35
|
* bpo-43325: Add FAQ entry for identity tests (GH-25168)Raymond Hettinger2021-04-041-0/+87
|
* Doc: Do not suggest `s[::-1]` for reversed order (GH-22457)Andre Delfino2020-10-211-6/+1
|
* Doc: Do not encourage using a base class name in a derived class (GH-22177)Andre Delfino2020-10-211-6/+6
|
* bpo-40341: Remove some "discouraged solutions" in Doc/faq/programming.rst ↵Zackery Spytz2020-10-161-21/+1
| | | | (GH-22726)
* bpo-41774: Tweak new programming FAQ entry (GH-22562)Terry Jan Reedy2020-10-051-1/+1
| | | Remove mention of space in "remove multiple items from list".
* [doc] Update references to NumPy (GH-22458)Andre Delfino2020-10-011-1/+1
| | | Numeric(al) Python to NumPy. It seems the old name hasn't been used for some time.
* bpo-41774: Add programming FAQ entry (GH-22402)Terry Jan Reedy2020-09-291-0/+15
| | | | | In the "Sequences (Tuples/Lists)" section, add "How do you remove multiple items from a list".
* Revert "Fix all Python Cookbook links (#22205)" (GH-22424)Andre Delfino2020-09-271-1/+1
| | | This commit reverts commit ac0333e1e117b7f61ed7ef1dbcdb6e515ada603b as the original links are working again and they provide extended features such as comments and alternative versions.
* [doc] Teach 0-args form of super in Programming FAQ (GH-22176)Andre Delfino2020-09-201-8/+7
|
* Fix all Python Cookbook links (#22205)Andre Delfino2020-09-151-1/+1
|
* Remove reference to Boa Constructor. (GH-22012)Andre Delfino2020-09-021-6/+0
|
* [doc] Remove references to PyChecker. (GH-22011)Andre Delfino2020-09-021-12/+4
|
* Doc: Add output to example code in programming FAQ (GH-21346)Jiajie Zhong2020-08-081-34/+37
| | | | | Add output hint to document, part faq/programming, section [How do I write a function with output parameters (call by reference)?](https://docs.python.org/3/faq/programming.html#how-do-i-write-a-function-with-output-parameters-call-by-reference). This patch make the output hint just like prefix code block.
* bpo-40348: Fix typos in the programming FAQ (GH-19729)Zackery Spytz2020-04-271-2/+2
|
* bpo-40340: Separate examples more clearly in the programming FAQ (GH-19688)Cajetan Rodrigues2020-04-241-4/+5
|
* bpo-39136: Fixed typos (GH-17720)Gurupad Hegde2019-12-281-1/+1
| | | | | funtion -> function; configuraton -> configuration; defintitions -> definitions; focusses -> focuses; necesarily -> necessarily; follwing -> following; Excape -> Escape,
* bpo-38237: Make pow's arguments have more descriptive names and be keyword ↵Ammar Askar2019-09-211-14/+11
| | | | | | | | | | | | passable (GH-16302) Edit: `math.pow` changes removed on Mark's request. https://bugs.python.org/issue38237 Automerge-Triggered-By: @rhettinger
* bpo-36167: fix an incorrect capitalization (GH-14482)avinassh2019-08-291-1/+1
|
* bpo-37456: Slash ('/') is now part of syntax. (GH-14627)Terry Jan Reedy2019-07-061-4/+0
|
* Use more PEP 570 syntax in the documentation. (GH-13720)Serhiy Storchaka2019-06-011-2/+2
|