class implementation

Ben Finney ben+python at benfinney.id.au
Thu Oct 10 19:51:04 EDT 2013


Piet van Oostrum <piet at vanoostrum.org> writes:

> from import * is considered bad practice anyway. It is better just to import the things you need.
>
> from pykkar import World, Pykkar, _WorldProper

Or, even better, be explicit:

    import pykkar

    …

    foo = pykkar.World()

-- 
 \          “Computer perspective on Moore's Law: Human effort becomes |
  `\           twice as expensive roughly every two years.” —anonymous |
_o__)                                                                  |
Ben Finney




More information about the Python-list mailing list