Two Classes In Two Files

Sion Arrowsmith siona at chiark.greenend.org.uk
Thu Aug 10 12:49:32 EDT 2006


Pedro Werneck  <pedro.werneck at terra.com.br> wrote:
>"dhable at gmail.com" <dhable at gmail.com> wrote:
>> Wasn't so much a worry, just trying to figure out how to think the
>> python way.
>Seems like you're thinking the Java way... if you don't want to do it,
>put both classes in the same file.

OP: think of a .py file as being more akin to Java package than a .java
file. Don't worry about the resulting files getting too large -- Python
is a lot more compact than Java.

-- 
\S -- siona at chiark.greenend.org.uk -- http://www.chaos.org.uk/~sion/
  ___  |  "Frankly I have no feelings towards penguins one way or the other"
  \X/  |    -- Arthur C. Clarke
   her nu becomeþ se bera eadward ofdun hlæddre heafdes bæce bump bump bump



More information about the Python-list mailing list