Karthikeyan Singaravelan <tir.kar...@gmail.com> added the comment:
Thanks iritkatriel for triaging. I can confirm it's fixed with the linked issue. Closing it as duplicate. ./python Python 3.10.0a0 (heads/master:2b05361bf7, Sep 19 2020, 04:38:05) [GCC 7.5.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import inspect, a >>> inspect.getsourcelines(a.C.B) ([' class B(object):\n', ' pass\n'], 6) ---------- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> inspect.getsource returns incorrect source for classes when class definition is part of multiline strings _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue24078> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com