[Twisted-Python] minimal python version?

Andrew Bennetts andrew-twisted at puzzling.org
Sat Oct 25 12:57:29 EDT 2003


[please don't top-post!]

On Sat, Oct 25, 2003 at 12:45:22PM -0400, Yun Mao wrote:
> This may not be true..
> 
> $ python localsocks.py 
> Traceback (most recent call last):
>   File "localsocks.py", line 191, in ?
>     main()
>   File "localsocks.py", line 176, in main
>     config = Options()
>   File "twisted/python/usage.py", line 134, in __init__
>     (longOpt, shortOpt, docs, settings, synonyms, dispatch) = c()
>   File "twisted/python/usage.py", line 349, in _gather_handlers
>     dispatch[prettyName] = new.instancemethod(fn, self, self.__class__)
> TypeError: instancemethod() argument 3 must be class, not type
> 
> $ python
> Python 2.2 (#1, Apr 12 2002, 15:29:57)
> [GCC 2.96 20000731 (Red Hat Linux 7.2 2.96-109)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>>
> 
> 
> I don't have this trouble when I use python 2.2.3.

Hmm... unless something has changed recently, our OS-X buildslave uses
2.2.0, and the tests are passing just fine on it:
    http://twistedmatrix.com/buildbot/

In fact, I recall a change to that exact line recently, and sure enough,
it's different in CVS -- I think if you try 1.1.0rc2 (which I believe will
be identical to 1.1.0 final), you'll find that bug is fixed.  If not, or if
you find any other problems, please file bug reports :)

-Andrew.





More information about the Twisted-Python mailing list