Re: [Python-Dev] unittest argv

2006-05-01 Thread Guido van Rossum
Wouldn't this be an incompatible change? That would make it a no-no. Providing a dummy argv[0] isn't so hard is it? On 4/30/06, John Keyes [EMAIL PROTECTED] wrote: Hi, main() in unittest has an optional parameter called argv. If it is not present in the invocation, it defaults to None.

Re: [Python-Dev] unittest argv

2006-05-01 Thread John Keyes
On 5/1/06, Guido van Rossum [EMAIL PROTECTED] wrote: Wouldn't this be an incompatible change? That would make it a no-no. Providing a dummy argv[0] isn't so hard is it? It would be incompatible with existing code, but that code is already broken (IMO) by passing a dummy argv[0]. I don't think

Re: [Python-Dev] unittest argv

2006-05-01 Thread Guido van Rossum
On 5/1/06, John Keyes [EMAIL PROTECTED] wrote: On 5/1/06, Guido van Rossum [EMAIL PROTECTED] wrote: Wouldn't this be an incompatible change? That would make it a no-no. Providing a dummy argv[0] isn't so hard is it? It would be incompatible with existing code, but that code is already

Re: [Python-Dev] unittest argv

2006-05-01 Thread Phillip J. Eby
At 06:11 PM 5/1/2006 +0100, John Keyes wrote: On 5/1/06, Guido van Rossum [EMAIL PROTECTED] wrote: Wouldn't this be an incompatible change? That would make it a no-no. Providing a dummy argv[0] isn't so hard is it? It would be incompatible with existing code, but that code is already broken

Re: [Python-Dev] unittest argv

2006-05-01 Thread John Keyes
On 5/1/06, Guido van Rossum [EMAIL PROTECTED] wrote: On 5/1/06, John Keyes [EMAIL PROTECTED] wrote: On 5/1/06, Guido van Rossum [EMAIL PROTECTED] wrote: Wouldn't this be an incompatible change? That would make it a no-no. Providing a dummy argv[0] isn't so hard is it? It would be

Re: [Python-Dev] unittest argv

2006-05-01 Thread Guido van Rossum
On 5/1/06, John Keyes [EMAIL PROTECTED] wrote: No. Late binding of sys.argv is very important. There are plenty of uses where sys.argv is dynamically modified. Can you explain this some more? If it all happens in the same function call so how can it be late binding? You seem to be unaware