def printr(expr):
    """
    Prints out an expression and returns it as well for inline diagnosis.
    You shouldn't use print to debug, but it's not like you're going to stop.
    
    Parameter + Return
    ------------------
    expr : any
        item to be analyzed/returned

    Example
    -------
    >>> #Use it within a comprehension to diagnose problems.
    >>> #If you just use print, the result would be [None,None,None,None]
    >>> [xt.printr(i)**3 for i in range(4)]
    0
    1
    2
    3
    [0, 1, 8, 27]
    
    
    
    """
    print(expr)
    return expr
