[Tutor] Win98 appears as NT
Stevenson Hickey
st_hickey@hotmail.com
Wed, 18 Apr 2001 01:22:19 -0700
This is a multi-part message in MIME format.
------=_NextPart_000_0007_01C0C7A6.038329C0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
There are certain inconsistencies that I have come across in running =
Py21.b. I don't know if these are in earlier versions.
Apparently my Windows 98 system is identified by Python as an 'NT' =
system. Below is some of the data:
import sys
>>> print sys.builtin_module_names
('__builtin__', '__main__', '_codecs', '_locale', '_weakref', 'array', =
'audioop', 'binascii', 'cPickle', 'cStringIO', 'cmath', 'errno', =
'exceptions', 'gc', 'imageop', 'imp', 'marshal', 'math', 'md5', =
'msvcrt', 'new', 'nt', 'operator', 'pcre', 'regex', 'rgbimg', 'rotor', =
'sha', 'signal', 'strop', 'struct', 'sys', 'thread', 'time', =
'xreadlines')
(notice that 'nt' appears, but not 'dos')
I also got this:
>>> os.path.__name__
'ntpath'
And also:
>>> os.path
<module 'ntpath' from 'c:\python21\lib\ntpath.pyc'>
(I do have a dospath.py file in my library.)
In the Faqw of 1998, it says: "There are (at least) three kinds of =
modules in Python: 1) modules written in Python (.py); 2) modules =
written in C and dynamically loaded (.dll, .pyd, .so, .sl, etc); 3) =
modules written in C and linked with the interpreter; to get a list of =
these, type:=20
import sys
print sys.builtin_module_names"
This came about when I was investigating os.py in relationship to the =
os.path.walk method. =20
Any clues as to why my system seems to be referred to as 'nt'?
Is it possible that I made some mistake upon installation of py21? If =
so, where would I look to make changes?
Stevenson Hickey
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.248 / Virus Database: 121 - Release Date: 4/11/2001
------=_NextPart_000_0007_01C0C7A6.038329C0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4522.1800" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>There are certain inconsistencies that I have come across in =
running=20
Py21.b. I don't know if these are in earlier versions.</DIV>
<DIV> </DIV>
<DIV>Apparently my Windows 98 system is identified by Python as an 'NT'=20
system. Below is some of the data:</DIV>
<DIV> </DIV>
<DIV>import sys<BR>>>> print=20
sys.builtin_module_names<BR>('__builtin__', '__main__', '_codecs', =
'_locale',=20
'_weakref', 'array', 'audioop', 'binascii', 'cPickle', 'cStringIO', =
'cmath',=20
'errno', 'exceptions', 'gc', 'imageop', 'imp', 'marshal', 'math', 'md5', =
'msvcrt', 'new', 'nt', 'operator', 'pcre', 'regex', 'rgbimg', 'rotor', =
'sha',=20
'signal', 'strop', 'struct', 'sys', 'thread', 'time', =
'xreadlines')</DIV>
<DIV><BR>(notice that 'nt' appears, but not 'dos')</DIV>
<DIV> </DIV>
<DIV>I also got this:</DIV>
<DIV> </DIV>
<DIV>>>> os.path.__name__<BR>'ntpath'</DIV>
<DIV> </DIV>
<DIV>And also:</DIV>
<DIV> </DIV>
<DIV>>>> os.path<BR><module 'ntpath' from=20
'c:\python21\lib\ntpath.pyc'></DIV>
<DIV> </DIV>
<DIV>(I do have a dospath.py file in my library.)</DIV>
<DIV> </DIV>
<DIV>In the Faqw of 1998, it says: "There are (at least) three kinds of =
modules=20
in Python: 1) modules written in Python (.py); 2) modules written in C =
and=20
dynamically loaded (.dll, .pyd, .so, .sl, etc); 3) modules written in C =
and=20
linked with the interpreter; to get a list of these, type:=20
<BR> import sys<BR> print=20
sys.builtin_module_names"</DIV>
<DIV> </DIV>
<DIV>This came about when I was investigating os.py in relationship to =
the=20
os.path.walk method. </DIV>
<DIV> </DIV>
<DIV>Any clues as to why my system seems to be referred to as =
'nt'?</DIV>
<DIV> </DIV>
<DIV>Is it possible that I made some mistake upon installation of =
py21? If=20
so, where would I look to make changes?</DIV>
<DIV> </DIV>
<DIV>Stevenson Hickey</DIV>
<DIV> </DIV>
<DIV><BR>---<BR>Outgoing mail is certified Virus Free.<BR>Checked by AVG =
anti-virus system (<A=20
href=3D"http://www.grisoft.com">http://www.grisoft.com</A>).<BR>Version: =
6.0.248 /=20
Virus Database: 121 - Release Date: 4/11/2001</DIV></BODY></HTML>
------=_NextPart_000_0007_01C0C7A6.038329C0--