Serhiy Storchaka
848c8b29f6
Issue #20643 : Removed unneeded (and wrong) class directives.
11 years ago
Terry Jan Reedy
65e3ecb3e2
Issue #22243 : fix except grammar in reference.
12 years ago
Nick Coghlan
1462786f00
Issue #21667 : Clarify string data model description
12 years ago
R David Murray
2c0781853a
#21662 : fix typo, improve sentence flow
Patch by Steve Dougherty.
12 years ago
Zachary Ware
2f78b84c47
Issue #21439 : Fix a couple of typos.
12 years ago
Raymond Hettinger
aa7886dd3f
Issue 21439: Minor issues in the reference manual.
(Contributed by Feliks Kluzniak.)
12 years ago
Benjamin Peterson
5c8ce188ee
remove confusing delete indexing ( closes #21466 )
12 years ago
Zachary Ware
9fafc9f79a
Add prompts to interactive example.
This makes it match the new example below, and allows Sphinx's
"hide the prompts and output" feature to work.
12 years ago
Zachary Ware
8edd532026
Issue #21366 : Document the fact that ``return`` in a ``finally`` clause
overrides a ``return`` in the ``try`` suite.
12 years ago
Terry Jan Reedy
9cc9026294
Issue #21055 : Index (augmented) assignment symbols.
12 years ago
Terry Jan Reedy
7c895edabc
Closes 21048: Index 'as' in import and with statements.
12 years ago
R David Murray
f7f981829b
#18628 : clarify index entry for source file encoding declaration.
Patch by Sam Lucidi.
12 years ago
Yury Selivanov
af8a4dfb04
docs: Better wording for __objclass__ docs. Issue #19281
12 years ago
Yury Selivanov
d3f918ca44
docs: Document __objclass__. Closes #19281 .
Initial patch by Nick Coghlan
12 years ago
Nick Coghlan
9aa00d1cd1
Issue #19697 : document more __main__.__spec__ quirks
12 years ago
Eric Snow
e50f9aa4bd
Issue #19697 : Document cases where __main__.__spec__ is None.
12 years ago
Larry Hastings
3732ed2414
Merge in all documentation changes since branching 3.4.0rc1.
12 years ago
R David Murray
14d7b718ba
#19953 : Clarify the wording of the augmented assignment discussion.
Patch by Priya Pappachan, based on suggestions from Terry Reedy
and myself.
12 years ago
R David Murray
af7d2c4917
whatsnew: LOAD_CLASSDEREF, -X showrefcount
12 years ago
R David Murray
d630e79cc7
whatsnew: object.__format__ raises TypeError on non-empty string.
See issues #7994 and #9856 . I also modified with wording of the format doc
entry to better match what really happens, and added a versionchanged to the
datamodel object.__format__ section.
12 years ago
Benjamin Peterson
d1c85fd283
eliminate redundancy between yield stmt and yield expr docs ( closes #12704 )
Patch by Nikolaus Rath.
12 years ago
Ethan Furman
df3ed242c0
Issue19995: %o, %x, %X now only accept ints
12 years ago
Larry Hastings
bfd715ebd1
Regenerated pydoc/topics.py, and fix a "suspicious" doc error.
12 years ago
Benjamin Peterson
002033ed63
correct word for __annotations__ doc ( closes #20110 )
Patch from Claudiu Popa.
12 years ago
Zachary Ware
340a692283
str subclasses may have non-empty __slots__, bytes subclasses can't.
12 years ago
Eric Snow
7cff4cd7e9
Issue #19713 : Fix mistakes in the import page of language reference.
These mistakes were introduced by the initial PEP 451 merge.
12 years ago
Serhiy Storchaka
fbc1c26803
Issue #19795 : Improved markup of True/False constants.
12 years ago
Georg Brandl
472a65a710
Fix a few markup problems in the new import doc.
12 years ago
Eric Snow
b523f8433a
Implement PEP 451 (ModuleSpec).
12 years ago
Serhiy Storchaka
0d196edc37
Issue #19190 : Improve cross-references in builtin types and functions documentation.
12 years ago
Georg Brandl
0aaae26518
Clarify two points about division and shifting. Suggested by Albert Hofkamp on docs@.
12 years ago
Georg Brandl
97f962339f
Add "->" as a delimiter token. Found by James Harding on docs@.
12 years ago
Georg Brandl
242e6a0bce
Use "lambda expression" as preferred to "lambda form".
12 years ago
Antoine Pitrou
58720d6145
Issue #17934 : Add a clear() method to frame objects, to help clean up expensive details (local variables) and break reference cycles.
13 years ago
Antoine Pitrou
796564c27b
Issue #18112 : PEP 442 implementation (safe object finalization).
13 years ago
Barry Warsaw
224a599c0c
- Issue #18440 : Clarify that `hash()` can truncate the value returned from an
object's custom `__hash__()` method.
13 years ago
Brett Cannon
82da8886cc
Issue #15767 : Revert 3a50025f1900 for ModuleNotFoundError
13 years ago
Brett Cannon
8f5ac5106e
Issue #15767 : Touch up ModuleNotFoundError usage by import.
Forgot to raise ModuleNotFoundError when None is found in sys.modules.
This led to introducing the C function PyErr_SetImportErrorSubclass()
to make setting ModuleNotFoundError easier.
Also updated the reference docs to mention ModuleNotFoundError
appropriately. Updated the docs for ModuleNotFoundError to mention the
None in sys.modules case.
Lastly, it was noticed that PyErr_SetImportError() was not setting an
exception when returning None in one case. That issue is now fixed.
13 years ago
Brett Cannon
4b4e38e7d4
Mention __cached__ in the import ref.
13 years ago
Ezio Melotti
955382ca54
#17938 : remove duplicate paragraphs.
13 years ago
Brett Cannon
4c14b5de1c
#17115,17116: Have modules initialize the __package__ and __loader__
attributes to None.
The long-term goal is for people to be able to rely on these
attributes existing and checking for None to see if they have been
set. Since import itself sets these attributes when a loader does not
the only instances when the attributes are None are from someone
overloading __import__() and not using a loader or someone creating a
module from scratch.
This patch also unifies module initialization. Before you could have
different attributes with default values depending on how the module
object was created. Now the only way to not get the same default set
of attributes is to circumvent initialization by calling
ModuleType.__new__() directly.
13 years ago
Georg Brandl
dec3b3f704
Clarify point in name mangling doc.
13 years ago
Georg Brandl
44ea77bd81
Closes #4159 : add LaTeX tabular column specifications to tables that otherwise are cut off or have overlapping text.
13 years ago
Ezio Melotti
93324d7d9c
Update suspicious ignore file.
13 years ago
Brett Cannon
4802becb16
Issue #17117 : Have both import itself and importlib.util.set_loader()
set __loader__ on a module when set to None.
Thanks to Gökcen Eraslan for the fix.
13 years ago
Benjamin Peterson
1ef876cd28
evaluate positional defaults before keyword-only defaults ( closes #16967 )
13 years ago
Sandro Tosi
c19d7b6556
fix typo; thanks to Dmitry Northerner from docs@
13 years ago
Chris Jerdonek
b43099464a
Add additional links and index entries for "argument" and "parameter".
This adds to the work done for issue #15990 (i.e. f44b8d69e5fc and the
commits referenced there).
13 years ago
Chris Jerdonek
cf4710c323
Add additional links and index entries for "argument" and "parameter".
This adds to the work done for issue #15990 (i.e. f44b8d69e5fc and the
commits referenced there).
13 years ago
Ezio Melotti
4268b3a751
#16677 : rename section header and fix markup.
13 years ago