Re: PEP 451: Big update.
Antoine Pitrou <[email protected]> Thu, 19 Sep 2013 10:21:22 +0200
| Newsgroups | gmane.comp.python.import |
|---|---|
| Message-ID | <[email protected]> |
Le Wed, 18 Sep 2013 23:38:23 -0600, Eric Snow <[email protected]> a écrit : > I'm thinking that it may be useful to have ModuleSpec inherit from > str and set it to the module name. Then the spec could be passed > directly to those loader APIs that take the module name. Thoughts? I would generally be -1 on some hacks. Especially, str subclasses can leak to unsuspected places and create weird issues (I remember an issue with BeautifulSoup, IIRC, which returned str subclasses which kept whole HTML trees alive: by passing those str objects around you would create yourself a huge memory leak). Regards Antoine. _______________________________________________ Import-SIG mailing list [email protected] https://mail.python.org/mailman/listinfo/import-sig