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
..
2010-09-28 23:41:31 +00:00
2010-10-06 10:11:56 +00:00
2013-03-16 08:01:49 +01:00
2013-05-04 18:06:34 +03:00
2010-10-06 10:11:56 +00:00
2013-03-28 13:28:44 +01:00
2013-05-04 18:06:34 +03:00
2013-03-28 13:28:44 +01:00
2010-10-06 10:11:56 +00:00
2010-10-06 10:11:56 +00:00
2012-06-03 08:07:47 +03:00
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
2011-12-18 02:56:18 +01:00
2010-10-06 10:11:56 +00:00
2012-06-03 08:07:47 +03:00
2012-01-17 21:31:50 +01:00
2010-10-06 10:11:56 +00:00
2013-03-11 12:17:19 -05:00
2013-04-14 11:12:16 +02:00
2010-10-06 10:11:56 +00:00
2011-12-18 01:25:27 +01:00
2011-11-25 18:56:07 +01:00
2010-10-06 10:11:56 +00:00
2010-10-06 10:11:56 +00:00
2012-09-20 08:33:53 +03:00
2013-03-07 23:14:44 +10:00
2013-03-23 03:56:16 -07:00
2013-03-22 13:43:30 -07:00
2010-10-06 10:11:56 +00:00
2010-10-06 10:11:56 +00:00
2011-11-15 00:00:12 +01:00
2013-03-11 17:26:33 -04:00
2010-10-06 10:11:56 +00:00
2010-10-06 10:11:56 +00:00
2013-03-22 13:43:30 -07:00
2012-02-29 17:27:21 +01:00
2011-10-19 10:58:56 +03:00
2013-05-04 13:56:58 -04:00
2010-10-06 10:11:56 +00:00
2011-10-11 18:06:36 +01:00
2010-10-06 10:11:56 +00:00
2012-11-28 01:45:15 -08:00
2010-10-06 10:11:56 +00:00
2010-10-06 10:11:56 +00:00
2011-08-13 00:39:46 +02:00
2011-12-16 11:24:27 +01:00
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
2013-03-07 23:14:44 +10:00
2010-10-06 10:11:56 +00:00
2012-10-31 12:02:56 +02:00
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
2012-06-23 23:21:48 +02:00
2012-03-06 14:55:06 +01:00
2013-03-28 13:28:44 +01:00
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
2012-06-03 08:07:47 +03:00
2011-05-31 21:27:41 -05:00