From: Mike C. F. <mcf...@ro...> - 2005-02-24 00:17:59
|
Stephen Waterbury wrote: > Mike, > > You may be aware that Phillip Eby's PEAK package has a > sub-package called 'dispatch', which unfortunately (and, > IMO, rather arrogantly ;) PEAK installs into the > top-level site-packages namespace. So, since I already > had PEAK installed when I installed PyDispatcher, I > did an 'import dispatch' and 'help(dispatch)' and was > completely astonished at the result until I realized > it was coming from PEAK's dispatch package. Have never actually used or installed PEAK (though I did plumb through it's code looking for metaclass examples for a talk once), so no, wasn't aware of it. > Anyway, I realize that may or may not have practical > consequences, but it does make me uncomfortable. I need > both PEAK and PyDispatch in my application, so I was > wondering if anyone had tried that and, if so, whether > they had experienced anything untoward. Given that no-one has complained to Phillip yet (to my knowledge, backed up by the fact that it's still there), probably not ;) . That said, as long as PEAK's module doesn't overwrite any of the modules in the PyDispatcher package (and as long as importing it's __init__.py doesn't completely kark up the object model in some inventive and evil way (this being PEAK, after all)), you should be able to continue using PyDispatcher... in other words, our __init__ file doesn't do anything special. > If no one here has tried it, I'll contact Phillip Eby > and see if it would break anything in PEAK if I just > delete his dispatch package. (Actually, all I'm using > from PEAK is his XMI stuff, so as long as it doesn't > break *that* I'm okay -- I couldn't care less about the > rest of PEAK! ;). Please just go ahead and register your (infinite) disapproval, even if someone pipes up to say they've tried it ;) :) . If it's a sub-package it really should be a sub-package, not a top-level package, if it's a competing global dispatch system, well, then, they'll just have to find a different top-level package name (or Phillip and I will have to rumble at PyCon (hope he's not a jujitsu master or something)). Have fun, Mike ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com PyCon is coming... |