Berker Peksag
7c9da3e5ba
Remove redundant 'exc = True' line (GH-4357)
It can be removed after c28890fb42
8 years ago
Tom Floyer
bf9d317626
bpo-31810: added missing keywords to docs. ( #4140 )
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.
8 years ago
Barry Warsaw
93952f8815
Fix a grammatical problem and reword for clarity. ( #4257 )
bpo-31936
8 years ago
Barry Warsaw
191e313820
bpo-31799: Make module.__spec__ more discoverable ( #4010 )
bpo-31799: Make module.__spec__ more discoverable
8 years ago
Yury Selivanov
b8ab9d3fc8
bpo-31708: Allow async generator expressions in synchronous functions ( #3905 )
8 years ago
Yury Selivanov
faa135acbf
bpo-31709: Drop support for asynchronous __aiter__. ( #3903 )
8 years ago
kms70847
8d59aca4a9
Fix typo in Simple Statements documentation (GH-3809)
Replace "restriction" with "restrictions".
8 years ago
Guilherme Caminha
4a2d00cb45
bpo-31571: Remove duplicated info in Lexical Analysis documentation (GH-3691)
- Remove the second mention about the `u` prefix
- Remove the second mention about numeric literals do not include a sign
8 years ago
svelankar
9b47af6537
bpo-31501: Operator precedence description for arithmetic operators ( #3633 )
8 years ago
Mariatta
63c591c0b0
bpo-31487: Update F-strings doc example (GH-3627)
Shorten the comment to: "using integer format specifier"
8 years ago
Mariatta
f361897069
Improve f-strings documentation (GH-3604)
Provide additional examples of using format specifiers in f-strings
Added examples for using integer and date format specifiers.
8 years ago
Louie Lu
b8d1b9d7c6
Mention enum as an ex ( #2982 )
8 years ago
Nick Coghlan
5a8516701f
bpo-31344: Per-frame control of trace events (GH-3417)
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.
9 years ago
Benjamin Peterson
60dbed1850
link to legacy doc on the non-legacy website ( #3362 )
9 years ago
Benjamin Peterson
279a96206f
bpo-30736: upgrade to Unicode 10.0 ( #2344 )
Straightforward. While we're at it, though, strip trailing whitespace from generated tables.
9 years ago
Lisa Roach
64505a1f6c
bpo-30486: Allow setting cell value ( #1840 )
The cell_contents attribute of the cell object is now writable.
9 years ago
Mariatta
9efad1e5ae
bpo-17188: add missing periods at the end of sentences (GH-1875)
9 years ago
kms70847
9c972b5780
Improve grammar in The Import System documentation (GH-1862)
Replace `an ModuleNotFoundError` with `a ModuleNotFoundError`.
Replace `an path` with `a path`.
9 years ago
Aaron Hall, MBA
2b44e302ec
bpo-30449 Terse slots ( #1819 )
* correct __slots__ documentation with minimal changes
* add multiple inheritance info
* remove mapping from description
9 years ago
Naomi Ceder
43c8a9e39b
bpo-30372: Clarify that '__builtins__' is a CPython Implementation detail (GH-1725)
9 years ago
csabella
763557eac0
bpo-17188: DOC: Document 'from None' in raise statement ( #1671 )
Original patch by Dennis Mårtensson.
9 years ago
delirious-lettuce
3378b2062c
Fix typos in multiple `.rst` files ( #1668 )
9 years ago
Dominik Miedziński
af34e0a07b
Fix ModuleNotFoundError typo in import reference ( #1606 )
9 years ago
csabella
12b1c18098
bpo-30354: Update data model documentation for super() (GH-1561)
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.
9 years ago
Serhiy Storchaka
7e19dbc92e
bpo-28974: `object.__format__(x, '')` is now equivalent to `str(x)` ( #506 )
rather than `format(str(self), '')`.
9 years ago
Jim Fasarakis-Hilliard
f34c685020
Fix a trivial typo in global section ( #1497 )
9 years ago
UltimateCoder
8856940cf2
bpo-28315: Improve code examples in docs (GH-1372)
Replace
File "<stdin>", line 1, in ?
with
File "<stdin>", line 1, in <module>
9 years ago
Jelle Zijlstra
2e624690bd
bpo-29679: Implement @contextlib.asynccontextmanager ( #360 )
9 years ago
csabella
c6db4811f9
bpo-30052: Link `bytes` & `bytearray` to stdtypes not functions (GH-1271)
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.
9 years ago
Serhiy Storchaka
2e576f5aec
bpo-30144: Import collections ABC from collections.abc rather than collections. ( #1263 )
9 years ago
Serhiy Storchaka
85157cd89a
bpo-15718: Document the upper bound constrain on the __len__ return value. ( #1256 )
9 years ago
Serhiy Storchaka
997a4adea6
Remove outdated note about constraining of the bit shift right operand. ( #1258 )
The constrain was removed in bpo-29816.
9 years ago
cocoatomo
cdcac039fb
bpo-29952: Use usual terminology of dict (GH-917)
s/keys and elements/keys and values/
9 years ago
Amit Kumar
0ae7c8bd61
bpo-16011 clarify that 'in' always returns a boolean value
9 years ago
Ivan Levkivskyi
fad7f15606
Remove an outdated statement in execution model docs (GH-754)
9 years ago
Mariatta
d4e89287b3
bpo-28739: Document that f-strings cannot be used as docstring (GH-592)
9 years ago
Mariatta
1f5639c77f
bpo-26184: import.rst: Improve versionchanged note (GH-325)
9 years ago
Mariatta
6b4a5f45e2
bpo-26184: import.rst: Improve versionchanged note (GH-277)
Mention that an ImportError is raised when exec_module() is defined, but
create_module() is not.
9 years ago
Marco Buttu
46ce7599af
bpo-29648: import.rst: Add reference to create_module() (GH-290)
Add a reference to create_module(), in the first versionadded of section Loaders.
9 years ago
Jim Fasarakis-Hilliard
132ac381fe
Fix small typos in expressions.rst (GH-276)
9 years ago
Martin Panter
8dbb0ca573
Issue #12067 : Recommend that hash and equality be consistent
9 years ago
Berker Peksag
7b4e551091
Issue #29012 : Remove another outdated information
Patch by Jim Fasarakis-Hilliard.
9 years ago
Berker Peksag
14adafd6ee
Issue #29012 : Remove outdated information about __bases__
Patch by Jim Fasarakis-Hilliard.
9 years ago
Martin Panter
7106a51c71
Issue #28954 : Add missing comma to keyword argument syntax
9 years ago
Victor Stinner
509476b370
doc: Suggest to hash(tuple of attr) rather than XOR
Issue #28383 : __hash__ documentation recommends naive XOR to combine but this
is suboptimal. Update the doc to suggest to reuse the hash() method using a
tuple, with an example.
9 years ago
Yury Selivanov
03660041d2
Issue #28091 : Document PEP 525 & PEP 530.
Patch by Eric Appelt.
9 years ago
Yury Selivanov
4f9e4285d2
Issue #28091 : Document PEP 525 & PEP 530.
Patch by Eric Appelt.
(grafted from 78c8f450b8 )
9 years ago
Nick Coghlan
19d246745d
Issue #23722 : improve __classcell__ compatibility
Handling zero-argument super() in __init_subclass__ and
__set_name__ involved moving __class__ initialisation to
type.__new__. This requires cooperation from custom
metaclasses to ensure that the new __classcell__ entry
is passed along appropriately.
The initial implementation of that change resulted in abruptly
broken zero-argument super() support in metaclasses that didn't
adhere to the new requirements (such as Django's metaclass for
Model definitions).
The updated approach adopted here instead emits a deprecation
warning for those cases, and makes them work the same way they
did in Python 3.5.
This patch also improves the related class machinery documentation
to cover these details and to include more reader-friendly
cross-references and index entries.
9 years ago
Martin Panter
28540183c9
Another en → em dash fix for 3.6
9 years ago
Jason R. Coombs
f66f03bd35
Update docs to reflect new behavior around backslashes in expressions (not allowed), matching recent changes to PEP 498.
9 years ago