Re: [Tutor] Efficient programming questions. Tuples vs Lists; Custom Objects vs Lists.

2006-09-25 Thread Kent Johnson
Wesley Brooks wrote: > Firstly tuples vs lists. I'm guessing that lists use more memory than > tuples as they provide more functions? Are they also more CPU intensive > to use? First the requisite caveats about optimization: 1. Don't optimize until you have a demonstrated performance problem. 2

[Tutor] Efficient programming questions. Tuples vs Lists; Custom Objects vs Lists.

2006-09-25 Thread Wesley Brooks
Dear Python-Tutor members,I'm currently in the middle of re-writing a program for my research. I've been using python for the past three years now, my first language since a brief exposure to qbasic ten years ago. There are a couple of things I'm not sure about which I'll need to clear up before I