Chris Jerdonek <chris.jerdo...@gmail.com> added the comment:
> Or should we be satisfied with the half-measure of including the qualname but > not the module (at least for now)? This is something I was wondering myself, too (also for other contexts). Let's take things one step at a time and limit ourselves just to __qualname__ in this issue. Including the module name can be discussed in a separate issue. (This question also comes up for the __repr__ of objects -- sometimes it includes the fully qualified name and sometimes it doesn't.) For your last question, does this work? >>> def foo(**kwargs): pass ... >>> foo(**{1: 2}) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: keywords must be strings (Also, the corrected link is here: https://github.com/python/cpython/blob/master/Python/ceval.c#L4182 ) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40679> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com