1. Bruce Eckel
  2. Python 3 Patterns & Idioms
  3. Issues
Issue #6 new

Python for Programmers / useful techniques / utility.py

Anonymous created an issue

There is a problem with the example here:

You can compose classes using import. Here’s a method that can be reused by multiple classes:

{{{

!python

PythonForProgrammers/utility.py

}}}

def f(self): print “utility.f()!!!<- outside the code block

Comments (0)

  1. Log in to comment