Christian Heimes wrote:
> Pardon my ignorance but why does Python do reference counting for truly
> global and static objects

Because it would cost more time to check whether the
reference counting needed to be done than to just do
it anyway.

Remember that *most* refcount operations are on
non-global objects. Putting in a test would slow
all of them down, but only speed a few of them
up.

-- 
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,          | Carpe post meridiem!                 |
Christchurch, New Zealand          | (I'm not a morning person.)          |
[EMAIL PROTECTED]          +--------------------------------------+
_______________________________________________
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

Reply via email to