summaryrefslogtreecommitdiffstats
path: root/Doc/reference
Commit message (Collapse)AuthorAgeFilesLines
* closes bpo-28955: Clarified comparisons between NaN and number in reference ↵Tony Flury2018-09-141-6/+5
| | | | | | documentation (GH-5982) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* Fix HTML formatting in datamodel.rst (GH-8693)Berker Peksag2018-08-061-3/+3
|
* Use 'for example' instead of 'in other words' in compound statement doc ↵Andrés Delfino2018-07-301-1/+1
| | | | (GH-8401)
* Fix typo: variables(s) (GH-8482)Andrés Delfino2018-07-261-1/+1
| | | Remove extra `(s)` in the documentation of `compound_stmts`.
* bpo-33702: Add some missing links in production lists and do a little polish ↵Andrés Delfino2018-07-073-25/+25
| | | | (GH-7259)
* bpo-33877: Remove UNIX qualification for running complete programs (GH-7744)Andrés Delfino2018-06-221-5/+6
| | | The statement is true for Windows (and macOS) also.
* bpo-33847: Add '@' operator entry to index (GH-7669)Andrés Delfino2018-06-151-1/+3
|
* bpo-33852: Remove misplaced parentheses around 'list'. (GH-7672)Andrés Delfino2018-06-151-1/+1
| | | 'expresson list' refers to the grammar term 'expression_list' in the subscription production.
* bpo-33766: Document that end of file or string is a newline (GH-7383)Ammar Askar2018-06-091-5/+6
|
* update to Unicode 11.0.0 (closes bpo-33778) (GH-7439)Benjamin Peterson2018-06-071-2/+2
| | | Also, standardize indentation of generated tables.
* Fix typo in datamodel.rst (GH-6964)Zach Mitchell2018-06-021-1/+1
| | | This is a simple grammatical fix correcting "...object whose `__self__` attributes is ..." to "...object whose `__self__` attribute is ...".
* Fix lambda parameters being refered as arguments (GH-7037)Andrés Delfino2018-05-221-2/+2
|
* bpo-23722: Raise a RuntimeError for absent __classcell__. (GH-6931)Serhiy Storchaka2018-05-201-2/+1
| | | A DeprecationWarning was emitted in Python 3.6-3.7.
* bpo-23722: Fix docs for future __classcell__ changes. (GH-6999)Serhiy Storchaka2018-05-201-1/+1
|
* bpo-32996: The bulk of What's New in Python 3.7 (GH-6978)Elvis Pranskevichus2018-05-201-0/+2
|
* bpo-32717: Document PEP 560 (GH-6726)Ivan Levkivskyi2018-05-081-0/+37
|
* Clarify that __path__ can't be just any value (GH-6554)Brett Cannon2018-04-201-2/+1
|
* bpo-33260: Regenerate token.py after removing ASYNC and AWAIT. (GH-6447)Serhiy Storchaka2018-04-111-1/+1
|
* bpo-32489: Allow 'continue' in 'finally' clause. (GH-5822)Serhiy Storchaka2018-03-182-9/+9
|
* bpo-26701: Improve documentation for the rounding special methods. (#6054)Serhiy Storchaka2018-03-101-12/+18
|
* bpo-26701: Add documentation for __trunc__ (GH-6022)Eric Appelt2018-03-101-0/+9
| | | | `int` fails back to `__trunc__` is `__int__` isn't defined, so cover that in the docs.
* bpo-30579: Docs for dynamic traceback creation (GH-5653)Nick Coghlan2018-02-131-12/+34
|
* bpo-8722: Document __getattr__ behavior with AttributeError in property ↵Cheryl Sabella2018-02-051-4/+6
| | | | | | | (GH-4754) When `__getattr__` is implemented, attribute lookup will always fall back to that, even if the initial failure comes from `__getattribute__` or a descriptor's `__get__` method (including property methods).
* bpo-10544: Disallow "yield" in comprehensions and generator expressions. ↵Serhiy Storchaka2018-02-041-14/+9
| | | | (GH-4564)
* bpo-32735: Fix typo in f-strings datetime format specifier example (GH-5464)Cheryl Sabella2018-01-311-1/+1
| | | | The f-string example for using datetime format specifier does not match the given output. Changed the format from %b to %B so it matches the output of "January".
* bpo-27505: Add change notes in module attribute docs (GH-5320)Cheryl Sabella2018-01-271-0/+11
| | | | | | Make it clear that setting __class__ on a module has worked since 3.5, but support for __getattr__ and __dir__ on module instances requires 3.7+ Patch by Cheryl Sabella.
* String annotations [PEP 563] (#4390)Guido van Rossum2018-01-262-12/+28
| | | | | | | | * Document `from __future__ import annotations` * Provide plumbing and tests for `from __future__ import annotations` * Implement unparsing the AST back to string form This is required for PEP 563 and as such only implements a part of the unparsing process that covers expressions.
* Lexical Analysis ref doc: Fix a typo in the string concatenation internal ↵İsmail Arılık2018-01-121-1/+1
| | | | | | | link (GH-5157) In lexical analysis reference documentation, the internal link to the string literal concatenation section was written as`.. _string-catenation:`. Changed that to `.. _string-concatenation:`.
* Improve the F-strings and format specifier documentation (GH-4931)KatherineMichel2017-12-191-4/+5
| | | | Mention that the format-specifier mini language in f-strings is the same one used by str.format.
* bpo-32377: improve __del__ docs and fix mention about resurrection (#4927)Antoine Pitrou2017-12-191-39/+47
| | | | | | * Fix #32377: improve __del__ docs and fix mention about resurrection * Mention that CPython only calls __del__ once.
* F-strings docs: link to Format Specifiers (GH-4888)Mariatta2017-12-151-1/+2
| | | Link to the Format Specification Mini Language section from f-strings' documentation.
* bpo-32225: Implementation of PEP 562 (#4731)Ivan Levkivskyi2017-12-141-0/+45
| | | | | Implement PEP 562: module __getattr__ and __dir__. The implementation simply updates module_getattro and module_dir.
* closes bpo-31650: PEP 552 (Deterministic pycs) implementation (#4575)Benjamin Peterson2017-12-091-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | Python now supports checking bytecode cache up-to-dateness with a hash of the source contents rather than volatile source metadata. See the PEP for details. While a fairly straightforward idea, quite a lot of code had to be modified due to the pervasiveness of pyc implementation details in the codebase. Changes in this commit include: - The core changes to importlib to understand how to read, validate, and regenerate hash-based pycs. - Support for generating hash-based pycs in py_compile and compileall. - Modifications to our siphash implementation to support passing a custom key. We then expose it to importlib through _imp. - Updates to all places in the interpreter, standard library, and tests that manually generate or parse pyc files to grok the new format. - Support in the interpreter command line code for long options like --check-hash-based-pycs. - Tests and documentation for all of the above.
* bpo-10544: Deprecate "yield" in comprehensions and generator expressions. ↵Serhiy Storchaka2017-12-011-8/+53
| | | | | | | | | | | | | | (GH-4579) The current behaviour of yield expressions inside comprehensions and generator expressions is essentially an accident of implementation - it arises implicitly from the way the compiler handles yield expressions inside nested functions and generators. Since the current behaviour wasn't deliberately designed, and is inherently confusing, we're deprecating it, with no current plans to reintroduce it. Instead, our advice will be to use a named nested generator definition for cases where this behaviour is desired.
* Remove redundant 'exc = True' line (GH-4357)Berker Peksag2017-11-111-1/+0
| | | It can be removed after https://github.com/python/peps/commit/c28890fb421c906241da6da718f9eacc5a3109ee
* bpo-31810: added missing keywords to docs. (#4140)Tom Floyer2017-11-081-7/+7
| | | | | async and await keywords has been merged into upstream, but they are all missing in the lexical analysis docs. This change adds them to the appropriate keywords section in documentation.
* Fix a grammatical problem and reword for clarity. (#4257)Barry Warsaw2017-11-031-5/+4
| | | bpo-31936
* bpo-31799: Make module.__spec__ more discoverable (#4010)Barry Warsaw2017-10-171-2/+3
| | | | bpo-31799: Make module.__spec__ more discoverable
* bpo-31708: Allow async generator expressions in synchronous functions (#3905)Yury Selivanov2017-10-061-8/+10
|
* bpo-31709: Drop support for asynchronous __aiter__. (#3903)Yury Selivanov2017-10-061-44/+9
|
* Fix typo in Simple Statements documentation (GH-3809)kms708472017-09-281-1/+1
| | | Replace "restriction" with "restrictions".
* bpo-31571: Remove duplicated info in Lexical Analysis documentation (GH-3691)Guilherme Caminha2017-09-251-7/+0
| | | | - Remove the second mention about the `u` prefix - Remove the second mention about numeric literals do not include a sign
* bpo-31501: Operator precedence description for arithmetic operators (#3633)svelankar2017-09-181-2/+2
|
* bpo-31487: Update F-strings doc example (GH-3627)Mariatta2017-09-171-1/+1
| | | Shorten the comment to: "using integer format specifier"
* Improve f-strings documentation (GH-3604)Mariatta2017-09-161-0/+6
| | | | | Provide additional examples of using format specifiers in f-strings Added examples for using integer and date format specifiers.
* Mention enum as an ex (#2982)Louie Lu2017-09-131-2/+2
|
* bpo-31344: Per-frame control of trace events (GH-3417)Nick Coghlan2017-09-081-1/+11
| | | | | | | | | f_trace_lines: enable/disable line trace events f_trace_opcodes: enable/disable opcode trace events These are intended primarily for testing of the interpreter itself, as they make it much easier to emulate signals arriving at unfortunate times.
* link to legacy doc on the non-legacy website (#3362)Benjamin Peterson2017-09-051-1/+1
|
* bpo-30736: upgrade to Unicode 10.0 (#2344)Benjamin Peterson2017-06-231-2/+2
| | | Straightforward. While we're at it, though, strip trailing whitespace from generated tables.
* bpo-30486: Allow setting cell value (#1840)Lisa Roach2017-06-081-0/+6
| | | The cell_contents attribute of the cell object is now writable.