[issue11459] Python select.select does not correctly report read readyness
Gregory P. Smith g...@krypto.org added the comment: ross's patch looks good to me. Isn't the behavior just plain broken in 3.1 and 3.2? The docs say that the default bufsize=0 is unbuffered in Popen but the implementation has that nasty XXX to make it line buffered instead of unbuffered in it. This appears to have hid the problems with the textiowrapper being used in os.popen. I think fixing it in 3.1 and 3.2 is the right thing to do. It is desirable for os.popen()'s default buffering to match that of open() itself which is that they're buffered a buffer size of io.DEFAULT_BUFFER_SIZE. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11459 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10812] Add some posix functions
Ross Lagerwall rosslagerw...@gmail.com added the comment: PyParse_off_t was already added when sendfile() was added as was the iovec_setup stuff. I'll upload a patch soon which updates it to take this and the other comments into account. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10812 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11459] Python select.select does not correctly report read readyness
Gregory P. Smith g...@krypto.org added the comment: to get that behavior, change the =1 default to =io.DEFAULT_BUFFER_SIZE in ross's patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11459 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11133] inspect.getattr_static code execution
Daniel Urban urban.dani...@gmail.com added the comment: The new entry in Misc/NEWS says: Patch by Daniel Urban. But it wasn't me, who made the patch, I just opened the issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11133 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11504] test_subprocess failure
Antoine Pitrou pit...@free.fr added the comment: Other failures on the Sparc debian buildbot (which is quite slow): == ERROR: test_wait_timeout (test.test_subprocess.ProcessTestCase) -- Traceback (most recent call last): File /home/pybot/buildarea-sid/3.x.klose-debian-sparc/build/Lib/test/test_subprocess.py, line 630, in test_wait_timeout self.assertEqual(p.wait(timeout=2), 0) File /home/pybot/buildarea-sid/3.x.klose-debian-sparc/build/Lib/subprocess.py, line 1489, in wait raise TimeoutExpired(self.args) subprocess.TimeoutExpired: unprintable TimeoutExpired object == ERROR: test_wait_timeout (test.test_subprocess.ProcessTestCasePOSIXPurePython) -- Traceback (most recent call last): File /home/pybot/buildarea-sid/3.x.klose-debian-sparc/build/Lib/test/test_subprocess.py, line 630, in test_wait_timeout self.assertEqual(p.wait(timeout=2), 0) File /home/pybot/buildarea-sid/3.x.klose-debian-sparc/build/Lib/subprocess.py, line 1489, in wait raise TimeoutExpired(self.args) subprocess.TimeoutExpired: unprintable TimeoutExpired object == ERROR: test_wait_timeout (test.test_subprocess.ProcessTestCaseNoPoll) -- Traceback (most recent call last): File /home/pybot/buildarea-sid/3.x.klose-debian-sparc/build/Lib/test/test_subprocess.py, line 630, in test_wait_timeout self.assertEqual(p.wait(timeout=2), 0) File /home/pybot/buildarea-sid/3.x.klose-debian-sparc/build/Lib/subprocess.py, line 1489, in wait raise TimeoutExpired(self.args) subprocess.TimeoutExpired: unprintable TimeoutExpired object == ERROR: test_wait_timeout (test.test_subprocess.ContextManagerTests) -- Traceback (most recent call last): File /home/pybot/buildarea-sid/3.x.klose-debian-sparc/build/Lib/test/test_subprocess.py, line 630, in test_wait_timeout self.assertEqual(p.wait(timeout=2), 0) File /home/pybot/buildarea-sid/3.x.klose-debian-sparc/build/Lib/subprocess.py, line 1489, in wait raise TimeoutExpired(self.args) subprocess.TimeoutExpired: unprintable TimeoutExpired object == FAIL: test_check_output_timeout (test.test_subprocess.ProcessTestCase) -- Traceback (most recent call last): File /home/pybot/buildarea-sid/3.x.klose-debian-sparc/build/Lib/test/test_subprocess.py, line 135, in test_check_output_timeout self.assertEqual(c.exception.output, b'BDFL') AssertionError: b'' != b'BDFL' == FAIL: test_check_output_timeout (test.test_subprocess.ProcessTestCasePOSIXPurePython) -- Traceback (most recent call last): File /home/pybot/buildarea-sid/3.x.klose-debian-sparc/build/Lib/test/test_subprocess.py, line 135, in test_check_output_timeout self.assertEqual(c.exception.output, b'BDFL') AssertionError: b'' != b'BDFL' == FAIL: test_check_output_timeout (test.test_subprocess.ProcessTestCaseNoPoll) -- Traceback (most recent call last): File /home/pybot/buildarea-sid/3.x.klose-debian-sparc/build/Lib/test/test_subprocess.py, line 135, in test_check_output_timeout self.assertEqual(c.exception.output, b'BDFL') AssertionError: b'' != b'BDFL' == FAIL: test_check_output_timeout (test.test_subprocess.ContextManagerTests) -- Traceback (most recent call last): File /home/pybot/buildarea-sid/3.x.klose-debian-sparc/build/Lib/test/test_subprocess.py, line 135, in test_check_output_timeout self.assertEqual(c.exception.output, b'BDFL') AssertionError: b'' != b'BDFL' http://www.python.org/dev/buildbot/all/builders/sparc%20Debian%203.x/builds/119 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11504 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11562] += on list inside a tuple raises TypeError but succeds anyway
Changes by slav0nic slav0n...@gmail.com: -- nosy: +slav0nic ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11562 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11565] Another (the last) group of misspellings
Roundup Robot devnull@devnull added the comment: New changeset bf94b6a73fc8 by Ezio Melotti in branch '3.1': #11565: Fix several typos. Patch by Piotr Kasprzyk. http://hg.python.org/cpython/rev/bf94b6a73fc8 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11565 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11565] Another (the last) group of misspellings
Roundup Robot devnull@devnull added the comment: New changeset dc245d681901 by Ezio Melotti in branch '3.2': #11565: Merge with 3.1. http://hg.python.org/cpython/rev/dc245d681901 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11565 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11565] Another (the last) group of misspellings
Roundup Robot devnull@devnull added the comment: New changeset db73857669fb by Ezio Melotti in branch 'default': #11565: Merge with 3.2. http://hg.python.org/cpython/rev/db73857669fb -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11565 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11439] subversion keyword breakage
Neil Muller drnlmuller+b...@gmail.com added the comment: This also affects a number of files under Lib, including some that set their version using $Revision$. Since I stumbled on this issue by encountering some code that checks the version string in tkinker breaking, this is an issue that can break existing code. Mercurial does have the keyword extension (http://mercurial.selenic.com/wiki/KeywordExtension) which can provide something similar, but should be some sort of recommended configuration for this and there'll be discrepancies between the id's from svn and mercurial (which may or may not be an issue in practice). find ./Lib -name *.py | xargs grep -n '\$Revision\$' ./Lib/tarfile.py:32:__version__ = $Revision$ ./Lib/pydoc.py:45:__version__ = $Revision$ ./Lib/tkinter/__init__.py:33:__version__ = $Revision$ ./Lib/pickle.py:26:__version__ = $Revision$ # Code version -- nosy: +Neil Muller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11439 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11565] Another (the last) group of misspellings
Roundup Robot devnull@devnull added the comment: New changeset cd8d3c2d3bce by Ezio Melotti in branch '2.7': #11565: Fix several typos. Patch by Piotr Kasprzyk. http://hg.python.org/cpython/rev/cd8d3c2d3bce -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11565 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11565] Another (the last) group of misspellings
Ezio Melotti ezio.melo...@gmail.com added the comment: Fixed in all the four branches, thanks for the patch! -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11565 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11568] docstring of select.epoll.register() is wrong
New submission from Markus Korn thek...@gmx.de: select.epoll.register raises an IOError for already registered fds, however the docstring says the fd gets modified: Python 2.7.1+ (r271:86832, Feb 24 2011, 15:00:15) [GCC 4.5.2] on linux2 Type help, copyright, credits or license for more information. import select print select.epoll.register.__doc__ register(fd[, eventmask]) - None Registers a new fd or modifies an already registered fd. fd is the target file descriptor of the operation. events is a bit set composed of the various EPOLL constants; the default is EPOLL_IN | EPOLL_OUT | EPOLL_PRI. The epoll interface supports all file descriptors that support poll. -- messages: 131100 nosy: thekorn priority: normal severity: normal status: open title: docstring of select.epoll.register() is wrong ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11568 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11320] Usage of API method Py_SetPath causes errors in Py_Initialize() (Posix ony))
Palm Kevin kevin.p...@labsolution.lu added the comment: @Sridhar: Could you please provide input for the question asked by Antoine? I'd love to have this issue fixed for next Python release. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11320 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11243] email/message.py str conversion
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: On Tue, Mar 15, 2011 at 04:21:24AM +, R. David Murray wrote: Please test and let me know if it works Spending some more time on that, continuing yesterdays session where i got stuck. When i instead do (still in header.py:Header.append()): # Steffen is out now again if isinstance(s, Header): s = str(s) errors = 'replace' Traceback (most recent call last): File /Users/steffen/usr/bin/s-postman.py, line 1212, in save_ticket mb.add(ticket.message()) File /Users/steffen/usr/opt/py3k/lib/python3.3/mailbox.py, line 279, in add self._dump_message(message, tmp_file) File /Users/steffen/usr/opt/py3k/lib/python3.3/mailbox.py, line 215, in _dump_message gen.flatten(message) File /Users/steffen/usr/opt/py3k/lib/python3.3/email/generator.py, line 91, in flatten self._write(msg) File /Users/steffen/usr/opt/py3k/lib/python3.3/email/generator.py, line 144, in _write self._write_headers(msg) File /Users/steffen/usr/opt/py3k/lib/python3.3/email/generator.py, line 363, in _write_headers self.write(v.encode(maxlinelen=self._maxheaderlen)+NL) File /Users/steffen/usr/opt/py3k/lib/python3.3/email/header.py, line 320, in encode formatter.feed(lines[0], charset) File /Users/steffen/usr/opt/py3k/lib/python3.3/email/header.py, line 386, in feed encoded_string = charset.header_encode(string) File /Users/steffen/usr/opt/py3k/lib/python3.3/email/charset.py, line 296, in header_encode header_bytes = _encode(string, codec) File /Users/steffen/usr/opt/py3k/lib/python3.3/email/charset.py, line 163, in _encode return string.encode(codec) Exception: UnicodeEncodeError: 'ascii' codec can't encode character '\ufffd' in position 7: ordinal not in range(128) I've updated and am at db73857. And i am *really* looking forward for 'defects'. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11243 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11401] email.header error during .flatten()
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: On Tue, Mar 15, 2011 at 10:44:43PM +, R. David Murray wrote: header with no body. (Those are the *real* dangerous ones!) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11401 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11569] multiprocessing/darwin: sysctl(8) mislocation
New submission from Steffen Daode Nurpmeso sdao...@googlemail.com: Hello Mac OS X gurus, multiprocessing/__init__py. searches for sysctl(8) via os.popen(), which will fail since the moist fruits provide sysctl(8) in /usr/sbin! The applied patch multiproc_sysctl.patch uses an absolute path. (This may be better anyway, what do you think of that???) -- components: Library (Lib) files: multiproc_sysctl.patch keywords: patch messages: 131104 nosy: ned.deily, ronaldoussoren, sdaoden priority: normal severity: normal status: open title: multiprocessing/darwin: sysctl(8) mislocation versions: Python 3.3 Added file: http://bugs.python.org/file21237/multiproc_sysctl.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11569 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11562] += on list inside a tuple raises TypeError but succeds anyway
Daniel Urban urban.dani...@gmail.com added the comment: The reason of this behaviour is that x += 1 basically is the same as x = x.__iadd__(1). In the tuple case: t[1] = t[1].__iadd__([6]). The __iadd__ call mutates the list, then the tuple item assignment raises the TypeError. See these examples: import dis dis.dis('x += 1') 1 0 LOAD_NAME0 (x) 3 LOAD_CONST 0 (1) 6 INPLACE_ADD 7 STORE_NAME 0 (x) 10 LOAD_CONST 1 (None) 13 RETURN_VALUE dis.dis('t[1] += [6]') 1 0 LOAD_NAME0 (t) 3 LOAD_CONST 0 (1) 6 DUP_TOP_TWO 7 BINARY_SUBSCR 8 LOAD_CONST 1 (6) 11 BUILD_LIST 1 14 INPLACE_ADD 15 ROT_THREE 16 STORE_SUBSCR 17 LOAD_CONST 2 (None) 20 RETURN_VALUE -- nosy: +durban ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11562 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11570] Lib/test/test_distutils.py tries to mix 32 and 64 bits object files, doesn't obey LDFLAGS
New submission from Jesús Cea Avión j...@jcea.es: Example of faulting build: http://www.python.org/dev/buildbot/all/builders/AMD64%20OpenIndiana%203.1/builds/297 Problem: test_distutils.py tests the generation of shared libraries. It correctly compile the .c to .o as 64 bits, but when linking the resulting file object, it tries to link in 32 bits mode, failing miserably. Manually adding: --- a/Lib/distutils/unixccompiler.pyWed Mar 16 12:48:54 2011 +0200 +++ b/Lib/distutils/unixccompiler.pyWed Mar 16 12:14:37 2011 + @@ -251,6 +252,8 @@ if sys.platform == 'darwin': linker = _darwin_compiler_fixup(linker, ld_args) +print(*, repr(linker + ld_args)) +ld_args = [-m64]+ld_args self.spawn(linker + ld_args) except DistutilsExecError as msg: raise LinkError(msg) solves the issue. Notes: - Python is compiled with this configuration: ./configure --with-pydebug --with-computed-gotos CFLAGS=-I/usr/local/include/ncursesw -m64 LDFLAGS=-m64 - test_distutils.py compilation step works OK, and obey CFLAGS. The command line used is ['gcc', '-I/usr/local/include/ncursesw', '-m64', '-g', '-Wall', '-Wstrict-prototypes', '-fPIC', '-IInclude', '-I/tmp/z/3.1', '-c', '/tmp/tmp8M7aOH/xxmodule.c', '-o', '/tmp/tmp8M7aOH/tmp/tmp8M7aOH/xxmodule.o']. - test_distutils.py linking steps fails. The command line used is 'gcc', '-shared', '/tmp/tmp8M7aOH/tmp/tmp8M7aOH/xxmodule.o', '-o', '/tmp/tmp8M7aOH/xx.so'. It doesn't include the LDFLAGS parameter we want. - Modifying the source code to add a -m64 to the linking step solved the issue. - Python 2.7, 3.2 and 3.x works ok. -- components: Tests keywords: easy messages: 131106 nosy: jcea priority: normal severity: normal stage: needs patch status: open title: Lib/test/test_distutils.py tries to mix 32 and 64 bits object files, doesn't obey LDFLAGS type: compile error versions: Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11570 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11562] += on list inside a tuple raises TypeError but succeeds anyway
Changes by SilentGhost ghost@gmail.com: -- title: += on list inside a tuple raises TypeError but succeds anyway - += on list inside a tuple raises TypeError but succeeds anyway ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11562 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11569] multiprocessing/darwin: sysctl(8) mislocation
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Maybe i should have used 'hg anno' first ... next time i will. This new patch always uses an absolute path. I have not looked into os.popen() yet, but i do put trust in that it makes a difference :) The reason was nonetheless: 13:29 ~/usr/opt $ python3 -E -Wd -m test -r -w test_multiprocessing [1/1] test_multiprocessing /bin/sh: sysctl: command not found /bin/sh: sysctl: command not found /bin/sh: sysctl: command not found 1 test OK. -- nosy: +brian.curtin -ned.deily, ronaldoussoren versions: +Python 3.1, Python 3.2 Added file: http://bugs.python.org/file21238/multiproc_sysctl.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11569 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11569] multiprocessing/darwin: sysctl(8) mislocation
Ronald Oussoren ronaldousso...@mac.com added the comment: The patch looks fine. I'd prefer the second patch as this always uses an absolute path (I've ran into numerous problems in the past with scripts that assumed that the commands they looked for where on $PATH and were the system version instead of some local override). Jesse, what's your opinion on w.r.t. this patch? -- nosy: +jnoller, ronaldoussoren ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11569 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11371] Localization of error messages in getopt
Filip Gruszczyński grusz...@gmail.com added the comment: Bump! Hi Eric, there was no negative feedback for two weeks. How about commiting the patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11371 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11569] multiprocessing/darwin: sysctl(8) mislocation
Jesse Noller jnol...@gmail.com added the comment: Ronald - if you're OK w/ patch 2, please commit! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11569 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10812] Add some posix functions
Martin v. Löwis mar...@v.loewis.de added the comment: v6 was created against an unknown mercurial repository (most likely code.python.org). It actually doesn't apply cleanly anymore so it would be best to regenerate it it (or go on with any v7 that may result out of the review). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10812 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11452] test_trace not symlink install clean
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Signore Melotti, i'm making you nosy because you're the one which committed to this file last (db7385). I've tried a bit to write a patch, but my simple os.path.realpath() solution didn't work. I've got no idea of the test framework, nor of the tracer, so i'm the wrong person here anyway. (It would have been interesting why test_trace.py fails when run as part of the test suite, but succeeds if called directly, even from within the same directory.) Once again i attach failed test output. Please decide if this issue is to be closed or not, i can't help at all. 12:49 ~/usr/opt $ python3 -E -Wd -m test -r -w == CPython 3.3a0 (default:a064cca38425, Mar 16 2011, 12:14:52) [GCC 4.2.1 (Apple Inc. build 5664)] == Darwin-10.6.0-i386-64bit little-endian [...] 326 tests OK. 1 test failed: test_trace Re-running failed tests in verbose mode Re-running test 'test_trace' in verbose mode test_loop_caller_importing (test.test_trace.TestCallers) ... FAIL test_coverage (test.test_trace.TestCoverage) ... ok test_coverage_ignore (test.test_trace.TestCoverage) ... ok test_issue9936 (test.test_trace.TestCoverage) ... ok test_inst_method_calling (test.test_trace.TestFuncs) ... FAIL test_loop_caller_importing (test.test_trace.TestFuncs) ... FAIL test_simple_caller (test.test_trace.TestFuncs) ... FAIL test_linear_methods (test.test_trace.TestLineCounts) ... FAIL test_trace_func_generator (test.test_trace.TestLineCounts) ... FAIL test_trace_list_comprehension (test.test_trace.TestLineCounts) ... FAIL test_traced_func_importing (test.test_trace.TestLineCounts) ... FAIL test_traced_func_linear (test.test_trace.TestLineCounts) ... FAIL test_traced_func_loop (test.test_trace.TestLineCounts) ... FAIL test_exec_counts (test.test_trace.TestRunExecCounts) ... ERROR test_ignored (test.test_trace.Test_Ignore) ... ok == ERROR: test_exec_counts (test.test_trace.TestRunExecCounts) -- Traceback (most recent call last): File /Users/steffen/usr/opt/.cpython/lib/python3.3/test/test_trace.py, line 217, in test_exec_counts self.assertEqual(self.tracer.results().counts[k], expected[k]) KeyError: ('/Users/steffen/usr/opt/py3k/lib/python3.3/test/test_trace.py', 43) == FAIL: test_loop_caller_importing (test.test_trace.TestCallers) -- Traceback (most recent call last): File /Users/steffen/usr/opt/.cpython/lib/python3.3/test/test_trace.py, line 286, in test_loop_caller_importing self.assertEqual(self.tracer.results().callers, expected) AssertionError: {(('/Users/steffen/usr/opt/.cpython/lib/python3.3/test/test_trace.py', 'test_tra [truncated]... != {(('/Users/steffen/usr/opt/py3k/lib/python3.3/test/test_trace.py', 'test_trace', [truncated]... Diff is 2446 characters long. Set self.maxDiff to None to see it. == FAIL: test_inst_method_calling (test.test_trace.TestFuncs) -- Traceback (most recent call last): File /Users/steffen/usr/opt/.cpython/lib/python3.3/test/test_trace.py, line 259, in test_inst_method_calling self.assertEqual(self.tracer.results().calledfuncs, expected) AssertionError: {('/Users/steffen/usr/opt/.cpython/lib/python3.3/test/test_trace.py', 'test_trac [truncated]... != {('/Users/steffen/usr/opt/py3k/lib/python3.3/test/test_trace.py', 'test_trace', [truncated]... Diff is 926 characters long. Set self.maxDiff to None to see it. == FAIL: test_loop_caller_importing (test.test_trace.TestFuncs) -- Traceback (most recent call last): File /Users/steffen/usr/opt/.cpython/lib/python3.3/test/test_trace.py, line 246, in test_loop_caller_importing self.assertEqual(self.tracer.results().calledfuncs, expected) AssertionError: {('/Users/steffen/usr/opt/py3k/lib/python3.3/test/tracedmodules/testmod.py', 'te [truncated]... != {('/Users/steffen/usr/opt/py3k/lib/python3.3/test/test_trace.py', 'test_trace', [truncated]... Diff is 1310 characters long. Set self.maxDiff to None to see it. == FAIL: test_simple_caller (test.test_trace.TestFuncs) -- Traceback (most recent call last): File /Users/steffen/usr/opt/.cpython/lib/python3.3/test/test_trace.py, line 234, in test_simple_caller self.assertEqual(self.tracer.results().calledfuncs, expected) AssertionError: {('/Users/steffen/usr/opt/.cpython/lib/python3.3/test/test_trace.py', 'test_trac [truncated]... !=
[issue11452] test_trace not symlink install clean
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com: -- nosy: -sdaoden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11452 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11569] multiprocessing/darwin: sysctl(8) mislocation
Roundup Robot devnull@devnull added the comment: New changeset c394f2d42ff8 by Ronald Oussoren in branch '3.1': Issue #11569: use absolute path to the sysctl command in multiprocessing to http://hg.python.org/cpython/rev/c394f2d42ff8 New changeset b8f280d0cdbf by Ronald Oussoren in branch '2.7': Issue #11569: use absolute path to the sysctl command in multiprocessing to http://hg.python.org/cpython/rev/b8f280d0cdbf -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11569 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11569] multiprocessing/darwin: sysctl(8) mislocation
Ronald Oussoren ronaldousso...@mac.com added the comment: Thanks for the patch. I've committed it to 2.7 as well. -- resolution: - fixed stage: - committed/rejected status: open - closed type: - behavior versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11569 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue858809] Use directories from configure rather than hardcoded
Changes by Andy Buckley a...@insectnation.org: -- nosy: +andybuckley ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue858809 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1294959] Problems with /usr/lib64 builds.
Changes by Andy Buckley a...@insectnation.org: -- nosy: +andybuckley ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1294959 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11243] email/message.py str conversion
R. David Murray rdmur...@bitdance.com added the comment: Steffen, these look like different kinds of errors than the one you reported in this ticket. If they are, could you open a new issue? Either way, simple reproducers would be the most helpful. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11243 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5154] OSX broken poll testing doesn't work
Ronald Oussoren ronaldousso...@mac.com added the comment: I propose to close this as won't fix. The reason: poll on OSX does work, but fairly limited in the kinds of file descriptors it works with. The HAVE_BROKEN_POLL test is meant to detect poll implementation that don't even manage to implement the API correctly. The attached patch adds notes to the documentation to warn users about the limitations of poll and kqueue on MacOSX. -- keywords: +patch Added file: http://bugs.python.org/file21239/issue5154.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5154 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11570] Lib/test/test_distutils.py tries to mix 32 and 64 bits object files, doesn't obey LDFLAGS
Jesús Cea Avión j...@jcea.es added the comment: This patch is hacky, but 3.1 is in maintenance mode. This patch should be safe. It only touch SunOS compilation. It passes the testsuite, and it should allow 64 bit compilation of extension packages. This patch is not needed in 3.2 and 3.x. It only affects 3.1. The patch: diff -r f2ac5bbc1623 configure.in --- a/configure.in Wed Mar 16 12:48:54 2011 +0200 +++ b/configure.in Wed Mar 16 14:10:53 2011 + @@ -1758,8 +1758,8 @@ IRIX*/6*) LDSHARED=ld ${SGI_ABI} -shared -all;; SunOS/5*) if test $GCC = yes - then LDSHARED='$(CC) -shared' - else LDSHARED='$(CC) -G'; + then LDSHARED='$(CC) -shared $(LDFLAGS)' + else LDSHARED='$(CC) -G $(LDFLAGS)'; fi ;; hp*|HP*) if test $GCC = yes Please, review. If everything is OK, I will commit the patch myself. -- keywords: +needs review stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11570 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11564] pickle not 64-bit ready
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Tue, Mar 15, 2011 at 7:05 PM, Antoine Pitrou rep...@bugs.python.org wrote: .. - (bugfix) raise a proper exception when an object too large for handling by pickle is given What would be the proper exception here? With _pickle acceleration disabled, I get a struct.error: $ cat p.py import sys sys.modules['_pickle'] = None import pickle s = b'a' * (2**31) d = pickle.dumps(s) $ ./python.exe p.py Traceback (most recent call last): .. File Lib/pickle.py, line 496, in save_bytes self.write(BINBYTES + pack(i, n) + bytes(obj)) struct.error: 'i' format requires -2147483648 = number = 2147483647 I would say proper exception would be ValueError, but that means that we should change python implementation in an incompatible way. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11564 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9384] Tkinter windows pop under the terminal in OSX
Ronald Oussoren ronaldousso...@mac.com added the comment: This is not a bug in python, but is generic platform behavior (as Ned noted). I'll therefore close this issue as won't fix. -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9384 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9384] Tkinter windows pop under the terminal in OSX
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Wed, Mar 16, 2011 at 10:18 AM, Ronald Oussoren rep...@bugs.python.org wrote: .. This is not a bug in python, but is generic platform behavior (as Ned noted). Maybe not a bug in tkinter proper, but certainly an unexpected behavior when running tkinter demo scripts or say turtle module. The later is particularly troublesome because its target audience is novice users and to see terminal effectively freeze on python -m turtle because all the action is happening behind the terminal is rather surprising. Maybe turtle should set '-topmost' WM attribute on its main window? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9384 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11459] Python select.select does not correctly report read readyness
Ross Lagerwall rosslagerw...@gmail.com added the comment: to get that behavior, change the =1 default to =io.DEFAULT_BUFFER_SIZE in ross's patch. The problem is, it doesn't seem like you can import and use io.DEFAULT_BUFFER_SIZE from inside os.py. Python fails to start. You can import _io.DEFAULT_BUFFER_SIZE though. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11459 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9384] Tkinter windows pop under the terminal in OSX
Ronald Oussoren ronaldousso...@mac.com added the comment: Maybe. It is definitely something that will have to be determined for every case separately and is not something that should be worked around in Tkinter itself. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9384 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9047] Python 2.7rc2 includes -isysroot twice on each gcc command line
Ronald Oussoren ronaldousso...@mac.com added the comment: This is no longer a problem on any machine I have access to, I'm therefore closing this issue. Please reopen if you still have problems on your machine, if you do so include detailed information about: OSX release, system architecture (ppc, i386), Xcode release used. -- resolution: - works for me stage: - committed/rejected status: open - closed type: - compile error ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9047 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11571] Turtle window pops under the terminal on OSX
New submission from Alexander Belopolsky belopol...@users.sourceforge.net: If you have a large enough terminal window and run $ python -m turtle on OSX, you will see nothing because turtle screen pops under the terminal. Ned Deily suggested in msg130421 that this can be fixed by setting -topmost WM attribute on the root window. However, if you apply the following patch: diff -r 71b182134853 Lib/turtle.py --- a/Lib/turtle.py Wed Mar 16 09:44:26 2011 -0400 +++ b/Lib/turtle.py Wed Mar 16 10:49:22 2011 -0400 @@ -993,6 +993,7 @@ self._colormode = _CFG[colormode] self._keys = [] self.clear() +cv._rootwindow.call('wm', 'attributes', '.', '-topmost', '1') def clear(self): Delete all drawings and all turtles from the TurtleScreen. The result is that turtle window stays on top even if you shift focus back to the terminal. The correct behavior would be for the turtle screen to pop on top, ideally without receiving the focus, but allow users to obscure it with another window if they wish. -- assignee: ronaldoussoren components: Library (Lib), Macintosh messages: 131124 nosy: belopolsky, ned.deily, ronaldoussoren priority: normal severity: normal status: open title: Turtle window pops under the terminal on OSX type: behavior versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11571 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11571] Turtle window pops under the terminal on OSX
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- dependencies: +Tkinter windows pop under the terminal in OSX ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11571 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9384] Tkinter windows pop under the terminal in OSX
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- superseder: - Turtle window pops under the terminal on OSX ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9384 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9384] Tkinter windows pop under the terminal in OSX
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Wed, Mar 16, 2011 at 10:42 AM, Ronald Oussoren rep...@bugs.python.org wrote: It is definitely something that will have to be determined for every case separately and is not something that should be worked around in Tkinter itself. I agree, but I don't know how to achieve the desired behavior in the case of turtle where interaction often happens in the terminal and result displayed in a separate window. See issue11571. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9384 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11243] email/message.py str conversion
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: On Wed, Mar 16, 2011 at 01:58:40PM +, R. David Murray wrote: Steffen, these look like different kinds of errors than the one you reported in this ticket. If they are, could you open a new issue? Either way, simple reproducers would be the most helpful. I'm on db73857669fb, email/message.py is patched with your code, and email/header.py is patched with email-header.2.diff. 11243-test.1.py will traceback: 15:53 ~/tmp $ python3 11243-test.1.py Traceback (most recent call last): File 11243-test.1.py, line 17, in module msg[f] = email.header.make_header(email.header.decode_header(b)) File /Users/steffen/usr/opt/py3k/lib/python3.3/email/header.py, line 154, in make_header h.append(s, charset) File /Users/steffen/usr/opt/py3k/lib/python3.3/email/header.py, line 279, in append s.encode(output_charset, errors) UnicodeEncodeError: 'ascii' codec can't encode character '\xe9' in position 7: ordinal not in range(128) I'll be down the next couple of hours, but in the meanwhile that's all i can do anyway... And well, i won't open a new issue due to the stuff from msg131102, because that happen(ed) if the commented out code from email-header.2.diff is applied, which is non-real-life code-flow? (Though: a Message is happily read in via email.feedparser.BytesFeedParser() and finally adjusted via header.make_header(header.decode_header(b)) because you've asked me to do so, and just as is done by 11243-test.1.py.) -- Added file: http://bugs.python.org/file21240/email-header.2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11243 ___diff --git a/Lib/email/header.py b/Lib/email/header.py --- a/Lib/email/header.py +++ b/Lib/email/header.py @@ -70,7 +70,7 @@ occurs (e.g. a base64 decoding exception). # If no encoding, just return the header with no charset. -if not ecre.search(header): +if not ecre.search(str(header)): return [(header, None)] # First step is to parse all the encoded parts into triplets of the form # (encoded_string, encoding, charset). For unencoded strings, the last @@ -265,6 +265,10 @@ charset = self._charset elif not isinstance(charset, Charset): charset = Charset(charset) +# Steffen is out now again - but this can *really* be a Header here! +#if isinstance(s, Header): +#s = str(s) +#errors = 'replace' if not isinstance(s, str): input_charset = charset.input_codec or 'us-ascii' s = s.decode(input_charset, errors) ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11243] email/message.py str conversion
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Sorry, i've forgot the test ;) -- Added file: http://bugs.python.org/file21241/11243-test.1.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11243 ___import sys,email data = r'''Date: Mon, 17 Jan 2011 01:10:29 -0200 (BRST) From: Pank! é bom demais. no-re...@pank.com.br To: m...@openbsd.org Subject: =?iso-8859-1?Q?Pague_R$50,00_por_R$100,00_em_compras_e_aproveite_a_melhor?= =?iso-8859-1?Q?_sele=E7=E3o_de_perfumes_e_cosm=E9ticos_com_pre=E7os_imper?= =?iso-8859-1?Q?d=EDveis!?= Message-ID: 20110117031029.de4ed568...@al88.auinmeio.com.br ''' msg = email.message_from_string(data) allh = msg.items()[:] if len(allh): for (f, b) in allh: del msg[f] for (f, b) in allh: msg[f] = email.header.make_header(email.header.decode_header(b)) print(msg) ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11571] Turtle window pops under the terminal on OSX
Ronald Oussoren ronaldousso...@mac.com added the comment: The attached patch forces the window to the front by first making the window a topmost window and then resetting that flag. Could you test if this does want you'd like it to? (The patch is for 3.3, will backport upto 2.7 when the behavior is correct) -- Added file: http://bugs.python.org/file21242/issue-11571.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11571 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11133] inspect.getattr_static code execution
Roundup Robot devnull@devnull added the comment: New changeset 382cb3386d57 by Benjamin Peterson in branch '3.2': correct patch ack (#11133) http://hg.python.org/cpython/rev/382cb3386d57 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11133 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11562] += on list inside a tuple raises TypeError but succeeds anyway
Nick Coghlan ncogh...@gmail.com added the comment: As Daniel noted, this behaviour is in accordance with the language definition. It's obscure and surprising behaviour, but it isn't wrong. -- nosy: +ncoghlan resolution: - invalid stage: test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11562 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7013] Httplib read routine is not tolerant to not well-formed chunked http responses.
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7013 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11320] Usage of API method Py_SetPath causes errors in Py_Initialize() (Posix ony))
Nick Coghlan ncogh...@gmail.com added the comment: Note that this will be fixed for 3.3, as siteconfig will be updated to use static data (generated during the build process) rather than relying on build artifacts being available at runtime. However, virtualenv (et al) will still need to provide the relevant static config file in the isolated environments. -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11320 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11133] inspect.getattr_static code execution
Michael Foord mich...@voidspace.org.uk added the comment: Thanks Daniel (and sorry Andreas). Benjamin Peterson has fixed this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11133 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8916] Move PEP 362 (function signature objects) into inspect
Changes by Brett Cannon br...@python.org: -- assignee: - brett.cannon stage: - needs patch versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8916 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11571] Turtle window pops under the terminal on OSX
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Wed, Mar 16, 2011 at 11:26 AM, Ronald Oussoren rep...@bugs.python.org wrote: .. The attached patch forces the window to the front by first making the window a topmost window and then resetting that flag. Could you test if this does want you'd like it to? Yes, this works. Nice trick - did not think of it. I don't use idle, but someone should test that this works when turtle is used by idle. It works fine when I start idle from command line (in which case idle itself pops under the terminal), but I understand that most users start idle from Finder or the Dock and I don't have that set up. A nit-pick: in the current turtle code module imports and from module imports are visually separated. Consider moving import sys below import inspect. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11571 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11445] python.exe on OS X shared-llbrary build erroneously linked to MacPorts python library
Ronald Oussoren ronaldousso...@mac.com added the comment: The attached patch fixes the issue by moveing LDFLAGS after BLDLIBRARY in the linking step. I'm not committing this yet though as this will affect all platforms that use Makefiles to build, and I'm not sure if this change save for all compilers we effectively support. Fixing this completely for OSX will require another change as well: we'd have to add -Wl,-search_paths_first to ensure that the build will pick up the first libpython on the search path, otherwise we'd still have a problem if you try to build a staticly linked binary (as this would still cause the linker to find macports if the additional flag isn't used). -- keywords: +needs review, patch stage: needs patch - patch review Added file: http://bugs.python.org/file21243/issue-11445.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11445 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11572] bring Lib/copy.py to 100% coverage
New submission from Brandon Craig Rhodes bran...@rhodesmill.org: The attached patch will bring Lib/copy.py to 100% test coverage. A bug in coverage results in its only reporting 99% at the moment; see coverage issue #122 on bitbucket: https://bitbucket.org/ned/coveragepy/issue/122/for-else-always-reports-missing-branch This patch makes several minor improvements to copy: when doing getattr lookups with a default of None, it now uses an is comparison against None which is both faster and more correct; several special cases have been removed since Python 3 always has CodeType available; and an ancient obsolete test suite that had been appended to copy.py in ancient times has been removed. -- files: test_copy.patch keywords: patch messages: 131135 nosy: brandon-rhodes priority: normal severity: normal status: open title: bring Lib/copy.py to 100% coverage versions: Python 3.3 Added file: http://bugs.python.org/file21244/test_copy.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11572 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11513] Infinite recursion around raising an exception in tarfile
R. David Murray rdmur...@bitdance.com added the comment: This fix reveals a second bug. Without this fix, a non-existent file raises an IOError with an appropriate error message, but with the chained exception. After this fix, it raises an error that says 'not a gzip file', which while technically true is not very helpful :) The correct IOError message only happened by accident in the original code, but we need to fix this second bug in order to fix the first one correctly. I suggest that the test case should read: with self.assertRaisesRegex(xxx, IOError) as ex: tarfile.open(xxx, self.mode) self.assertEqual(ex.exception.errno, errno.ENOENT) -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11513 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11320] Usage of API method Py_SetPath causes errors in Py_Initialize() (Posix ony))
Sridhar Ratnakumar sridh...@activestate.com added the comment: [pitrou] Can you explain why this is a problem in Python? Can't lib/python3.2/config-3.2m/Makefile simply be provided by virtualenv (by copying it, I guess)? Yes, I believe virtualenv already does that (or symlinks to it). Python 3.2 changed the path to config and include directories for some reason, viz. $ ls -d /opt/ActivePython-3.*/lib/python3.?/*config*/ /opt/ActivePython-3.1/lib/python3.1/config/ /opt/ActivePython-3.2/lib/python3.2/config-3.2m/ $ and: $ ls -d /opt/ActivePython-3.*/include/python3.?* /opt/ActivePython-3.1/include/python3.1 /opt/ActivePython-3.2/include/python3.2m $ It is possible that virtualenv is hardcoding the relative path to 'config' (and 'include') directories and thus failing to find the new 'config-3.2m' dir. If that is the case, this is not a problem with Python. Although msg129372 does point to a Python bug, it may or may not be related to the virtualenv issue noted earlier. Given that virtualenv doesn't officially Python 3 and virtualenv5 is more of a hack, I haven't investigated into this much. Does that answer your question? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11320 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11513] chained exception/incorrect exception from tarfile.open on a non-existent file
R. David Murray rdmur...@bitdance.com added the comment: Note that the code in question was changed to the form with the bugs in 3.2, so this fix does not need to be backported to 3.1. The test could be, though. -- components: +Library (Lib) -Interpreter Core title: Infinite recursion around raising an exception in tarfile - chained exception/incorrect exception from tarfile.open on a non-existent file type: - behavior versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11513 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11572] bring Lib/copy.py to 100% coverage
Benjamin Peterson benja...@python.org added the comment: 1. I prefer that we don't have pragma statements sprinkled over the stdlib. 2. You can use assertIs() instead of assertTrue(x is y) (Feel free to change the lot) 3. Along the way you could also change those raise support.TestFailed over to calling the TestCase.fail method. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11572 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11572] bring Lib/copy.py to 100% coverage
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: A bug in coverage results in its only reporting 99% at the moment It was concluded during discussion of issue2506 that this is not a bug. At least not a bug in coverage or the trace module. At most this is a peephole optimization issue or rather a missing feature to turn off peephole optimization in coverage runs. -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11572 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11560] Expand test coverage in shutil
Changes by Nick Coghlan ncogh...@gmail.com: -- assignee: - ncoghlan nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11560 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11572] bring Lib/copy.py to 100% coverage
Changes by Nick Coghlan ncogh...@gmail.com: -- assignee: - ncoghlan nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11572 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11572] bring Lib/copy.py to 100% coverage
Nick Coghlan ncogh...@gmail.com added the comment: Alexander: the coverage problem in this case has to do with it incorrectly handling an else: clause on a loop (it doesn't adjust the expected target for an empty sequence to be the body of the else clause) Benjamin: the pragma question is probably worth bringing up on python-dev. In the long run, it would be best to merge coverage data from the test suites of all the major implementations and platforms, but in the meantime we need a way to mark when modules are done from the point of view of the CPython test suite. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11572 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11572] bring Lib/copy.py to 100% coverage
Benjamin Peterson benja...@python.org added the comment: 2011/3/16 Nick Coghlan rep...@bugs.python.org: Nick Coghlan ncogh...@gmail.com added the comment: Alexander: the coverage problem in this case has to do with it incorrectly handling an else: clause on a loop (it doesn't adjust the expected target for an empty sequence to be the body of the else clause) Benjamin: the pragma question is probably worth bringing up on python-dev. In the long run, it would be best to merge coverage data from the test suites of all the major implementations and platforms, but in the meantime we need a way to mark when modules are done from the point of view of the CPython test suite. There's really no precedent for it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11572 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11573] Improve Unicode Documentation with Known Caveats
New submission from Armin Ronacher armin.ronac...@active-4.com: The documentation should explain some of the common problems with Unicode on Python 3. * locale's affect the text default encoding * SSH clients can set the locale on a remote server * filesystem encoding is set by the SSH client as well -- components: Unicode messages: 131143 nosy: aronacher priority: normal severity: normal stage: needs patch status: open title: Improve Unicode Documentation with Known Caveats versions: Python 3.1, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11573 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11548] Passing format= to unpack_archive fails
Changes by Nick Coghlan ncogh...@gmail.com: -- assignee: - ncoghlan nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11548 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11574] Unicode Fallback Encoding on Python 3.3
New submission from Armin Ronacher armin.ronac...@active-4.com: Right now Python happily falls back to ASCII if it can not parse your LC_CTYPE or something similar happens. Instead of falling back to ASCII it would be better if it falls back to UTF-8. Alternatively it should at least give a warning that it's falling back to ASCII. This issue was discussed at PyCon and the consensus so far was that falling back to UTF-8 in 3.3 might be a good idea and should not break much code as UTF-8 is a superset of ASCII. -- components: Unicode messages: 131144 nosy: aronacher priority: normal severity: normal status: open title: Unicode Fallback Encoding on Python 3.3 versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11574 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11574] Unicode Fallback Encoding on Python 3.3
Changes by Armin Ronacher armin.ronac...@active-4.com: -- assignee: - loewis nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11574 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11575] addresses.txt file leaks into search engines
New submission from Skip Montanaro s...@pobox.com: The python.org postmaster received this email today: From: Tom Pinckney thomaspinckn...@gmail.com To: postmas...@python.org Subject: public email addresses Date: Wed, 16 Mar 2011 13:03:21 -0400 X-Spambayes-Classification: ham; 0.13 Kind of sucks that this file 1) exists 2) is indexed by google and 3) my email is in i\t. I found it by googling my email address to see what would come up. http://hg.python.org/pymigr/file/e727de0dfeec/addresses.txt I've asked the website team to see if they can adjust the robots.txt file, but is there something we can do to a) make it less likely that this file is harvested, or b) increase the obfuscation of the email addresses? (Maybe the entire file could be rot13?) -- messages: 131145 nosy: skip.montanaro priority: normal severity: normal status: open title: addresses.txt file leaks into search engines ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11575 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5870] subprocess.DEVNULL
Roundup Robot devnull@devnull added the comment: New changeset eaf93e156dff by Ross Lagerwall in branch 'default': Issue #5870: Add subprocess.DEVNULL constant. http://hg.python.org/cpython/rev/eaf93e156dff -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5870 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5870] subprocess.DEVNULL
Changes by Ross Lagerwall rosslagerw...@gmail.com: -- assignee: gregory.p.smith - rosslagerwall resolution: - accepted stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5870 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1559549] ImportError needs attributes for module and file name
Brett Cannon br...@python.org added the comment: At the PyCon 2011 sprint we discussed this issue and Nick, myself, and some other people agreed that using a keyword-only argument for passing in the module name is probably a better solution. While it won't be backwards-compatible (BaseException does not accept keyword arguments), it does provide a very clean API with an unambiguous way of specifying the module. Going another route (e.g., a constructor method) has the same backwards-compatibility issue. But a reason to use a solution other than the magical handling of the second argument is that it prevents doing the wrong thing simply because someone passes two or more arguments to ImportError. Another nicety of a new API for ImportError is that it can be made such that if the keyword-only argument ('module_name'?) is the only thing supplied (e.g., no positional arguments) then the message can be auto-generated, which would be a nice way to solve issue #8754. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1559549 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue502085] pickle problems (with Boost.Python)
Brandon Craig Rhodes bran...@rhodesmill.org added the comment: Benjamin, I would like some way to know when our tests achieve 100% coverage because otherwise I will keep coming back to this module to add more tests and have to re-discover code that is not CPython relevant. But for now I have removed the pragmas. The attached patch also changes assertIs() and assertIsNot(), and uses self.fail() instead of the exception inside of support. Thanks for those pointers! -- keywords: +patch nosy: +brandon-rhodes Added file: http://bugs.python.org/file21245/test_copy2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue502085 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue502085] pickle problems (with Boost.Python)
Changes by Brandon Craig Rhodes bran...@rhodesmill.org: Removed file: http://bugs.python.org/file21245/test_copy2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue502085 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11570] Lib/test/test_distutils.py tries to mix 32 and 64 bits object files, doesn't obey LDFLAGS
Jesús Cea Avión j...@jcea.es added the comment: Benjamin, could you possibly accept this for 3.1?. It solves a buildbot issue that cold mask othe problems. It seems pretty trivial and safe. If you approve, I will commit the patch myself. Thanks. -- assignee: - jcea nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11570 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue502085] pickle problems (with Boost.Python)
Changes by Brett Cannon br...@python.org: -- Removed message: http://bugs.python.org/msg131148 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue502085 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11548] Passing format= to unpack_archive fails
Roundup Robot devnull@devnull added the comment: New changeset d1619747c17d by Nick Coghlan in branch '3.2': Close #11548: Correctly handle format argument in shutil.unpack_archive http://hg.python.org/cpython/rev/d1619747c17d New changeset e376d04539bb by Nick Coghlan in branch 'default': Merge fix for #11548 from 3.2 http://hg.python.org/cpython/rev/e376d04539bb -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11548 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11572] bring Lib/copy.py to 100% coverage
Brandon Craig Rhodes bran...@rhodesmill.org added the comment: Benjamin, thanks for the pointers! The attached patch now uses assertIs() and assertIsNot(), and calls self.fail() instead of using the exception from support. In the future I would like some way to determine when test coverage is fully achieved, so that I do not come back to this module every few months and have to re-discover why it is not 100%. But for the moment I have indeed removed the pragmas, pending a better approach! -- Added file: http://bugs.python.org/file21246/test_copy2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11572 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11548] Passing format= to unpack_archive fails
Changes by R. David Murray rdmur...@bitdance.com: -- type: crash - behavior versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11548 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11560] Expand test coverage in shutil
Roundup Robot devnull@devnull added the comment: New changeset b313b05221a9 by Nick Coghlan in branch '3.2': Close #11560: Improve test coverage of shutil http://hg.python.org/cpython/rev/b313b05221a9 New changeset 5b61334bb776 by Nick Coghlan in branch 'default': Merge fix for #11560 from 3.2 http://hg.python.org/cpython/rev/5b61334bb776 -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11560 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6210] Exception Chaining missing method for suppressing context
Changes by Armin Ronacher armin.ronac...@active-4.com: -- nosy: +aronacher ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6210 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11557] Increase coverage in logging module
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11557 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1559549] ImportError needs attributes for module and file name
R. David Murray rdmur...@bitdance.com added the comment: +1 for providing a way to autogenerate the message. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1559549 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11570] Lib/test/test_distutils.py tries to mix 32 and 64 bits object files, doesn't obey LDFLAGS
Benjamin Peterson benja...@python.org added the comment: That should be okay. 3.1 is still open for normal bugfixes. 2011/3/16 Jesús Cea Avión rep...@bugs.python.org: Jesús Cea Avión j...@jcea.es added the comment: Benjamin, could you possibly accept this for 3.1?. It solves a buildbot issue that cold mask othe problems. It seems pretty trivial and safe. If you approve, I will commit the patch myself. Thanks. -- assignee: - jcea nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11570 ___ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11570 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11576] timedelta subtraction glitch on big timedelta values
New submission from Enrico Zini enr...@enricozini.org: Hello, I was testing edge case behaviour of some code of mine and stumbled into this unexpected domain error from timedelta: from datetime import * timedelta(9, 86399, 99) - timedelta(9, 86399, 98) Traceback (most recent call last): File stdin, line 1, in ? OverflowError: days=-10; must have magnitude = 9 The expected result is of course timedelta(0, 0, 1): timedelta(9, 86399, 98) + timedelta(0, 0, 1) datetime.timedelta(9, 86399, 99) Both time deltas are within the range documented in /usr/share/doc/python-doc/html/lib/datetime-timedelta.html I could reproduce it on 2.6.6 and 3.1.3. I don't have access to other python versions. Ciao, Enrico Note: I reported it 4 years ago in the Debian BTS (http://bugs.debian.org/408872) but I noticed now that the Debian maintainer doesn't seem to have bothered forwarding it here :( -- messages: 131155 nosy: enrico priority: normal severity: normal status: open title: timedelta subtraction glitch on big timedelta values type: behavior versions: Python 2.5, Python 2.6, Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11576 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11576] timedelta subtraction glitch on big timedelta values
SilentGhost ghost@gmail.com added the comment: To emphasize that it's only days parameter that is overflowing here is another case: timedelta(9, 1, 1) - timedelta(9, 0, 0) datetime.timedelta(0, 1, 1) timedelta(9, 1, 1) - timedelta(9, 1, 0) Traceback (most recent call last): File pyshell#18, line 1, in module timedelta(9, 1, 1) - timedelta(9, 1, 0) OverflowError: days=-10; must have magnitude = 9 -- nosy: +SilentGhost versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11576 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11576] timedelta subtraction glitch on big timedelta values
SilentGhost ghost@gmail.com added the comment: What happens is the second value is negated (__neg__) which causes it to become less than timedelta.min and that is causing OverflowError. -- components: +Library (Lib) nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11576 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11088] IDLE on OS X with Cocoa Tk 8.5 can hang waiting on input / raw_input
Ronald Oussoren ronaldousso...@mac.com added the comment: The same fix also works with 2.7. The attached patch is basically the same patch, but the special casing for OSX is impacts other platforms even less than before. -- Added file: http://bugs.python.org/file21247/issue11088-py27.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11088 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11577] testcase for exception binhex.Error
New submission from Arkady Koplyarov akoplya...@rim.com: Testcase for exception binhex.Error to increase test coverage. -- components: Library (Lib), Tests files: testcase_for_binhex_module.patch keywords: patch messages: 131159 nosy: arkady.koplyarov priority: normal severity: normal status: open title: testcase for exception binhex.Error versions: Python 2.7 Added file: http://bugs.python.org/file21248/testcase_for_binhex_module.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11577 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11577] testcase for exception binhex.Error
Changes by Brian Curtin br...@python.org: -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11577 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11577] testcase for exception binhex.Error
Changes by Nick Coghlan ncogh...@gmail.com: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11577 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11557] Increase coverage in logging module
Natalia B. Bidart nataliabid...@gmail.com added the comment: Attaching a patch that increases test coverage for logging/__init__.py by 12%. There are still a lot more to do, but this pacth is big enough. -- keywords: +patch Added file: http://bugs.python.org/file21249/pycon-issue11557.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11557 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11570] Lib/test/test_distutils.py tries to mix 32 and 64 bits object files, doesn't obey LDFLAGS
Roundup Robot devnull@devnull added the comment: New changeset d108a7dff2a0 by Jesus Cea in branch '3.1': Close Issue 11570: Lib/test/test_distutils.py tries to mix 32 and 64 bits object files, doesn't obey LDFLAGS http://hg.python.org/cpython/rev/d108a7dff2a0 -- nosy: +python-dev resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11570 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6210] Exception Chaining missing method for suppressing context
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: I've been looking through the list of current keywords and the best syntax I could come up with for suppressing the context is: try: x / y except ZeroDivisionError as e: raise as Exception( 'Invalid value for y' ) The rationale is that it's saying forget about the original exception (if any), raise _as though_ this is the original exception. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6210 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11577] testcase for exception binhex.Error
Nick Coghlan ncogh...@gmail.com added the comment: unittest provides a utility to help with testing that correct exceptions are raised: http://docs.python.org/dev/library/unittest#unittest.TestCase.assertRaises -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11577 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11055] OS X IDLE 3.2 Save As menu accelerator opens two Save windows
Ronald Oussoren ronaldousso...@mac.com added the comment: The double execution is definitely caused by having multiple event, one of which is a real keyboard event and the other one is a ghost one. I'm seeing calls to save_as with 2 events: the first is a ghost event, with type 35 and '??' as the keycode and keysym. The second one seems to be the real event with type 2, keysym 'S' and keycode 65651. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11055 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11055] OS X IDLE 3.2 Save As menu accelerator opens two Save windows
Ronald Oussoren ronaldousso...@mac.com added the comment: It's getting weirder by the minute. Not only do we get multiple events, we also get additional keybindings we never asked for. *Cmd+Ctrl+S also works as save as *Cmd+Shift+S gives two save as events (as was already known) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11055 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11549] Rewrite peephole to work on AST
Eugene Toder elto...@gmail.com added the comment: Any comments on the code so far or suggestions on how we should move forward? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11549 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9298] binary email attachment issue with base64 encoding
Roundup Robot devnull@devnull added the comment: New changeset 062d09d7bf94 by R David Murray in branch '3.1': #9298: restore proper folding of base64 encoded bodies. http://hg.python.org/cpython/rev/062d09d7bf94 New changeset c34320d9095e by R David Murray in branch '3.2': Merge #9298 fix. http://hg.python.org/cpython/rev/c34320d9095e New changeset de2cd04e5101 by R David Murray in branch 'default': Merge #9298 fix. http://hg.python.org/cpython/rev/de2cd04e5101 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9298 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com