Antoine Pitrou <[email protected]> writes: > Le Tue, 29 Jan 2013 09:35:40 +0100, > Ralf Schmitt <[email protected]> a écrit : >> >> I'd rather not have to check if some library messes with that global >> setting and work around it if it does! > > Then just don't try changing the flag. Problem solved.
I was talking about some library changing the flag. Not changing the flag myself doesn't help in that case. I'll probably have to explicitly pass a cloexec argument to each fd creating function I'm calling in order to not be dependent on the global setting. Please just acknowledge that having a global configurable setting may lead to problems. Why is sys.setdefaultencoding being hidden in python 2? _______________________________________________ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
