Put .rc attribute in instance earlier, too many methods expect this to be there and it could lead to weird runtime bugs (like the one fixed by the previous commit).
Put .rc attribute in instance earlier, too many methods expect this to be
there and it could lead to weird runtime bugs (like the one fixed by the
previous commit).

ipython/ipython,ipython/ipython