Commit Graph
1020 Commits
Author SHA1 Message Date
Julien PalardandGitHub 21fa854792 bpo-42238: [doc] Some more make suspicious false positives. (GH-27945) 2021-08-26 10:45:01 +02:00
7cba23164c bpo-39452: Rewrite and expand __main__.rst (#26883)
Broadened scope of the document to explicitly discuss and differentiate between ``__main__.py`` in packages versus the ``__name__ == '__main__'`` expression (and the idioms that surround it), as well as ``import __main__``.

Co-authored-by: Géry Ogam <[email protected]>
Co-authored-by: Éric Araujo <[email protected]>
Co-authored-by: Łukasz Langa <[email protected]>
2021-08-24 19:01:41 +02:00
08830a4f75 bpo-42560: rewrite of Tkinter docs "life preserver" (GH-27842)
Co-authored-by: Łukasz Langa <[email protected]>
2021-08-23 20:30:53 +02:00
Serhiy StorchakaandGitHub 058fb35b57 bpo-44854: Remove trailing whitespaces (GH-27689) 2021-08-09 21:32:54 +03:00
Julien PalardandGitHub fbf10080bb bpo-42238: Fix small rst issue in NEWS.d/. (#27238) 2021-07-19 16:34:48 +02:00
Ned BatchelderandGitHub af4a2dcc40 docs: add the word 'official' (GH-26849) 2021-07-08 09:58:13 -05:00
Julien PalardandGitHub 01331f1a3c bpo-42238: rstlint: Add two new checks. (GH-26966) 2021-07-03 10:35:02 +02:00
Erlend Egeberg AaslandandGitHub 92d1064727 bpo-44106: Improve sqlite3 example database contents (GH-26027) 2021-05-19 10:41:19 +03:00
Petr ViktorinandGitHub b05955d6f5 bpo-43795: PEP 652 user documentation (GH-25668)
- Reformat the C API and ABI Versioning page (and extend/clarify a bit)
- Rewrite the stable ABI docs into a general text on C API Compatibility
- Add a list of Limited API contents, and notes for the individual items. 
- Replace `Include/README.rst` with a link to a devguide page with the same info
2021-05-11 07:04:33 -07:00
Pablo GalindoandGitHub 873275e64a Update references to master to point to main in customsourcelink.html (GH-25993) 2021-05-08 17:13:24 +01:00
Pablo GalindoandGitHub c40ab5b699 Update the SOURCE_URI in pyspecific.py to point to the new branch (GH-25977) 2021-05-08 03:43:23 +01:00
60ce8f0be6 bpo-36384: Leading zeros in IPv4 addresses are no longer tolerated (GH-25099)
Reverts commit e653d4d8e8 and makes
parsing even more strict. Like socket.inet_pton() any leading zero
is now treated as invalid input.

Signed-off-by: Christian Heimes <[email protected]>

Co-authored-by: Łukasz Langa <[email protected]>
2021-05-02 14:00:35 +02:00
Ken JinandGitHub 99fdd78200 bpo-43766: Fix TypeGuard docs (#25660) 2021-04-27 08:55:08 -07:00
Pablo GalindoandGitHub f5c5c0c362 Fix type group capture in the PEG highlight tool (GH-25464) 2021-04-18 00:18:13 +01:00
Victor StinnerandGitHub 62ec638648 bpo-43862: Enhance -W cmdline option documentation (GH-25439)
The -W format is "action:message:category:module:lineno".

Update also the Python manual page.
2021-04-16 19:12:14 +02:00
Erlend Egeberg AaslandandGitHub 3386ca0b36 bpo-20364: Improve sqlite3 placeholder docs (GH-25003) 2021-04-14 15:28:55 +03:00
Pablo GalindoandGitHub 20ac34772a Fix Sphinx errors in the documentation and re-activate the suspicious check (GH-25368)
The suspicious check is still executed as part of the release process and release managers have been
lately fixing some actual errors that the suspicious target can find. For this reason, reactivate the suspicious
until we decide what to do in a coordinated fashion.
2021-04-12 20:53:15 +01:00
Victor StinnerandGitHub f32d022147 bpo-43778: Fix Sphinx glossary_search extension (GH-25286)
Create the _static/ directory if it doesn't exist.

Add also constants for the static directory and the JSON filename.
2021-04-09 00:07:01 +02:00
dbfabcc0c3 Fixed linenumber missing when audit hook has an error (GH-24692)
See https://github.com/sphinx-doc/sphinx/issues/8932

Co-authored-by: tk0miya <[email protected]>
2021-03-01 22:59:58 +01:00
Pablo Galindo cc12888f9b Remove unused suspicious rule in the docs 2021-03-01 16:48:59 +00:00
145bf269df bpo-42128: Structural Pattern Matching (PEP 634) (GH-22917)
Co-authored-by: Guido van Rossum <[email protected]>
Co-authored-by: Talin <[email protected]>
Co-authored-by: Pablo Galindo <[email protected]>
2021-02-26 14:51:55 -08:00
Pablo GalindoandGitHub 58fb156edd bpo-42997: Improve error message for missing : before suites (GH-24292)
* Add to the peg generator a new directive ('&&') that allows to expect
  a token and hard fail the parsing if the token is not found. This
  allows to quickly emmit syntax errors for missing tokens.

* Use the new grammar element to hard-fail if the ':' is missing before
  suites.
2021-02-02 19:54:22 +00:00
Pablo GalindoandGitHub de833b6013 Fix 'make suspicious' for the itertools module (GH-24097) 2021-01-04 17:24:22 +00:00
Ammar AskarandGitHub 8c5d0347ef bpo-34398: Allow glossary results to show up on search page (GH-8773) 2020-12-18 20:00:51 +01:00
Julien PalardandGitHub b9735420aa bpo-42238: Check Misc/NEWS.d/next/ for reStructuredText issues. (GH-23802) 2020-12-18 10:48:08 +01:00
Matěj CeplandGitHub b63a620014 bpo-42579: Make workaround for various versions of Sphinx more robust (GH-23662)
The solution in gh#python/cpython#13236 is too strict because it
effectively requires the use of Sphinx >= 2.0. It is not too difficult to
make the same solution more robust so it works with all normal versions
of Sphinx.
2020-12-07 20:05:13 +00:00
Dong-hee NaandGitHub 09490a109f bpo-42042: Use ids attribute instead of names attribute (GH-22739) 2020-11-14 00:15:17 +09:00
Julien PalardandGitHub ee2549c2ba bpo-41028: Doc: Move switchers to docsbuild-scripts. (GH-20969) 2020-11-07 12:28:31 +01:00
Raymond HettingerandGitHub 148c76b27c Expand and clarify the "Invoking Descriptors" section of the Descriptor HowTo (GH-23078) 2020-11-01 09:10:06 -08:00
Teugea Ioan-TeodorandGitHub 3317466061 bpo-42061: Document __format__ for IP addresses (GH-23018)
Automerge-Triggered-By: GH:ericvsmith
2020-10-29 15:17:59 -07:00
Raymond HettingerandGitHub 8d3d7314d4 Create a primer section for the descriptor howto guide (GH-22906) 2020-10-23 12:55:39 -07:00
larryhastingsandGitHub 283f9a253b Remove 3.5 from Doc version switcher in master. (#22886) 2020-10-22 06:16:21 -07:00
Andre DelfinoandGitHub fb2e94692e Doc: Do not suggest s[::-1] for reversed order (GH-22457) 2020-10-21 17:25:07 +09:00
Raymond HettingerandGitHub 871934d4cf bpo-4356: Add key function support to the bisect module (GH-20556) 2020-10-19 22:04:01 -07:00
6595cb0af4 bpo-35293: Remove RemovedInSphinx40Warning (GH-22198)
* bpo-35293: Remove RemovedInSphinx40Warning

* Update Misc/NEWS.d/next/Documentation/2020-09-12-17-37-13.bpo-35293._cOwPD.rst

Co-authored-by: Victor Stinner <[email protected]>

* bpo-35293: Apply Victor's review

Co-authored-by: Victor Stinner <[email protected]>
2020-09-18 18:22:36 +09:00
Pablo GalindoandGitHub a5634c4067 bpo-41746: Add type information to asdl_seq objects (GH-22223)
* Add new capability to the PEG parser to type variable assignments. For instance:
```
       | a[asdl_stmt_seq*]=';'.small_stmt+ [';'] NEWLINE { a }
```

* Add new sequence types from the asdl definition (automatically generated)
* Make `asdl_seq` type a generic aliasing pointer type.
* Create a new `asdl_generic_seq` for the generic case using `void*`.
* The old `asdl_seq_GET`/`ast_seq_SET` macros now are typed.
* New `asdl_seq_GET_UNTYPED`/`ast_seq_SET_UNTYPED` macros for dealing with generic sequences.
* Changes all possible `asdl_seq` types to use specific versions everywhere.
2020-09-16 19:42:00 +01:00
Pablo GalindoandGitHub 5a4a963a6c Fix invalid escape sequences in the peg_highlight Sphinx extension (GH-22047) 2020-09-02 15:29:38 +01:00
72cabb2aa6 bpo-40939: Use the new grammar for the grammar specification documentation (GH-19969)
(We censor the heck out of actions and some other stuff using a custom "highlighter".)

Co-authored-by: Guido van Rossum <[email protected]>
2020-07-27 11:20:36 -07:00
Julien PalardandGitHub 7f03445d01 Doc: fix import of asdl.py when called from outside Doc/. (GH-21529) 2020-07-20 09:48:40 +02:00
Julien PalardandGitHub a103e73ce8 bpo-40742: Doc: fix parallel build. (GH-21237) 2020-07-06 22:28:15 +02:00
Florian DahlitzandGitHub 735d902b36 bpo-40798: Generate a different message for already removed elements (GH-20483) 2020-05-30 09:47:32 +02:00
Julien PalardandGitHub 19e3e00264 Doc: Python 3.10 in sidebar and version switcher. (GH-20209) 2020-05-19 14:26:43 +02:00
Batuhan TaskayaandGitHub b7a78ca74a bpo-40517: Implement syntax highlighting support for ASDL (GH-19967) 2020-05-07 13:57:26 -07:00
Raymond HettingerandGitHub eff870b618 Revert "bpo-40517: Implement syntax highlighting support for ASDL (#19928)" (#19950)
This reverts commit d60040ba22.
2020-05-05 22:33:55 -07:00
Batuhan TaskayaandGitHub d60040ba22 bpo-40517: Implement syntax highlighting support for ASDL (#19928) 2020-05-05 22:24:39 -07:00
39c34933fc Fix download.html (GH-18902)
`<tt>` is not allowed.

Co-authored-by: Kyle Stanley <[email protected]>
2020-03-11 13:23:24 +09:00
Serhiy StorchakaandGitHub 13d52c2686 bpo-34822: Simplify AST for subscription. (GH-9605)
* Remove the slice type.
* Make Slice a kind of the expr type instead of the slice type.
* Replace ExtSlice(slices) with Tuple(slices, Load()).
* Replace Index(value) with a value itself.

All non-terminal nodes in AST for expressions are now of the expr type.
2020-03-10 18:52:34 +02:00
opavlyukandGitHub 21da76d1f1 bpo-34788: Add support for scoped IPv6 addresses (GH-13772)
Automerge-Triggered-By: @asvetlov
2020-02-26 06:33:57 -08:00
Inada NaokiandGitHub f4800b8ed3 Doc: Change Python 2 status to EOL. (GH-17885) 2020-01-07 15:52:44 +09:00
David ColesandInada Naoki 386d00cc34 Remove use of deprecated array.fromstring method (GH-17332) 2019-11-26 15:31:09 +09:00