[Twisted-web] Turkey Questions 6-8

Jp Calderone exarkun at divmod.com
Sat Jul 9 07:40:53 MDT 2005


On Fri, 8 Jul 2005 16:33:51 -0400 (EDT), lloyd at paisite.com wrote:
>Hi Matt,
>
>Thanks for responding.
>
>I've started a website to capture the sequence of experiments, questions,
>and responses. Will have posted this weekend.
>
> [snip]
>Question 7: Where is new?
>

It's a standard library module.

    foo = new.classobj('foo', (Bar, Baz), {'quux': foobar})

Is the same as:

    class foo(Bar, Baz):
        quux = foobar

The code in question is in bad need of a refactoring.

Jp



More information about the Twisted-web mailing list