Re: '-m' option (was RE: [Python-Dev] ConfigParser patches)

Quoting Paramjit Oberoi <psoberoi@gmail.com>:
Indeed, it may be possible to get those to *run*, but the problem is that the semantics of the following two commands are likely to differ: python <interpreter-options> runpy.py module <script-args> python runpy.py <interpreter-options> module <script-args And getting the semantics close enough that the remaining differences don't matter is likely to be a pain. Certainly, you won't be able to use execfile() any more, because it doesn't support passing compiler flags. And the script doesn't have to get much more complicated before it becomes _harder_ to understand and maintain than the C code required to implement '-m' (which is really pretty straightforward when it is limited to top-level modules). Cheers, Nick. -- Nick Coghlan Brisbane, Australia

I'm going to drop out of this discussion; I'm still thinking this is just code bloat, but I won't stop you from adding it anyway. -- --Guido van Rossum (home page: http://www.python.org/~guido/)

I'm going to drop out of this discussion; I'm still thinking this is just code bloat, but I won't stop you from adding it anyway. -- --Guido van Rossum (home page: http://www.python.org/~guido/)
participants (2)
-
Guido van Rossum
-
Nick Coghlan