This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2020-01-27.09:19:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1580116765.77.0.519533158852.issue39459@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-01-27 09:19:25vstinnersetrecipients: + vstinner
2020-01-27 09:19:25vstinnersetmessageid: <1580116765.77.0.519533158852.issue39459@roundup.psfhosted.org>
2020-01-27 09:19:25vstinnerlinkissue39459 messages
2020-01-27 09:19:25vstinnercreate