Re: [Python-Dev] What about PEP 299?

2006-03-29 Thread Nick Coghlan
Guido van Rossum wrote: On 3/28/06, Charles Cazabon [EMAIL PROTECTED] wrote: It might be worth instead adding an option flag to the executable that implies from the loaded module, run __main__() with sys.argv as its argument(s), so the user can get this behaviour with `python -X

Re: [Python-Dev] What about PEP 299?

2006-03-29 Thread Guido van Rossum
Die, thread. Do I personally have to go into svn and reject this PEP? -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe:

Re: [Python-Dev] What about PEP 299?

2006-03-29 Thread Georg Brandl
Guido van Rossum wrote: Die, thread. Do I personally have to go into svn and reject this PEP? After my latest channeling disaster, I was cautious about this one ;) I'll reject it now. Georg ___ Python-Dev mailing list Python-Dev@python.org

Re: [Python-Dev] What about PEP 299?

2006-03-29 Thread Brett Cannon
On 3/29/06, Guido van Rossum [EMAIL PROTECTED] wrote: Die, thread. Do I personally have to go into svn and reject this PEP? No, just get a procrastinating student to do it. -Brett ___ Python-Dev mailing list Python-Dev@python.org

Re: [Python-Dev] What about PEP 299?

2006-03-28 Thread Phillip J. Eby
At 09:22 PM 3/28/2006 +0200, Georg Brandl wrote: Hi, since I found myself writing if __name__ == '__main__' often these days, I wondered whether PEP 299 could be pronounced upon. I'm not proposing putting it into 2.5, but it should be relatively small a change. A couple of issues that the PEP

Re: [Python-Dev] What about PEP 299?

2006-03-28 Thread Guido van Rossum
On 3/28/06, Georg Brandl [EMAIL PROTECTED] wrote: since I found myself writing if __name__ == '__main__' often these days, I wondered whether PEP 299 could be pronounced upon. I'm not proposing putting it into 2.5, but it should be relatively small a change. If you're asking for a quick

Re: [Python-Dev] What about PEP 299?

2006-03-28 Thread Charles Cazabon
Guido van Rossum [EMAIL PROTECTED] wrote: On 3/28/06, Georg Brandl [EMAIL PROTECTED] wrote: since I found myself writing if __name__ == '__main__' often these days, I wondered whether PEP 299 could be pronounced upon. I'm not proposing putting it into 2.5, but it should be relatively

Re: [Python-Dev] What about PEP 299?

2006-03-28 Thread Guido van Rossum
On 3/28/06, Charles Cazabon [EMAIL PROTECTED] wrote: It might be worth instead adding an option flag to the executable that implies from the loaded module, run __main__() with sys.argv as its argument(s), so the user can get this behaviour with `python -X somemodule.py`. You can do python -x

Re: [Python-Dev] What about PEP 299?

2006-03-28 Thread Guido van Rossum
Sorry, I meant python -m somemodule. On 3/28/06, Guido van Rossum [EMAIL PROTECTED] wrote: On 3/28/06, Charles Cazabon [EMAIL PROTECTED] wrote: It might be worth instead adding an option flag to the executable that implies from the loaded module, run __main__() with sys.argv as its

Re: [Python-Dev] What about PEP 299?

2006-03-28 Thread Charles Cazabon
Guido van Rossum [EMAIL PROTECTED] wrote: On 3/28/06, Charles Cazabon [EMAIL PROTECTED] wrote: It might be worth instead adding an option flag to the executable that implies from the loaded module, run __main__() with sys.argv as its argument(s), so the user can get this behaviour

Re: [Python-Dev] What about PEP 299?

2006-03-28 Thread Guido van Rossum
OK. -1 on PEP 299 it is. On 3/28/06, Charles Cazabon [EMAIL PROTECTED] wrote: Guido van Rossum [EMAIL PROTECTED] wrote: On 3/28/06, Charles Cazabon [EMAIL PROTECTED] wrote: It might be worth instead adding an option flag to the executable that implies from the loaded module, run