Re: Multiplying sequences with floats

2006-03-28 Thread Caleb Hattingh
d you have an integer number, but unfortunatly with type float. Well, I guess that's life :) Again, a small cast like that is not a problem for me, so I can't really comment on this. Keep well Caleb -- http://mail.python.org/mailman/listinfo/python-list

Re: Multiplying sequences with floats

2006-03-29 Thread Caleb Hattingh
this whole issue is actually a non-issue to me, and I don't want to give the impression I think there is a problem here; just interested in the // operator is all :) regards Caleb -- http://mail.python.org/mailman/listinfo/python-list

Re: operation complexities of lists and dictionaries

2006-03-29 Thread Caleb Hattingh
9936447 I would appreciate it if you could present your results in this thread. I have also been wondering about timings for simple operations. Thanks Caleb -- http://mail.python.org/mailman/listinfo/python-list

Re: Free Python IDE ?

2006-03-29 Thread Caleb Hattingh
ython; the few times I have needed debugging, SPE did the job well. I also like that SPE automatically checks my code with tabnanny and pychecker. That way I don't have to do anything extra to use these tools. Oh, and SPE is free. Keep well Caleb -- http://mail.python.org/mailman/listinfo/python-list

Re: python challenge question (string manipulation)

2006-03-29 Thread Caleb Hattingh
ady in the builtins or the standard library for this, but I just haven't searched hard enough. Interesting trap I kept falling into: calling a guitar string a "string" and then having collisions with the python type of the same name. Over and over again :) Regards Caleb -- http://mail.python.org/mailman/listinfo/python-list

Re: python challenge question (string manipulation)

2006-03-29 Thread Caleb Hattingh
(lst)] >>> print shift(alpha,2) ['y', 'z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x'] Shorter and possibly as clear too; thanks! Keep well Caleb -- http://mail.python.org/mailman/listinfo/python-list

Re: Simple py script to calc folder sizes

2006-03-29 Thread Caleb Hattingh
ks as though there may be an issue with permissions (and not having enough) on subfolders within a tree. I don't want you to work too hard on what is my problem, but are there any ideas that jump out at you? Regards Caleb -- http://mail.python.org/mailman/listinfo/python-list

Re: python challenge question (string manipulation)

2006-03-30 Thread Caleb Hattingh
best of 3: 5.26 usec per loop [EMAIL PROTECTED] ~]$ python2.4 -mtimeit -s "def shift(lst, n): length = len(lst); first =(-n) % length; result = list(lst[first:]); result.extend(lst[:first]); return result" "shift('abcdefghijklmnopqrstuvwxyz',2)" 10 loops, best of 3: 5.21 usec per loop Caleb -- http://mail.python.org/mailman/listinfo/python-list

Matplotlib: How to set number of ticks on an axis?

2006-03-30 Thread Caleb Hattingh
2, 5, 10]) I don't understand what this means :) I would prefer not to hack this directly in the matplotlib code. How can I change the number of ticks on an axis programmatically without messing with the other ticklabel functionality? Caleb -- http://mail.python.org/mailman/listinfo/python-list

Re: Convert Word .doc to Acrobat .pdf files

2006-03-30 Thread Caleb Hattingh
If you can find some API documentation for PDFMWord.dll, you can call its methods with the ctypes python module. Caleb -- http://mail.python.org/mailman/listinfo/python-list

Re: Simple py script to calc folder sizes

2006-03-30 Thread Caleb Hattingh
Ben, Thank you. Caleb -- http://mail.python.org/mailman/listinfo/python-list

Re: Matplotlib: How to set number of ticks on an axis?

2006-03-30 Thread Caleb Hattingh
John, Thank you. Caleb -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.5 licensing: stop this change

2006-04-01 Thread Caleb Hattingh
of a year, and this cycle would be repeated for every upgrade (the hold-ups involve budgets, cost-centres and red tape).This is why I use as much free software as possible. Regards Caleb -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.5 licensing: stop this change

2006-04-01 Thread Caleb Hattingh
WAIT- Did I just get caught by an April Fools Joke? I have a nasty feeling about this :)) C -- http://mail.python.org/mailman/listinfo/python-list

<    1   2