Serhiy Storchaka added the comment: No, -5 is not an atom. See The Python Language Reference [1]:
"""Note that numeric literals do not include a sign; a phrase like -1 is actually an expression composed of the unary operator ‘-‘ and the literal 1.""" [1] https://docs.python.org/3/reference/lexical_analysis.html#numeric-literals ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23429> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com