Phillip J. Eby wrote: > This is the driving force for having before and after methods: allowing > independent hooks to be registered, while ensuring that they can't mess > anything up (as long as they stick to their own business).
Some discipline is still required to make sure they do stick to their business. The same result could be achieved with only one order-independent decorator instead of two, and an additional discipline of always calling the next method. -- Greg _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com