cpython/Doc/c-api
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.
2013-05-04 13:56:58 -04:00
..
abstract.rst
allocation.rst
apiabiversion.rst Remove row-spanning cell, which the Sphinx text writer does not support. 2013-03-16 08:01:49 +01:00
arg.rst #16518: use "bytes-like object" throughout the docs. 2013-05-04 18:06:34 +03:00
bool.rst
buffer.rst Closes #4159: add LaTeX tabular column specifications to tables that otherwise are cut off or have overlapping text. 2013-03-28 13:28:44 +01:00
bytearray.rst #16518: use "bytes-like object" throughout the docs. 2013-05-04 18:06:34 +03:00
bytes.rst Closes #4159: add LaTeX tabular column specifications to tables that otherwise are cut off or have overlapping text. 2013-03-28 13:28:44 +01:00
capsule.rst
cell.rst
code.rst Issue #14090: fix some minor C API problems in default branch (3.3) 2012-06-03 08:07:47 +03:00
codec.rst
complex.rst
concrete.rst
conversion.rst Issue #14090: fix some minor C API problems in default branch (3.3) 2012-06-03 08:07:47 +03:00
datetime.rst Issue #13727: Add 3 macros to access PyDateTime_Delta members: 2012-01-17 21:31:50 +01:00
descriptor.rst
dict.rst fix spelling (#17327) 2013-03-11 12:17:19 -05:00
exceptions.rst Closes #13638: document PyErr_SetFromErrnoWithFilenameObject, 2013-04-14 11:12:16 +02:00
file.rst
float.rst
function.rst
gcsupport.rst
gen.rst
import.rst Fix rst markup. 2012-09-20 08:33:53 +03:00
index.rst Close #15465: Document C API version macros 2013-03-07 23:14:44 +10:00
init.rst Issue #17522: Minor documentation fix 2013-03-23 03:56:16 -07:00
intro.rst Clean up references to the no longer existing PyString_ APIs in our docs. 2013-03-22 13:43:30 -07:00
iter.rst
iterator.rst
list.rst
long.rst Merge with 3.2: Issue #17047: removed doubled words in Doc/*, 2013-03-11 17:26:33 -04:00
mapping.rst
marshal.rst
memory.rst Clean up references to the no longer existing PyString_ APIs in our docs. 2013-03-22 13:43:30 -07:00
memoryview.rst Add PyMemoryView_FromMemory() to whatsnew/3.3. 2012-02-29 17:27:21 +01:00
method.rst
module.rst #17115,17116: Have modules initialize the __package__ and __loader__ 2013-05-04 13:56:58 -04:00
none.rst
number.rst
objbuffer.rst
object.rst Merge from 3.3: Add a str class entry to the string section (issue #16209). 2012-11-28 01:45:15 -08:00
objimpl.rst
refcounting.rst
reflection.rst
sequence.rst
set.rst
slice.rst
stable.rst Close #15465: Document C API version macros 2013-03-07 23:14:44 +10:00
structures.rst
sys.rst Remove already dropped function PySys_GetFile from documentation. 2012-10-31 12:02:56 +02:00
tuple.rst
type.rst Fix whitespace. 2012-06-23 23:21:48 +02:00
typeobj.rst Issue #14181: Improve clarity in the documentation for the multi-purpose 2012-03-06 14:55:06 +01:00
unicode.rst Closes #4159: add LaTeX tabular column specifications to tables that otherwise are cut off or have overlapping text. 2013-03-28 13:28:44 +01:00
utilities.rst
veryhigh.rst Issue #14090: fix some minor C API problems in default branch (3.3) 2012-06-03 08:07:47 +03:00
weakref.rst