Re: [Tutor] class instance with identity crisis

2005-01-12 Thread Yigal Duppen
On Wednesday 12 January 2005 12:10, Kent Johnson wrote: > A couple of ideas: > > You could have dry() return the new weapon: >def dry(self): > return Prune() > > then the client code would be > weapon = weapon.dry() > > > You could have the weapon encapsulate another object and delegate to

Re: [Tutor] More and more OT - Python/Java

2005-01-12 Thread Yigal Duppen
On Wednesday 12 January 2005 09:40, Alan Gauld wrote: > > I ask that because I'm writting a little program that will make > > queries over a 1500 entries database, with very simple queries. I > > need > > > an answer in 1 or 2 seconds. I'm using SQLite now, but i wanted > > something that depends a

Re: [Tutor] More and more OT - Python/Java

2005-01-12 Thread Yigal Duppen
On Wednesday 12 January 2005 00:34, Max Noel wrote: > > As a bonus, I've decided to have a look at XSL, which allows me to > > format a XML file for display in a web browser. It entirely changed my > > perception of web programming. > > I intend to program an on-line browser-based game with

Re: [Tutor] unittesting and nested functions

2004-12-21 Thread Yigal Duppen
except IOError: # and this was expected pass The reason for this is easy: I always make stupid mistakes in calls to failUnlessRaises; and I find this approach much more readable. I hope this helps, Yigal Duppen ___ Tutor maillist - [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/tutor