I faced problem which is an extremely strange for me.
str.rstrip([chars])
works really strange manner for me, in one example. (Or maybe I missed some important documentation part).
>>> 'car_id__isnull'.rstrip('__isnull')
>>> 'car_id' # works fine
>>> 'last_success__isnull'.rstrip('__isnull')
>>> 'last_succe' # I do not understand why this happened ?
Thanks, in advance.