[Twisted-Python] Coding standard question: flowing long imports with parens
Robert Kern
robert.kern at gmail.com
Tue Dec 22 10:19:11 MST 2009
On 2009-12-21 18:55 PM, Glyph Lefkowitz wrote:
> This is handy, and a bit more reliable than an unstructured import, but what I *really* want is the ability to say "what depends on this", where "this" is a fully-qualified dotted name in Python. The weakness of grinimports seems to be that for each additional level of nesting, you need to add an additional regular expression; plus, depending on something could either be importing it, or accessing it as an attribute of a different name that was imported. Similarly, I have been missing smalltalk's "all senders of" and "all implementors of" functionality since I discovered it many years ago, despite the fact that I never really used Smalltalk for much. Any chance you have any of those lying around in a different examples directory?
Not from me:
http://furius.ca/snakefood/
I'm not sure there is anything you can do about references like "import twisted;
twisted.python.versions.Version", but snakefood should handle relative imports
mostly correctly.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
More information about the Twisted-Python
mailing list