Nick Coghlan added the comment:

Ah, very nice. (And no worries on taking an as-you-have-time approach to this - 
you'll see from the dates on some of the referenced issues below that even I'm 
in that situation where runpy is concerned)

I think you're right that offering a 2-phase load/run API will make a lot of 
sense to folks already familiar with the find/exec model for imports, and it 
also aligns with this old design concept for making runpy friendlier to modules 
that need access to the created globals even if the execution step fails: 
http://bugs.python.org/issue9325#msg133833

I'd just completely missed that that idea was potentially relevant here as well 
:)

I'll provide a few more detailed comments inline.

The scale of the refactoring does make me wonder if there might be a way to 
account for the "target module" idea in http://bugs.python.org/issue19982 
though.

----------
nosy: +brett.cannon

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26388>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to