"Cameron Laird" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] || Peter is trying to communicate that some aspects of Python are | quite conservative, well-documented, and unlikely to change | across versions or implementations. The syntax of, let's say, | "def", is an example of such an aspect. | | Peter has no particular evidence about the guarantees of the | sys._getframe(1).f_code.co_consts[0] | resolution; for all he or I know, the core Python maintainers | might change in an upcoming release the implementation of | co_consts. That's what I believe he intends you understand by | "brittle".
There is also no reason to expect that such code would work with Python interpreters other than CPython. tjr -- http://mail.python.org/mailman/listinfo/python-list