Re: 'pydo' as package name for PyDO2

Hamish Lawson <[email protected]> Mon, 30 May 2005 18:26:53 +0100
Newsgroups gmane.comp.web.skunkweb
Message-ID <[email protected]>
Jacob Smullyan wrote:

> Now, "pydo" would be my first choice, except that PyDO1 may currently
> be in use on case-insensitive platforms, and then there would be a
> conflict, presumably.  Is this important to anybody?  If there were a
> conflict, it could be resolved by renaming PyDO1 to "PyDO1".

I think we can resolve the name conflict while avoiding the potential 
code breakage of renaming "PyDO" to "PyDO1". Instead we can take 
advantage of Python 2.3's ability to import from zip files and the fact 
that the contents of a zip file are case-sensitive regardless of the 
platform. Supplying PyDO 1 and PyDO 2 as zip files allows those on 
case-insensitive platforms such as Windows to have both installed 
without conflict, as demonstrated by my test below:

 >>> import pydo
Hello from pydo
 >>> import PyDO
Hello from PyDO
 >>>


Hamish Lawson


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005