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 Merged revisions 85082 via svnmerge from 2010-09-28 23:41:31 +00:00
allocation.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
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 Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
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 Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
cell.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
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 Merged revisions 86134,86315-86316,86390,86424-86425,86428,86550,86561-86562,86564-86565,86705,86708,86713 via svnmerge from 2010-11-26 09:05:43 +00:00
complex.rst Issue #13522: Fix _Py_co_pow() documentation 2011-12-18 02:56:18 +01:00
concrete.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
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 Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
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 Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
float.rst Issue #13522: document error return values of some float and complex C API functions. 2011-12-18 01:25:27 +01:00
function.rst PEP 3155 / issue #13448: Qualified name for classes and functions. 2011-11-25 18:56:07 +01:00
gcsupport.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
gen.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
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 Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
iterator.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
list.rst Issue #13389: Full garbage collection passes now clear the freelists for 2011-11-15 00:00:12 +01:00
long.rst Merge with 3.2: Issue #17047: removed doubled words in Doc/*, 2013-03-11 17:26:33 -04:00
mapping.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
marshal.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
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 Remove duplication. 2011-10-19 10:58:56 +03:00
module.rst #17115,17116: Have modules initialize the __package__ and __loader__ 2013-05-04 13:56:58 -04:00
none.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
number.rst Issue #13145. Fix incorrect documentation for PyNumber_ToBase. Thanks Sven Marnach. 2011-10-11 18:06:36 +01:00
objbuffer.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
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 Split C API docs in Py3k branch. 2008-01-20 09:30:57 +00:00
refcounting.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
reflection.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
sequence.rst let PySequence_Check me a link; thanks to tomo cocoa from docs@ 2011-08-13 00:39:46 +02:00
set.rst Issue #6695: Full garbage collection runs now clear the freelist of set objects. 2011-12-16 11:24:27 +01:00
slice.rst Merged revisions 87101,87146,87156,87172,87175,87371,87378,87522-87524,87526-87528,87530-87536,87581 via svnmerge from 2011-02-25 10:03:34 +00:00
stable.rst Close #15465: Document C API version macros 2013-03-07 23:14:44 +10:00
structures.rst Migrate to Sphinx 1.0 C language constructs. 2010-10-06 10:11:56 +00:00
sys.rst Remove already dropped function PySys_GetFile from documentation. 2012-10-31 12:02:56 +02:00
tuple.rst Merged revisions 85572-85573,85606,85609-85622,85624,85626-85627,85629,85631,85633,85635-85636,85638-85639,85641-85642 via svnmerge from 2010-11-26 08:49:15 +00:00
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 Merged revisions 86134,86315-86316,86390,86424-86425,86428,86550,86561-86562,86564-86565,86705,86708,86713 via svnmerge from 2010-11-26 09:05:43 +00:00
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 demote this to a note 2011-05-31 21:27:41 -05:00