Making the Zen of Python more useful

Andrew Henshaw andrew.henshaw at gtri.gatech.edu
Fri Apr 2 12:53:42 EST 2004


In article <abqdneFj-dP8APDd4p2dnA at powergate.ca>, peter at engcorp.com says...
>
>Andrew Henshaw wrote:
>
>> In article <-5ydnTEmxfuZHvDdRVn-iQ at powergate.ca>, peter at engcorp.com says...
>> my main
>> problem was with the automatic printing of the text upon import.  
Obviously, 
>> that functionality needs to remain.  It would just be nice if there was 
>> some clean way of (sometimes) using the module without it.
>
>I don't think your particular use case was known to the developers
>when they implemented that module.  Maybe you should suggest it as
>an enhancement on Sourceforge.  Be sure to include a patch!  ;-)
>
>-Peter

I'm sure that is true.  Unfortunately, I can't write a patch since I can't 
think of a way to provide both functions; except, by wrapping in another 
module - which I mentioned in my original post and was repeated by Joe Mason.  
It's not a big deal, obviously.  It would just be nice if there was a way to 
do both using the one module.

For my use, wrapping it in another module is okay.  I just thought that since 
we had the 'this' module as part of the standard distribution, and, I suspect, 
that lots of coders have unittests that could use some line-oriented text, 
then it would have reasonably broad applicability.


-- 
Andy




More information about the Python-list mailing list