torchsight.utils.print module

Utilities with the print function.

Source code
"""Utilities with the print function."""


class PrintMixin():
    """A mixin to print a namespace message with the name of the class."""

    def print(self, msg):
        """Print a namespaced message."""
        print('[{}] {}'.format(self.__class__.__name__, msg))

Classes

class PrintMixin

A mixin to print a namespace message with the name of the class.

Source code
class PrintMixin():
    """A mixin to print a namespace message with the name of the class."""

    def print(self, msg):
        """Print a namespaced message."""
        print('[{}] {}'.format(self.__class__.__name__, msg))

Methods

def print(self, msg)

Print a namespaced message.

Source code
def print(self, msg):
    """Print a namespaced message."""
    print('[{}] {}'.format(self.__class__.__name__, msg))