Jordan R McCoy wrote:

> For example, the Twisted framework uses this technique to allow global
> access to the installed reactor via import syntax, which works well
> within the framework. It did, however, throw me a bit when I first
> encountered it, and drove me to pour over the source to find out what
> was happening.

It sounds to me like this was a case of poor code commenting in Twisted
(Iv'e not looked at it myself). It seems to me this is a useful trick,
but like any unusual or clever bit of coding it's use should be
carefully commented to make sure it's clear to anyone coming across it.

Simon Hibbs

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to