jasily/lang/exitable.py
def dispose_at_exit(exitable):
    '''
    register `exitable.__exit__()` into `atexit` module.

    return the `exitable` itself.
    '''
    @atexit.register
    def callback():
        exitable.__exit__(*sys.exc_info())
    return exitable
def dispose_at_exit(exitable):
    '''
    register `exitable.__exit__()` into `atexit` module.

    return the `exitable` itself.
    '''
    @atexit.register
    def callback():
        exitable.__exit__(*sys.exc_info())
    return exitable
def dispose_at_exit ( exitable ) : @ atexit . register def callback ( ) : exitable . __exit__ ( * sys . exc_info ( ) ) return exitable
register `exitable.__exit__()` into `atexit` module.

    return the `exitable` itself.
register exitable . __exit__ () into atexit module .