Re: [Tutor] get name of calling class at runtime

2009-08-22 Thread Alan Gauld
"Kent Johnson" wrote can group a bunch of SQL statements in one place; they're currently scattered all over the program and it's getting unwieldy). Normally in an OO program the SQL for each class is in the methods for that class. That way any changes to the class canbe easily reflected in

Re: [Tutor] simple plots

2009-08-22 Thread Alan Gauld
"questions anon" wrote I would like to make some simple plots using matplotlib (or any python plotting modules) and I can find lots of examples that generate random data and then plot those, but I cannot find any that read in data from excel or a text file, manipulate the data and then plot

Re: [Tutor] get name of calling class at runtime

2009-08-22 Thread Kent Johnson
On Sat, Aug 22, 2009 at 3:54 AM, Alan Gauld wrote: > "Kent Johnson" wrote > can group a bunch of SQL statements in one place; they're currently scattered all over the program and it's getting unwieldy). >>> >>> Normally in an OO program the SQL for each class is in the methods for >>> th

Re: [Tutor] get name of calling class at runtime

2009-08-22 Thread Alan Gauld
"Kent Johnson" wrote I think it does makes sense to keep SQL confined to well-defined locations. This can be per class - each class holds its own SQL - or a single class that does all database access so all SQL and database dependencies are in one place. My vote for the class every time. I h