[Tutor] Tutor digest, Vol 1 #537 - 13 msgs

Sharriff Aina NHYTRO@compuserve.com
Fri, 19 Jan 2001 07:47:12 -0500


Hi Guys!

heres something from my python console on NT4

Python 2.0 (#8, Oct 19 2000, 11:30:05) [MSC 32 bit (Intel)] on win32
Type "copyright", "credits" or "license" for more information.
IDLE 0.6 -- press F1 for help
>>> from os import *
>>> test1 =3D open('junk.txt', 'w')
Traceback (innermost last):
  File "<pyshell#1>", line 1, in ?
    test1 =3D open('junk.txt', 'w')
TypeError: an integer is required
>>> =


the sytax is fine, I =B4ve tried it out several times. I=B4ve noticed tha=
t this
prooblem starts when I import the OS module, witrhout it, the sytax is ok=
ay

Could someone explain why this incosistency exists? it=B4s made me very
unsure of the scipts that I=B4m writing with file access.

Thanks


Sharriff