Here's another rule-of-thumb: when the VM and the user *share* the attribute space of an object, the VM uses system attributes; the VM uses plain attributes for objects that it owns completely (like code objects, frames and so on, which rarely figure user code except for the explicit purpose of introspection). So I think the PEP should continue to use __traceback__ etc.
On 5/17/05, Greg Ewing <[EMAIL PROTECTED]> wrote: > Guido van Rossum wrote: > > > Unfortunately I can't quite decide whether either rule applies in the > > case of exceptions. > > I think you'd at least be justified in using the "magic" rule, > since they're set by the exception machinery. -- --Guido van Rossum (home page: http://www.python.org/~guido/) _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com