Problem with importing in Python

Terry Reedy tjreedy at udel.edu
Fri Jan 11 22:53:47 EST 2013


On 1/11/2013 5:17 PM, su29090 wrote:

> Circle.py
>
> import math
>
> class circle:

By current convention, you should call the file 'circle.py' and the 
class 'Circle'. Using all lower case for module filenames is the sanest 
thing to do in a world where different filesystems do different things 
with casing.

-- 
Terry Jan Reedy




More information about the Python-list mailing list