Brett Cannon wrote:
On Mon, Aug 31, 2009 at 06:36, Nick Coghlanncoghlan@gmail.com wrote:
That said, while actually ditching the C code might cause an argument, expanding runpy with Python equivalents of the C level functionality (i.e. run script by name, run directory/zipfile by name, '-c' switch, and other odds and ends that I'm probably forgetting right now, with all associated modifications to sys.argv and the __main__ module attributes) should be far less controversial.
It also has the perk of letting alternative VMs not have to implement all of that stuff themselves, potentially helping to unify even the command-line interfaces for all the VMs.
I created a tracker item for the idea so I don't forget about it: