Terry J. Reedy <tjre...@udel.edu> added the comment:
I agree that finishing this would be nice. In branch main (3.11.0a0), open and print now have non-None versions of this attribute. However, for ob in builtins.__dict__.values(): if (str(ob).startswith('<built-in function') and ob.__text_signature__ is None): print(ob) # prints <built-in function __build_class__> <built-in function __import__> <built-in function breakpoint> <built-in function dir> <built-in function getattr> <built-in function iter> <built-in function max> <built-in function min> <built-in function next> <built-in function vars> So there are still some to do. for ob in builtins.__dict__.values(): if (str(ob).startswith('<class') and ob.__init__.__text_signature__ is None): print(ob) # prints nothing. ---------- nosy: +terry.reedy stage: -> test needed title: basic builtin functions missing __text_signature__ attributes -> 10 built-in functions need non-None .__text_signature__ versions: +Python 3.11 -Python 3.8 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45302> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com