(line)
return ''.join(reversed(chain))
get the last chain of property accesses, ie some.thing.other.bother
get the last chain of property accesses, ie some.thing.other.bother
get the last chain of property accesses ie some . thing . other . bother
def getChain(line):
    "get the last chain of property accesses, ie some.thing.other.bother"
    chain = []
    for c in reversed(line):
        if c in DELIMITERS:
            break
        chain.append(c)
    return ''.join(reversed(chain))
def getChain ( line ) : chain = [ ] for c in reversed ( line ) : if c in DELIMITERS : break chain . append ( c ) return '' . join ( reversed ( chain ) )