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
Newsgroups: comp.lang.python
From: Steve Howell <showel...@yahoo.com>
Date: Sat, 26 May 2007 23:30:37 -0700 (PDT)
Local: Sun, May 27 2007 4:30 pm
Subject: Re: ten small Python programs
--- Steven D'Aprano <st...@REMOVE.THIS.cybersource.com.au> wrote: The "It" above refers to *the* Python Tutorial, > On Sat, 26 May 2007 18:48:45 -0700, Steve Howell > wrote: > > It also has a ComplexNumber class, but I don't > Is it as short as this one-liner? > ComplexNumber = complex written by Guido van Rossum. Here is an excerpt: >>> class Complex: ... def __init__(self, realpart, imagpart): ... self.r = realpart ... self.i = imagpart ... >>> x = Complex(3.0, -4.5) (3.0, -4.5) >>> x.r, x.i Obviously, it's not surprising that a useful class in ComplexNumber = complex ___________________________________________________________________________ _________ 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.
| ||||||||||||||