os.forkpty vs. pty module

Noah noah at noah.org
Wed Apr 24 20:02:26 EDT 2002


The documentation for os.forkpty() says
to use pty module instead because it's more portable;
yet the pty module appears to be fairly immature
and in the words of the documentation:
	"Because pseudo-terminal handling is 
	highly platform dependant, there is code 
	to do it only for SGI and Linux."

os.forkpty() seems to work on OpenBSD.
Is there a way to evaluate which to use?
Should I actually avoid os.forkpty?
Could this be deprecated in the future?

Yours,
Noah





More information about the Python-list mailing list