Re: Newest'bie: Starting QWPython

Guido.van.Rossum@cwi.nl
Fri, 10 Feb 1995 10:55:07 +0100

> Hi, i extremely new to python. I have installed the Mac, Unix and Windows
> versions of Python. The Mac is fine etc, but QWPython is giving me
> problems. It doesn't understand string.rjust.
>
> I have imported the string module -i think correctly.
> >>> dir(string)
> ['__name__']

Hmm, string did not import correctly. You should see a lot more names
in it, e.g.

>>> dir(string)
['__builtins__', '__doc__', '__name__', '_idmap', '_lower', '_swapcase', '_upper', 'atof', 'atof_error', 'atoi', 'atoi_error', 'atol', 'atol_error', 'center', 'count', 'digits', 'expandtabs', 'find', 'hexdigits', 'index', 'index_error', 'join', 'joinfields', 'letters', 'ljust', 'lower', 'lowercase', 'octdigits', 'rfind', 'rindex', 'rjust', 'split', 'splitfields', 'strip', 'swapcase', 'upper', 'uppercase', 'whitespace', 'zfill']

Perhaps the source code for string.py has been truncated to zero
length, or it hasn't been converted to DOS cr-lf format?

--Guido van Rossum, CWI, Amsterdam <mailto:Guido.van.Rossum@cwi.nl>
<http://www.cwi.nl/cwi/people/Guido.van.Rossum.html>