Jim Jewett wrote:

> Would it solve this problem if there were a PyTEMPREF that magically
> treated the refcount as an automatic variable?  (It increfed
> immediately, and decrefed whenever the function exited, without the
> user having to track this manually.)

This would be wrong, because most functions return
new references, which should *not* be increfed when
assigned to a variable.

How would you implement that in C anyway? (C++ could
do it, but we're not going there, as far as I know.)

-- 
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,          | Carpe post meridiem!                 |
Christchurch, New Zealand          | (I'm not a morning person.)          |
[EMAIL PROTECTED]          +--------------------------------------+
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to