[Tutor] new function and a 3 line program not working

Alan Gauld alan.gauld at freenet.co.uk
Fri Dec 3 09:04:25 CET 2004


> I thought that the '.py ' in this import statement would make the
> interpreter think that newline was a package and therefore try to
recognize
> py as a module in the newline package.
>
> from newline.py import newline

Quite right it should have been

from newline import mnewline!

oops, sorry.

Alan g.




More information about the Tutor mailing list