Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | F-strings docs: link to Format Specifiers (GH-4888) | Mariatta | 2017-12-15 | 1 | -1/+2 |
| | | | Link to the Format Specification Mini Language section from f-strings' documentation. | ||||
* | bpo-32225: Implementation of PEP 562 (#4731) | Ivan Levkivskyi | 2017-12-14 | 1 | -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 Peterson | 2017-12-09 | 1 | -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 Storchaka | 2017-12-01 | 1 | -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 Peksag | 2017-11-11 | 1 | -1/+0 |
| | | | It can be removed after https://github.com/python/peps/commit/c28890fb421c906241da6da718f9eacc5a3109ee | ||||
* | bpo-31810: added missing keywords to docs. (#4140) | Tom Floyer | 2017-11-08 | 1 | -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 Warsaw | 2017-11-03 | 1 | -5/+4 |
| | | | bpo-31936 | ||||
* | bpo-31799: Make module.__spec__ more discoverable (#4010) | Barry Warsaw | 2017-10-17 | 1 | -2/+3 |
| | | | | bpo-31799: Make module.__spec__ more discoverable | ||||
* | bpo-31708: Allow async generator expressions in synchronous functions (#3905) | Yury Selivanov | 2017-10-06 | 1 | -8/+10 |
| | |||||
* | bpo-31709: Drop support for asynchronous __aiter__. (#3903) | Yury Selivanov | 2017-10-06 | 1 | -44/+9 |
| | |||||
* | Fix typo in Simple Statements documentation (GH-3809) | kms70847 | 2017-09-28 | 1 | -1/+1 |
| | | | Replace "restriction" with "restrictions". | ||||
* | bpo-31571: Remove duplicated info in Lexical Analysis documentation (GH-3691) | Guilherme Caminha | 2017-09-25 | 1 | -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) | svelankar | 2017-09-18 | 1 | -2/+2 |
| | |||||
* | bpo-31487: Update F-strings doc example (GH-3627) | Mariatta | 2017-09-17 | 1 | -1/+1 |
| | | | Shorten the comment to: "using integer format specifier" | ||||
* | Improve f-strings documentation (GH-3604) | Mariatta | 2017-09-16 | 1 | -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 Lu | 2017-09-13 | 1 | -2/+2 |
| | |||||
* | bpo-31344: Per-frame control of trace events (GH-3417) | Nick Coghlan | 2017-09-08 | 1 | -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 Peterson | 2017-09-05 | 1 | -1/+1 |
| | |||||
* | bpo-30736: upgrade to Unicode 10.0 (#2344) | Benjamin Peterson | 2017-06-23 | 1 | -2/+2 |
| | | | Straightforward. While we're at it, though, strip trailing whitespace from generated tables. | ||||
* | bpo-30486: Allow setting cell value (#1840) | Lisa Roach | 2017-06-08 | 1 | -0/+6 |
| | | | The cell_contents attribute of the cell object is now writable. | ||||
* | bpo-17188: add missing periods at the end of sentences (GH-1875) | Mariatta | 2017-05-30 | 1 | -2/+2 |
| | |||||
* | Improve grammar in The Import System documentation (GH-1862) | kms70847 | 2017-05-30 | 1 | -6/+6 |
| | | | | Replace `an ModuleNotFoundError` with `a ModuleNotFoundError`. Replace `an path` with `a path`. | ||||
* | bpo-30449 Terse slots (#1819) | Aaron Hall, MBA | 2017-05-26 | 1 | -14/+15 |
| | | | | | | | | * correct __slots__ documentation with minimal changes * add multiple inheritance info * remove mapping from description | ||||
* | bpo-30372: Clarify that '__builtins__' is a CPython Implementation detail ↵ | Naomi Ceder | 2017-05-22 | 1 | -9/+9 |
| | | | | (GH-1725) | ||||
* | bpo-17188: DOC: Document 'from None' in raise statement (#1671) | csabella | 2017-05-20 | 1 | -2/+20 |
| | | | | | Original patch by Dennis Mårtensson. | ||||
* | Fix typos in multiple `.rst` files (#1668) | delirious-lettuce | 2017-05-19 | 1 | -1/+1 |
| | |||||
* | Fix ModuleNotFoundError typo in import reference (#1606) | Dominik Miedziński | 2017-05-16 | 1 | -1/+1 |
| | |||||
* | bpo-30354: Update data model documentation for super() (GH-1561) | csabella | 2017-05-15 | 1 | -6/+6 |
| | | | | | | | | | | The data model section of the language reference was written well before the zero-argument form of super() was added. To avoid giving the impression that they're doing something unusual, this updates the description of `__new__` and `__init__` to use the zero-argument form. Patch by Cheryl Sabella. | ||||
* | bpo-28974: `object.__format__(x, '')` is now equivalent to `str(x)` (#506) | Serhiy Storchaka | 2017-05-13 | 1 | -0/+4 |
| | | | | rather than `format(str(self), '')`. | ||||
* | Fix a trivial typo in global section (#1497) | Jim Fasarakis-Hilliard | 2017-05-08 | 1 | -1/+1 |
| | |||||
* | bpo-28315: Improve code examples in docs (GH-1372) | UltimateCoder | 2017-05-03 | 1 | -1/+1 |
| | | | | | | Replace File "<stdin>", line 1, in ? with File "<stdin>", line 1, in <module> | ||||
* | bpo-29679: Implement @contextlib.asynccontextmanager (#360) | Jelle Zijlstra | 2017-05-01 | 1 | -0/+2 |
| | |||||
* | bpo-30052: Link `bytes` & `bytearray` to stdtypes not functions (GH-1271) | csabella | 2017-04-26 | 1 | -8/+8 |
| | | | | | | | | | | Builtin container types have two potential link targets in the docs: - their entry in the list of builtin callables - their type documentation This change brings `bytes` and `bytearray` into line with other container types by having cross-references default to linking to their type documentation, rather than their builtin callable entry. | ||||
* | bpo-30144: Import collections ABC from collections.abc rather than ↵ | Serhiy Storchaka | 2017-04-24 | 1 | -3/+3 |
| | | | | collections. (#1263) | ||||
* | bpo-15718: Document the upper bound constrain on the __len__ return value. ↵ | Serhiy Storchaka | 2017-04-23 | 1 | -0/+9 |
| | | | | (#1256) | ||||
* | Remove outdated note about constraining of the bit shift right operand. (#1258) | Serhiy Storchaka | 2017-04-22 | 1 | -5/+0 |
| | | | The constrain was removed in bpo-29816. | ||||
* | bpo-29952: Use usual terminology of dict (GH-917) | cocoatomo | 2017-03-31 | 1 | -1/+1 |
| | | | s/keys and elements/keys and values/ | ||||
* | bpo-16011 clarify that 'in' always returns a boolean value | Amit Kumar | 2017-03-28 | 1 | -9/+10 |
| | |||||
* | Remove an outdated statement in execution model docs (GH-754) | Ivan Levkivskyi | 2017-03-23 | 1 | -6/+0 |
| | |||||
* | bpo-28739: Document that f-strings cannot be used as docstring (GH-592) | Mariatta | 2017-03-10 | 1 | -0/+11 |
| | |||||
* | bpo-26184: import.rst: Improve versionchanged note (GH-325) | Mariatta | 2017-02-26 | 1 | -1/+1 |
| | |||||
* | bpo-26184: import.rst: Improve versionchanged note (GH-277) | Mariatta | 2017-02-26 | 1 | -2/+5 |
| | | | | Mention that an ImportError is raised when exec_module() is defined, but create_module() is not. | ||||
* | bpo-29648: import.rst: Add reference to create_module() (GH-290) | Marco Buttu | 2017-02-26 | 1 | -1/+1 |
| | | | Add a reference to create_module(), in the first versionadded of section Loaders. | ||||
* | Fix small typos in expressions.rst (GH-276) | Jim Fasarakis-Hilliard | 2017-02-24 | 1 | -2/+2 |
| | |||||
* | Issues #12067: Merge hash recommendation from 3.5 | Martin Panter | 2017-01-29 | 1 | -0/+4 |
|\ | |||||
| * | Issue #12067: Recommend that hash and equality be consistent | Martin Panter | 2017-01-29 | 1 | -0/+4 |
| | | |||||
* | | Issue #29012: Merge from 3.5 | Berker Peksag | 2017-01-03 | 1 | -5/+4 |
|\ \ | |/ | |||||
| * | Issue #29012: Remove another outdated information | Berker Peksag | 2017-01-03 | 1 | -3/+3 |
| | | | | | | | | Patch by Jim Fasarakis-Hilliard. | ||||
* | | Issue #29012: Merge from 3.5 | Berker Peksag | 2017-01-02 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue #29012: Remove outdated information about __bases__ | Berker Peksag | 2017-01-02 | 1 | -1/+1 |
| | | | | | | | | Patch by Jim Fasarakis-Hilliard. |