Message360744
Test added in bpo-39336 by:
commit 9b6fec46513006d7b06fcb645cca6e4f5bf7c7b8
Author: Dino Viehland <dinoviehland@gmail.com>
Date: Wed Jan 22 16:42:38 2020 -0800
bpo-39336: Allow packages to not let their child modules be set on them (#18006)
* bpo-39336: Allow setattr to fail on modules which aren't assignable
When attaching a child module to a package if the object in sys.modules raises an Attribu
teError (e.g. because it is immutable) it causes the whole import to fail. This now allows i
mmutable packages to exist and an ImportWarning is reported and the AttributeError exception
is ignored. |
|
Date |
User |
Action |
Args |
2020-01-27 09:19:25 | vstinner | set | recipients:
+ vstinner |
2020-01-27 09:19:25 | vstinner | set | messageid: <1580116765.77.0.519533158852.issue39459@roundup.psfhosted.org> |
2020-01-27 09:19:25 | vstinner | link | issue39459 messages |
2020-01-27 09:19:25 | vstinner | create | |
|