Raymond Hettinger
06e18a7c24
Issue #26511 : Reference the id() function in the 'is' and 'is not' docs
10 years ago
Guido van Rossum
015d874626
Issue #28076 : Variable annotations should be mangled for private names.
By Ivan Levkivskyi.
10 years ago
Brett Cannon
a721abac29
Issue #26331 : Implement the parsing part of PEP 515.
Thanks to Georg Brandl for the patch.
10 years ago
Eric Snow
68f4dd8b01
Doc updates for PEPs 520 and 468.
10 years ago
Guido van Rossum
6cff8744a0
Issue #27999 : Make "global after use" a SyntaxError, and ditto for nonlocal.
Patch by Ivan Levkivskyi.
10 years ago
Yury Selivanov
f8cb8a16a3
Issue #27985 : Implement PEP 526 -- Syntax for Variable Annotations.
Patch by Ivan Levkivskyi.
10 years ago
Eric Snow
4f29e75289
Issue #24254 : Drop cls.__definition_order__.
10 years ago
Eric Snow
b957b0c2bc
Issue #28030 : Update the language reference for PEP 468.
10 years ago
R David Murray
110b6fecbb
#27364 : Deprecate invalid escape strings in str/byutes.
Patch by Emanuel Barry, reviewed by Serhiy Storchaka and Martin Panter.
10 years ago
Eric Snow
46f97b85a8
Issue #15767 : Use ModuleNotFoundError.
10 years ago
Eric Snow
92a6c170e6
Issue #24254 : Preserve class attribute definition order.
10 years ago
Raymond Hettinger
7ea386e56e
Issue 19504: Change "customise" to "customize" American spelling.
10 years ago
Guido van Rossum
97c1adf393
Anti-registration of various ABC methods.
- Issue #25958 : Support "anti-registration" of special methods from
various ABCs, like __hash__, __iter__ or __len__. All these (and
several more) can be set to None in an implementation class and the
behavior will be as if the method is not defined at all.
(Previously, this mechanism existed only for __hash__, to make
mutable classes unhashable.) Code contributed by Andrew Barnert and
Ivan Levkivskyi.
10 years ago
Brett Cannon
6336fb2734
Issue #27712 : Fix some typos in the import docs.
Thanks to Xiang Zhang for the patch.
10 years ago
Berker Peksag
6cafececbf
Issue #26576 : Clarify that the @deco syntax is not always an equivalent of f = deco(f)
Patch by Chris Angelico.
10 years ago
Nick Coghlan
607e1c4c44
Issue 27366: PEP 487 docs updates
- Porting note for type keyword arg handling
- __init_subclass__ note regarding metaclass hint
10 years ago
Berker Peksag
01d1719062
Issue #27366 : Tweak PEP 487 documentation
* Added versionadded directives
* Deleted duplicate sentence from __init_subclass__ docstring
* Modernized tests
10 years ago
Nick Coghlan
d78448e912
Issue #27366 : Implement PEP 487
- __init_subclass__ called when new subclasses defined
- __set_name__ called when descriptors are part of a
class definition
10 years ago
Martin Panter
1050d2d0c7
Issue #26462 : Doc: reduce literal_block warnings, fix syntax highlighting.
Patch by Julien Palard.
10 years ago
Martin Panter
bae5d81f5d
Issue #24314 : Fix doc links for general attributes like __name__, __dict__
10 years ago
Martin Panter
ed74e243c6
Issue #24136 : Adjust f-strings doc for interable unpacking
10 years ago
Martin Panter
0c0da48aed
Issue #24136 : Document generalized unpacking, PEP 448
Based on patches by Konstantin Molchanov and Neil Girdhar.
10 years ago
Yury Selivanov
a6f6edbda8
Issue #27243 : Fix __aiter__ protocol
10 years ago
Martin Panter
7d7a11b5d7
Issue #23275 : Backport target list assignment documentation fixes
10 years ago
R David Murray
dd4fcf52f4
#26829 : Clarify that namespace is copied to a new __dict__ in instance creation.
Patch by Emily Morehouse.
10 years ago
Tommy Beadle
e9b8403a1f
[Issue 15476] Make "code object" its own entry in the index
10 years ago
Berker Peksag
094c9c921c
Issue #23275 : Allow () = iterable assignment syntax
Documentation updates by Martin Panter.
10 years ago
Ned Deily
cec95813b2
Issue #27049 : fix doc typo
10 years ago
Benjamin Peterson
54044d605f
class definitions only get argument lists ( closes #27042 )
10 years ago
Benjamin Peterson
bc7ee43a6d
Backed out changeset 71ff2235bb4c ( closes #27042 )
10 years ago
Serhiy Storchaka
dba903993a
Issue #23921 : Standardized documentation whitespace formatting.
Original patch by James Edwards.
10 years ago
Serhiy Storchaka
c7cc9850d4
Issue #26156 : Make expressions grammar description more semantically correct.
10 years ago
Martin Panter
f0564164ba
Fix typos in comments, documentation and test method names
10 years ago
Serhiy Storchaka
6dff0205b7
Issue #26736 : Used HTTPS for external links in the documentation if possible.
10 years ago
Berker Peksag
4f35d79d65
Issue #18572 : Remove redundant note about surrogates in string escape doc
10 years ago
Serhiy Storchaka
e4ba872543
Remove redundant leading zeroes in PEP references.
10 years ago
Yury Selivanov
77c96813ab
Issue #25887 : Raise a RuntimeError when a coroutine is awaited more than once.
10 years ago
Martin Panter
bc1ee460dc
Issue #25179 : Documentation for formatted string literals aka f-strings
Some of the inspiration and wording is taken from the text of PEP 498 by Eric
V. Smith, and the existing str.format() documentation.
10 years ago
Zachary Ware
2b818142d1
Python for .NET has moved to Github.
Reported by Denis Akhiyarov on docs@
10 years ago
Brett Cannon
849113af6b
Issue #25791 : Warn when __package__ != __spec__.parent.
In a previous change, __spec__.parent was prioritized over
__package__. That is a backwards-compatibility break, but we do
eventually want __spec__ to be the ground truth for module details. So
this change reverts the change in semantics and instead raises an
ImportWarning when __package__ != __spec__.parent to give people time
to adjust to using spec objects.
10 years ago
Brett Cannon
63b8505281
Issue #25791 : Raise an ImportWarning when __spec__ or __package__ are
not defined for a relative import.
This is the start of work to try and clean up import semantics to rely
more on a module's spec than on the myriad attributes that get set on
a module. Thanks to Rose Ames for the patch.
10 years ago
Brett Cannon
f4f25fe576
Issue #25500 : Fix the language reference to not claim that import
statements search for __import__ in the global scope.
Thanks to Sergei Lebedev for finding the documentation bug.
10 years ago
R David Murray
51d3f8b0ba
#25679 : spelling fix
10 years ago
Martin Panter
d2ad5718ad
Issue #25523 : Further a-to-an corrections new in 3.5
10 years ago
Berker Peksag
edb9111d41
Issue #25418 : Fix markup in object.__hash__ documentation
Patch by TAKASE Arihiro.
10 years ago
Martin Panter
d21e0b52f1
Issue #25161 : Add full stops in documentation; patch by Takase Arihiro
10 years ago
Martin Panter
aa0da864b8
Issue #12067 : Rewrite Comparisons section in the language reference
Some of the details of comparing mixed types were incorrect or ambiguous.
NotImplemented is only relevant at a lower level than the Expressions
chapter. Added details of comparing range() objects, and default behaviour
and consistency suggestions for user-defined classes. Patch from Andy Maier.
11 years ago
Robert Collins
df395991f6
Issue #9232 : Support trailing commas in function declarations.
For example, "def f(*, a = 3,): pass" is now legal.
Patch from Mark Dickinson.
11 years ago
Robert Collins
d84b29f805
Issue #4395 : Better testing and documentation of binary operators.
Patch by Martin Panter.
11 years ago
Robert Collins
0b2833eaf2
Issue #24531 : Document that encoding lines cannot follow non-comment lines.
Patch from Terry Reedy
11 years ago