Re: More pythonic shell sort?

2006-06-12 Thread John Machin
On 11/06/2006 1:26 PM, [EMAIL PROTECTED] wrote: Thanks for the critique. John Machin wrote: On 10/06/2006 7:00 AM, [EMAIL PROTECTED] wrote: [snip] def sort(self,myList): for gap in self.gapSeq: for i in range(1,gap+1):

Re: More pythonic shell sort?

2006-06-10 Thread [EMAIL PROTECTED]
Thanks for the critique. John Machin wrote: On 10/06/2006 7:00 AM, [EMAIL PROTECTED] wrote: Disclaimer - I recognize this is not a practical exercise. There are many implementations around that would do the job better, more efficiently (Meaning in C) or whatever. I caught some thread

More pythonic shell sort?

2006-06-09 Thread [EMAIL PROTECTED]
Disclaimer - I recognize this is not a practical exercise. There are many implementations around that would do the job better, more efficiently (Meaning in C) or whatever. I caught some thread about sorting and started thinking about shell sort and as part of my trying to pythonise my mind

Re: More pythonic shell sort?

2006-06-09 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: An aside - can anyone tell me where the use += and -= is documented? http://docs.python.org/ref/augassign.html http://pyref.infogami.com/assignments /F -- http://mail.python.org/mailman/listinfo/python-list

Re: More pythonic shell sort?

2006-06-09 Thread [EMAIL PROTECTED]
Fredrik Lundh wrote: [EMAIL PROTECTED] wrote: An aside - can anyone tell me where the use += and -= is documented? http://docs.python.org/ref/augassign.html http://pyref.infogami.com/assignments /F Thanks!!! -- http://mail.python.org/mailman/listinfo/python-list

Re: More pythonic shell sort?

2006-06-09 Thread John Machin
On 10/06/2006 7:00 AM, [EMAIL PROTECTED] wrote: Disclaimer - I recognize this is not a practical exercise. There are many implementations around that would do the job better, more efficiently (Meaning in C) or whatever. I caught some thread about sorting and started thinking about shell