(locus, printer)
Register a type printer.
    PRINTER is the type printer instance.
    LOCUS is either an objfile, a program space, or None, indicating
    global registration.
Register a type printer.
    PRINTER is the type printer instance.
    LOCUS is either an objfile, a program space, or None, indicating
    global registration.
Register a type printer . PRINTER is the type printer instance . LOCUS is either an objfile a program space or None indicating global registration .
def register_type_printer(locus, printer):
    """Register a type printer.
    PRINTER is the type printer instance.
    LOCUS is either an objfile, a program space, or None, indicating
    global registration."""

    if locus is None:
        locus = gdb
    locus.type_printers.insert(0, printer)
def register_type_printer ( locus , printer ) : if locus is None : locus = gdb locus . type_printers . insert ( 0 , printer )