Printing __doc__
Terry Reedy
tjreedy at udel.edu
Wed Mar 21 19:30:00 EDT 2007
"Cameron Laird" <claird at lairds.us> wrote in message
news:f5o8d4-uns.ln1 at lairds.us...
|| 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
More information about the Python-list
mailing list