Web Images Videos Maps News Groups Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion ten small Python programs
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Steve Howell  
View profile  
 More options May 27 2007, 4:51 pm
Newsgroups: comp.lang.python
From: Steve Howell <showel...@yahoo.com>
Date: Sat, 26 May 2007 23:51:29 -0700 (PDT)
Local: Sun, May 27 2007 4:51 pm
Subject: Re: ten small Python programs

--- Steven D'Aprano wrote:
> On Sat, 26 May 2007 18:48:45 -0700, Steve Howell
> wrote:

> > It also has a ComplexNumber class, but I don't
> want to
> > scare away mathphobes.

> Is it as short as this one-liner?

> ComplexNumber = complex

Along the idea of not reinventing a class from the
standard library in the list of ten small Python
programs (which has since grown), I went with the
classic BankAccount example for the first program to
introduce the "class" statement.

You can see the code here:

http://wiki.python.org/moin/SimplePrograms

___________________________________________________________________________ _________Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545469


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google