Re: [Edu-sig] Introducing Python to Engineering Students

2008-03-12 Thread John Posner
I'll modify my function to look more like yours, going for more clarity with only a small sacrifice in efficiency. I can't use the nice OOP style, however, because these students have studied only functions. OOP is an advanced topic covered in a later course for computer

Re: [Edu-sig] Introducing Python to Engineering Students

2008-03-12 Thread kirby urner
On Wed, Mar 12, 2008 at 5:50 AM, John Posner [EMAIL PROTECTED] wrote: IMHO, object-oriented programming is like most technologies -- it was developed as a solution to perceived problems. Newbies, who haven't perceived the problems, will have trouble appreciating the solution. -John

Re: [Edu-sig] Introducing Python to Engineering Students

2008-03-12 Thread David MacQuigg
At 07:24 PM 3/11/2008 -0700, Rob Malouf wrote: On Mar 11, 2008, at 5:11 PM, David MacQuigg wrote: It would make a nice improvement in this Mandelbrot demo if you could show me a way to significantly improve the speed of the Python I already have, perhaps avoiding the need for C. ... Or,

Re: [Edu-sig] Introducing Python to Engineering Students

2008-03-12 Thread Warren Sande
By the way, here is a non-OO version of a the fractals program that uses Pygame to display the output. Warren Sande #- # Simple fractal program using Pygame to display results # (Based on Kirby Urner's OO version) import pygame, sys palette = [(0,0,0)] def mkpalette():