cpython/Doc/whatsnew
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
..
2.0.rst Issue #15527: fix docs, remove double parens by changing markup. 2012-08-11 21:14:08 +03:00
2.1.rst Issue #15527: fix docs, remove double parens by changing markup. 2012-08-11 21:14:08 +03:00
2.2.rst Issue #15527: fix docs, remove double parens by changing markup. 2012-08-11 21:14:08 +03:00
2.3.rst Merge #15543: glossary entry for and 'universal newlines', and links to it. 2012-08-15 11:11:27 -04:00
2.4.rst Merge #15543: glossary entry for and 'universal newlines', and links to it. 2012-08-15 11:11:27 -04:00
2.5.rst Merge #15543: glossary entry for and 'universal newlines', and links to it. 2012-08-15 11:11:27 -04:00
2.6.rst Remove confusing "Release" and "Date" markers from whatsnews. 2012-10-28 13:35:56 +01:00
2.7.rst Remove confusing "Release" and "Date" markers from whatsnews. 2012-10-28 13:35:56 +01:00
3.0.rst Remove confusing "Release" and "Date" markers from whatsnews. Merge with 3.2. 2012-10-28 13:37:18 +01:00
3.1.rst Remove confusing "Release" and "Date" markers from whatsnews. 2012-10-28 13:35:56 +01:00
3.2.rst - Issue #16754: Fix the incorrect shared library extension on linux. Introduce 2013-03-21 13:31:41 -07:00
3.3.rst #17623: fix whatsnew typo 2013-04-03 06:16:14 -04:00
3.4.rst #17115,17116: Have modules initialize the __package__ and __loader__ 2013-05-04 13:56:58 -04:00
changelog.rst Fix/improve the changelog filtering. 2012-10-02 01:43:42 +03:00
index.rst merge with 3.3. 2012-10-01 19:09:00 +02:00