I have a save function within my Python program which looks like this:
def Save(n):
print(\"S3\")
global BF
global WF
global PBList
globa
You probably did a star import from the os module:
>>> open("test.dat","w")
>>> from os import *
>>> open("test.dat","w")
Traceback (most recent call last):
File "", line 1, in
TypeError: an integer is required
so you're using the wrong open function. (I suppose you could've simply done from os import open, but that's less likely.) In general this import style should be avoided, as should use of global, where practical.