Previously, people needing to print a message not tied to any Parameterized object in particular have done param.Parameterized().message("xxx") or the .debug,
.verbose, .warning, or .error equivalent. As of today, there is now an object param.main for this purpose, to avoid having all those bogus and confusing Parameterized(name="ParameterizedXYZ") objects created and showing up in messages. There are still a lot of examples of the old Parameterized() form in the code, and these should be replaced with param.main.message calls (or the equivalent).
There are also currently several dozen bare print statements in the code (mostly listed below), and nearly all of these should be changed to param.main.message calls (or the equivalent), so that the logging module can be used to control whether and how they are printed. Doing so will also ease the transition to Python 3, where print is no longer a statement.
Edit by jlstevens: Use grep -nH -e print topo/*/*.py to generate a list of print statements that need to be fixed for Python 3 support.
Previously, people needing to print a message not tied to any Parameterized object in particular have done param.Parameterized().message("xxx") or the .debug, .verbose, .warning, or .error equivalent. As of today, there is now an object param.main for this purpose, to avoid having all those bogus and confusing Parameterized(name="ParameterizedXYZ") objects created and showing up in messages. There are still a lot of examples of the old Parameterized() form in the code, and these should be replaced with param.main.message calls (or the equivalent).
There are also currently several dozen bare print statements in the code (mostly listed below), and nearly all of these should be changed to param.main.message calls (or the equivalent), so that the logging module can be used to control whether and how they are printed. Doing so will also ease the transition to Python 3, where print is no longer a statement.
Edit by jlstevens: Use
grep -nH -e print topo/*/*.py
to generate a list of print statements that need to be fixed for Python 3 support.