Re: [Tutor] problem in converting pixel data to image file

2008-08-18 Thread Tomaz Bevec
Ashish, I don't know that much about image processing, but I think you should check into the Image Magick convert utility. You might be trying to re-invent the wheel. I have used Image Magick to good effect for the batch processing and conversion of images in a non-python setting. You can sp

[Tutor] Does unittest slow down code

2008-08-04 Thread Tomaz Bevec
Is code executed within a unit test significantly slower than code executed outside of a unit test? Does code executed within a unit test take up more memory? --TJB ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listi

Re: [Tutor] __getattribute__ instead of Mixing in and Mixing out classes in python

2008-08-01 Thread Tomaz Bevec
classes in python > To: [EMAIL PROTECTED] > Cc: "Tutor Python" > Date: Thursday, July 31, 2008, 5:29 PM > On Thu, Jul 31, 2008 at 8:09 PM, Tomaz Bevec > <[EMAIL PROTECTED]> wrote: > > Thanks for your reply Alan, > > > > I am partially asking out of inter

Re: [Tutor] Mixing in and Mixing out classes in python

2008-07-31 Thread Tomaz Bevec
n and Mixing out classes in python > To: tutor@python.org > Date: Thursday, July 31, 2008, 3:16 PM > "Tomaz Bevec" <[EMAIL PROTECTED]> wrote > > > I am using the following function to mixin in classes > > into specific object instances ... > > > Is

[Tutor] Mixing in and Mixing out classes in python

2008-07-31 Thread Tomaz Bevec
Hello, I am using the following function to mixin in classes into specific object instances (this is adapted from python-list written py J.Jacob "new-style-classes-mixin", Fri Aug 9 14:05:41 CEST 2002): *** def doMixin(targ