fileObject.isatty()
NA
#!/usr/bin/python3 # Open a file fo = open("foo.txt", "wb") print ("Name of the file: ", fo.name) ret = fo.isatty() print ("Return value : ", ret) # Close opend file fo.close()
Name of the file: foo.txt Return value : False