Re: [Tutor] Exceptions: Logging TB and local variables?

2007-10-10 Thread Kalle Svensson
On 10/10/07, Alan Gauld <[EMAIL PROTECTED]> wrote: > > "Allen Fowler" <[EMAIL PROTECTED]> wrote > > > Now, I would like to do this: > > > > for item in bigset: > > try: > > self.__sub1(item) > > self.__sub2(item) > > self.__sub3(item) > > except StandardError: > > # Log error an

Re: [Tutor] Optimisation of prime number program (cont. from finding prime numbers)

2007-09-26 Thread Kalle Svensson
Hi! Just a followup on this: On 9/21/07, Kalle Svensson <[EMAIL PROTECTED]> wrote: > Hi! > > On 9/21/07, Boykie Mackay <[EMAIL PROTECTED]> wrote: > > Ok,I have learnt how to generate prime numbers and how to 'split' > > input.The above was to help me s

[Tutor] Fwd: Optimisation of prime number program (cont. from finding prime numbers)

2007-09-21 Thread Kalle Svensson
Oops, forgot to send to the list. Hi! On 9/21/07, Boykie Mackay <[EMAIL PROTECTED]> wrote: > Ok,I have learnt how to generate prime numbers and how to 'split' > input.The above was to help me solve the second 'SPOJ' > challenge,PRIME1.The challenge can be found at >

Re: [Tutor] printing value returning from a Class

2007-09-13 Thread Kalle Svensson
Hello! On 9/13/07, Varsha Purohit <[EMAIL PROTECTED]> wrote: > Hello friends,, > I have a problem in displaying data which i have invoked from > class. City is the name of the class which i havent displayed here. There is > another script using that class. It has a function name setCiti