module case bug in 1.6a2 Win9x
Robin Becker
robin at jessikat.demon.co.uk
Thu Apr 27 11:16:55 EDT 2000
I believe there's a module case bug with long named modules under win98
at least. I believe the bug relates to the length of the filename
somehow.
This is with win98 version 2 + 1.6a2
C:\Python16\Tools\test>copy PWD.py PrintWindowDialog.py
1 file(s) copied
C:\Python16\Tools\test>dir
Volume in drive C has no label
Volume Serial Number is 291A-00FF
Directory of C:\Python16\Tools\test
. <DIR> 27/04/00 16:02 .
.. <DIR> 27/04/00 16:02 ..
PWD PY 71 27/04/00 16:03 PWD.py
PRINTW~1 PY 71 27/04/00 16:03 PrintWindowDialog.py
2 file(s) 142 bytes
2 dir(s) 3,314.16 MB free
C:\Python16\Tools\test>..\..\python
Python 1.6a2 (#0, Apr 6 2000, 11:45:12) [MSC 32 bit (Intel)] on win32
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> from pWD import PWD
Traceback (most recent call last):
File "<stdin>", line 1, in ?
NameError: Case mismatch for module name pWD
(filename PWD.py)
>>> from printWindowDialog import PWD
>>> PWD()
PWD initialized printWindowDialog.py
<printWindowDialog.PWD instance at 7903f0>
>>>
the two files PWD.py and PrintWindowDialog are identical and look like
class PWD:
def __init__(self):
print 'PWD initialized', __file__
--
Robin Becker
More information about the Python-list
mailing list