[Twisted-Python] Coding standard question: flowing long imports with parens

James Y Knight foom at fuhm.net
Mon Dec 21 10:20:50 EST 2009


On Dec 21, 2009, at 12:03 AM, Jonathan Lange wrote:
> Now that we no longer support Python 2.3, may we also allow imports in
> the following style?
>
>  from very.long.package import (
>    bar,
>    foo,
>    )


Separating "from X import" and "Y" over a newline totally breaks  
grepping for imported modules. I'd not use it myself, purely because  
of that, except perhaps when the "Y"s are functions in a module,  
rather than modules.

James




More information about the Twisted-Python mailing list