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
Ezio Melotti
9f929bb7df
#16677 : rename section header and fix markup.
13 years ago
Chris Jerdonek
2654b86e88
Link to "yield from" examples in yield documentation.
This commit also simplifies the more advanced "yield from" example and removes
unused function parameters.
13 years ago
Chris Jerdonek
bb4e941c6d
Add a str class entry to the "Text Sequence Type" section (issue #16209 ).
This commit also moves the documentation for the str built-in function to
the new class entry. Links to :class:`str` now go to the class entry with
the string methods immediately afterwards.
13 years ago
Mark Dickinson
1658797a9d
Issue #16339 : Document and test exec(stmt, globals, locals) form in Python 2.7.
13 years ago
Chris Jerdonek
777db2d838
Fix label in docs (from issue #13538 ).
13 years ago
Chris Jerdonek
5fae0e5854
Improve str() and object.__str__() documentation (issue #13538 ).
13 years ago
Chris Jerdonek
17fc44c9b3
Improve str() and object.__str__() documentation (issue #13538 ).
13 years ago
Barry Warsaw
82c1c781c7
- Issue #16514 : Fix regression causing a traceback when sys.path[0] is None
(actually, any non-string or non-bytes type).
13 years ago
Andrew Svetlov
e2cf03e499
Issue #16144 : Fix misleading sentence in reference/import.
Patch by Manuel Pégourié-Gonnard
13 years ago
Chris Jerdonek
64c0b2ca3d
Backport from 3.2: remove "Release" and "Date" markers from index pages.
13 years ago
Chris Jerdonek
8b7f9f581d
Remove unneeded "Release" and "Date" markers from doc index pages.
13 years ago
Chris Jerdonek
32473e73f4
Backport from 3.2: fix formatting of syntax description of function definition.
13 years ago
Chris Jerdonek
c131b0760d
Fix formatting of syntax description of function definition.
13 years ago
Raymond Hettinger
d9edd82b7f
String exceptions aren't just deprecated, they are gone.
13 years ago
Ezio Melotti
7fa822275b
Fix links to the __next__ method.
13 years ago
Chris Jerdonek
af94724e00
Fix link to str.format() in docs.
13 years ago
Ezio Melotti
e12dc28c38
Fix markup.
13 years ago
Armin Ronacher
74b38b190f
Issue #16148 : Small improvements and cleanup. Added version information
to docs.
13 years ago
Georg Brandl
4614cc4f7f
Closes #16149 : remove now-false statement about the inability to compare Decimal and float objects.
13 years ago
Georg Brandl
7ea9a423cb
Closes #16149 : remove now-false statement about the inability to compare Decimal and float objects.
13 years ago
Ezio Melotti
e7f90375b1
#16127 : remove outdated references to narrow builds. Patch by Serhiy Storchaka.
13 years ago
Andrew Svetlov
f532035551
Close open bracket, thanks to Josh Helzer from docs@
13 years ago
Mark Dickinson
5a53a41bbc
Issue #14167 : restore statement about breaks in finally clauses; remove statement about exception chaining.
13 years ago
Mark Dickinson
05ee5817a1
Issue #14167 : restore statement about breaks in finally clauses.
13 years ago
R David Murray
d8bbde35fe
#14617 : clarify discussion of interrelationship of __eq__ and __hash__.
14 years ago
Nick Coghlan
1685db011d
s/path importer/path based finder/ (because the path based finder is not an importer and the simpler 'path finder' is too ambiguous)
14 years ago
R David Murray
85307b46d1
#15355 : Mention already-executing Exception in generator docs.
Patch by Chris Jerdonek.
14 years ago
R David Murray
2c1d1d6310
#15355 : Mention already-executing Exception in generator docs.
Patch by Chris Jerdonek.
14 years ago
R David Murray
5618aaaafe
#15543 : glossary entry for and 'universal newlines', and links to it.
Patch by Chris Jerdonek.
14 years ago