>> Yuck, yuck about the source file encoding part. Also, there is no way >> to tell that a particular argument was passed a literal. > > There is when compiling to bytecode; it goes in co_consts. > >> The very >> definition of "this was a literal" is iffy -- is x a literal when >> passed to f below? > >> x = "abc" >> f(x) > > No, it isn't.
By that definition, bytes never receives a constant. Regards, Martin _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com