On Mon, 28 Jun 2004, Ion Alexandru Morega wrote: > Jonathan Worthington wrote: > > "Leopold Toetsch" <[EMAIL PROTECTED]> wrote: > > > >>1) Python has a complex builtin class. So we'll need one too. > >> * Create a complex PMC. > >> * Parse complex constants '4j' > > > > j? I've always used i as the imaginary unit, though I believe j is used > > more in engineering fields ('cus they use i for current, or so I've heard). > > i for "imaginary" would make more sense to me, but that's just me. ;-) > > > > Jonathan > > IMO the parser should understand both. And if noone else desperately > wants to do it i'll be glad to help.
Cool, go for it. I'd think that for the set_(integer|number) vtable slots we'd set the real part and make the imaginary part 0, while the string version'd look for the "x + yi" version. I think for now both i and j are fine for the imaginary part. And I'm now thinking that we want to do mmd for assignment. Dammit. :( Dan --------------------------------------"it's like this"------------------- Dan Sugalski even samurai [EMAIL PROTECTED] have teddy bears and even teddy bears get drunk