Re: Change in Python 3.3 with the treatment of sys.argv

2013-03-23 Thread Chris Angelico
On Sat, Mar 23, 2013 at 11:27 PM, Colin J. Williams wrote: > It seems that a change was made in the program between the 3.3 run and the > other runs. > > Each produces the same heading now. Yep, this is why the simple testcase is so valuable :) Check out http://sscce.org/ (which Steven also point

Re: Change in Python 3.3 with the treatment of sys.argv

2013-03-23 Thread Colin J. Williams
On 22/03/2013 6:11 PM, Ethan Furman wrote: On 03/22/2013 02:57 PM, Colin J. Williams wrote: Below is an extract from some code to run on Python 2.7.3, 3.2.3 and 3.3.0 to compare speeds, both between versions and machines: if __name__ == '__main__': # Text string for initial test - Modify f

Re: Change in Python 3.3 with the treatment of sys.argv

2013-03-23 Thread Peter Otten
Colin J. Williams wrote: > No, the same program ran against each of the three versions. I assume > that 3.3 behaves differently. Please show some cooperation -- post actual code that shows the behaviour. Cut and paste instead of paraphrasing. Make it as small as you can. In your case that sho

Re: Change in Python 3.3 with the treatment of sys.argv

2013-03-23 Thread Colin J. Williams
On 22/03/2013 6:11 PM, Ethan Furman wrote: On 03/22/2013 02:57 PM, Colin J. Williams wrote: Below is an extract from some code to run on Python 2.7.3, 3.2.3 and 3.3.0 to compare speeds, both between versions and machines: if __name__ == '__main__': # Text string for initial test - Modify f

Re: Change in Python 3.3 with the treatment of sys.argv

2013-03-22 Thread Steven D'Aprano
On Fri, 22 Mar 2013 17:57:42 -0400, Colin J. Williams wrote: > Below is an extract from some code to run on Python 2.7.3, 3.2.3 and > 3.3.0 to compare speeds, both between versions and machines: Do you have an actual question? I don't see the point. You've given us an "extract", which means the

Re: Change in Python 3.3 with the treatment of sys.argv

2013-03-22 Thread Peter Otten
Colin J. Williams wrote: > Below is an extract from some code to run on Python 2.7.3, 3.2.3 and > 3.3.0 to compare speeds, both between versions and machines: > > if __name__ == '__main__': > # Text string for initial test - Modify for your own machine or > # delete it and and answer th

Re: Change in Python 3.3 with the treatment of sys.argv

2013-03-22 Thread Ethan Furman
On 03/22/2013 02:57 PM, Colin J. Williams wrote: Below is an extract from some code to run on Python 2.7.3, 3.2.3 and 3.3.0 to compare speeds, both between versions and machines: if __name__ == '__main__': # Text string for initial test - Modify for your own machine or # delete it and

Re: Change in Python 3.3 with the treatment of sys.argv

2013-03-22 Thread Chris Angelico
On Sat, Mar 23, 2013 at 8:57 AM, Colin J. Williams wrote: > Below is an extract from some code to run on Python 2.7.3, 3.2.3 and 3.3.0 > to compare speeds, both between versions and machines: Can you post the actual code in question, please? There are several problems with the code as posted: mai