From: Jeff K. Hoffman [mailto:jeff.hoffman@goingv.com]
On Mon, 28 Feb 2000, Martijn Pieters wrote:
I am glad that this is solved. I ponder at the case-sensitivity though. Maybe Python doesn't detect the OS properly? I am not fully sure as to how Python decides when to ignore case, but it is clearly broken on your Win2k install. Also, the lack of error messages was very vexing and confusing.
This is discussed partially in Guido's essay on the Python Package mechanism. This is why you must specify the __all__ symbol in a package's __init__.py if you want it to behave well in a cross-platform situation.
At least, that's my take on it. ;-)
Except that there are no 'import *'s from _packages_ in Zope, where __all__ would be needed. __all__ would only increase the maintenance overhead here. The PYTHONCASEOK might be a better idea, or better still, #undef-ing CHECK_IMPORT_CASE. We'll investigate first. -- Martijn Pieters, Software Engineer | Digital Creations http://www.digicool.com | Creators of Zope http://www.zope.org | mailto:mj@digicool.com ICQ: 4532236 | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 -------------------------------------------
On Tue, 29 Feb 2000, Martijn Pieters wrote:
Except that there are no 'import *'s from _packages_ in Zope, where __all__ would be needed. __all__ would only increase the maintenance overhead here.
Indeed, this is true. I forgot that that was the only time __all__ was used. Silly me. ;-) --Jeff --- Jeff K. Hoffman 704.849.0731 x108 Chief Technology Officer mailto:jeff@goingv.com Going Virtual, L.L.C. http://www.goingv.com/
participants (2)
-
Jeff K. Hoffman -
Martijn Pieters