How can I tell when a string is in fact a number?

Delaney, Timothy tdelaney at
Thu Nov 9 00:14:48 CET 2000

Ah - the old "physicists vs mathematicians" debate ...

Unfortunately, I'm more used to 3+2i ... unfortunate because 3+2j is more
readable and looks some much *cooler* ...

Tim Delaney
Avaya Australia

> "Alex Martelli" <aleaxit at> wrote:
> > I dread the task of explaining to a beginner
> > why [...] why 3+2j 'is a number'
> Heck, you're going to have enough trouble explaining to some 
> people why 
> 3+2j is a number but 3+2i isn't :-)
> -- 

More information about the Python-list mailing list