[issue11380] close failed in file object destructor when Broken pipe happens on stdout

2011-03-02 Thread ulidtko
New submission from ulidtko ulid...@gmail.com: The following script fails: from time import sleep try: while True: sleep(0.1) print blah except KeyboardInterrupt: pass when being launched with redirections like this: $ python test.py | tee /dev/null and the tee

[issue10865] chroot-ing breaks encodings.idna

2011-01-08 Thread ulidtko
ulidtko ulid...@gmail.com added the comment: Can I perform a name resolution before chrooting, save the result and use it later for creating an instance of http.server.HTTPServer, as a workaround? -- ___ Python tracker rep...@bugs.python.org http

[issue10865] chroot-ing breaks encodings.idna

2011-01-08 Thread ulidtko
ulidtko ulid...@gmail.com added the comment: Ok, I can do it with socket.gethostbyname(). Thanks for clarifications. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10865

[issue10865] chroot-ing breaks encodings.idna

2011-01-07 Thread ulidtko
New submission from ulidtko ulid...@gmail.com: Consider the following test script: import os import urllib.request os.chroot(/tmp) urllib.request.urlopen(http://localhost;) When executed with enough privileges, the script terminates with the following traceback: Traceback (most recent