[Twisted-Python] Re: Twisted 1.0.4 - Heavy search for `plugins.tml'

Glyph Lefkowitz glyph at twistedmatrix.com
Sun Apr 27 18:29:43 EDT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Sunday, April 27, 2003, at 04:44 PM, Itamar Shtull-Trauring wrote:

>> Hi.  This is a resend of a message which was rejected, because too
>> big. Wise mailing list system! :-).  So, I removed 1255 lines from the
>> middle of the last transcript, showing the first 20 and the last 20
>> only. You'll merely have to believe me that those lines I removed were
>> there! :-)

Whoooops!  Since all the mailing list messages I get to OK are spam, I 
just scan the headers to make sure it's from someone valid.  This time, 
that meant I OK'd a huuge message (as I rejected 8 other spams...).  
Smart mailing list systems don't help if you have dumb mailing list 
admin.

> Thank you! We will see about fixing this ASAP.

This is a subtle issue... right now we're going to fix it by 
hard-coding /usr/bin and /usr/local/bin as paths that should not be 
checked, but the real problem is an interaction between Python's 
default path behavior, UNIX's filesystem layout, and the way 
twisted.python.plugins works.

Itamar and I had a few ideas for fixing it "for real" but the caveats 
that we would have to put in the documentation are so ugly that we 
discarded them.  Hard coding '/usr/bin' should fix most cases.

While we were in there, we also removed all paths with a '.' in them: 
since these can't be valid Python packages anyway, it doesn't affect 
its correctness, and it has the benefit of making mktap at least 30% 
faster, even without filtering /usr/bin.

Thanks for bringing 'strace mktap' to our attention.  I'm sure 
everybody will appreciate mktap being much less sluggish :).
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (Darwin)

iD8DBQE+rFnbvVGR4uSOE2wRAg4VAJ9GaUH7G0/8pSIzwPBkn5Do2ePw/ACeNHLf
4XcMqTTBAvo+gReI4HfjJ6E=
=YDQQ
-----END PGP SIGNATURE-----





More information about the Twisted-Python mailing list