[issue22089] collections.MutableSet does not provide update method
New submission from Roy Wellington: Inheriting from collections.MutableSet mixes in several methods, however, it does not mix in a .update method. This can cause a variety of confusion if you expect a MutableSet to act like a set. Moreover, MutableMapping does provide a .update method, which makes me think this is a bug. I've attached a file that creates a bare-bones MutableSet, and shows the difference. Is this a bug, or is there some reason that MutableSet doesn't provide an update method? -- components: Library (Lib) files: ms.py messages: 224105 nosy: roy.wellington priority: normal severity: normal status: open title: collections.MutableSet does not provide update method versions: Python 3.3, Python 3.4 Added file: http://bugs.python.org/file36125/ms.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22089 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21933] Allow the user to change font sizes with the text pane of turtledemo
Terry J. Reedy added the comment: While we are at it, lets compute sys.platform == 'darwin' just once and use conditional expressions. (I just condensed config_gui() with conditional expressions, but avoided changing the context for the patches here.) -- Added file: http://bugs.python.org/file36126/tdemo-font-34-t2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21933 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21308] PEP 466: backport ssl changes
Ned Deily added the comment: Some results from a quick build/test on OS X 10.9.4 with Xcode 5.1.1 clang and openssl 1.0.1h from MacPorts (similar results when built with Apple-supplied openssl 0.9.8y and on OS X 10.5.8 ppc with Apple-supplied openssl 0.9.7l): - Modules/_ssl.c:2861:52: warning: invalid conversion specifier 'R' [-Wformat-invalid-specifier] unknown elliptic curve name %R, name); ~^ - segfault on test_load_cert_chain (lldb traceback in attached file) ./python -m test.regrtest -v -uall,-largefile test_ssl == CPython 2.7.8+ (default, Jul 26 2014, 23:44:13) [GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.40)] == Darwin-13.3.0-x86_64-i386-64bit little-endian == /py/dev/27/source/build/test_python_22427 Testing with flags: sys.flags(debug=0, py3k_warning=0, division_warning=0, division_new=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, tabcheck=0, verbose=0, unicode=0, bytes_warning=0, hash_randomization=0) test_ssl test_ssl: testing with 'OpenSSL 1.0.1h 5 Jun 2014' (1, 0, 1, 8, 15) under Mac ('10.9.4', ('', '', ''), 'x86_64') HAS_SNI = True OP_ALL = 0x83ff OP_NO_TLSv1_1 = 0x1000 test__create_stdlib_context (test.test_ssl.ContextTests) ... ok test_cert_store_stats (test.test_ssl.ContextTests) ... ok test_check_hostname (test.test_ssl.ContextTests) ... ok test_ciphers (test.test_ssl.ContextTests) ... ok test_constructor (test.test_ssl.ContextTests) ... ok test_create_default_context (test.test_ssl.ContextTests) ... ok test_get_ca_certs (test.test_ssl.ContextTests) ... ok test_load_cert_chain (test.test_ssl.ContextTests) ... Segmentation fault: 11 - test_poplib hangs, requiring ctrl-c interrupt /python -m test.regrtest -v -uall test_poplib == CPython 2.7.8+ (default, Jul 26 2014, 23:44:13) [GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.40)] == Darwin-13.3.0-x86_64-i386-64bit little-endian == /py/dev/27/source/build/test_python_33661 Testing with flags: sys.flags(debug=0, py3k_warning=0, division_warning=0, division_new=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, tabcheck=0, verbose=0, unicode=0, bytes_warning=0, hash_randomization=0) test_poplib test_dele (test.test_poplib.TestPOP3Class) ... ok test_exceptions (test.test_poplib.TestPOP3Class) ... ok test_getwelcome (test.test_poplib.TestPOP3Class) ... ok test_list (test.test_poplib.TestPOP3Class) ... ok test_noop (test.test_poplib.TestPOP3Class) ... ok test_pass_ (test.test_poplib.TestPOP3Class) ... ok test_retr (test.test_poplib.TestPOP3Class) ... ok test_rpop (test.test_poplib.TestPOP3Class) ... ok test_stat (test.test_poplib.TestPOP3Class) ... ok test_top (test.test_poplib.TestPOP3Class) ... ok test_uidl (test.test_poplib.TestPOP3Class) ... ok test_user (test.test_poplib.TestPOP3Class) ... ok testTimeoutDefault (test.test_poplib.TestTimeouts) ... ok testTimeoutNone (test.test_poplib.TestTimeouts) ... ok testTimeoutValue (test.test_poplib.TestTimeouts) ... ok test__all__ (test.test_poplib.TestPOP3_SSLClass) ... Exception in thread Thread-16: Traceback (most recent call last): File /py/dev/27/source/Lib/threading.py, line 810, in __bootstrap_inner self.run() File /py/dev/27/source/Lib/test/test_poplib.py, line 132, in run asyncore.loop(timeout=0.1, count=1) File /py/dev/27/source/Lib/asyncore.py, line 220, in loop poll_fun(timeout, map) File /py/dev/27/source/Lib/asyncore.py, line 156, in poll read(obj) File /py/dev/27/source/Lib/asyncore.py, line 87, in read obj.handle_error() File /py/dev/27/source/Lib/asyncore.py, line 83, in read obj.handle_read_event() File /py/dev/27/source/Lib/asyncore.py, line 443, in handle_read_event self.handle_accept() File /py/dev/27/source/Lib/test/test_poplib.py, line 143, in handle_accept self.handler = self.handler(conn) File /py/dev/27/source/Lib/test/test_poplib.py, line 242, in __init__ self.push('+OK dummy pop3 server ready.') File /py/dev/27/source/Lib/test/test_poplib.py, line 63, in push asynchat.async_chat.push(self, data + '\r\n') File /py/dev/27/source/Lib/asynchat.py, line 193, in push self.initiate_send() File /py/dev/27/source/Lib/asynchat.py, line 244, in initiate_send self.handle_error() File /py/dev/27/source/Lib/asynchat.py, line 242, in initiate_send num_sent = self.send(data) File /py/dev/27/source/Lib/asyncore.py, line 374, in send result = self.socket.send(data) File /py/dev/27/source/Lib/ssl.py, line 662, in send return self._sslobj.write(data) SSLWantReadError: The operation did not complete (read) (_ssl.c:1611) ^CWarning -- asyncore.socket_map was modified by test_poplib Test suite interrupted by signal SIGINT. 1 test omitted: test_poplib [51620 refs] - new test/capath directory needs to be added to LIBSUBDIRS
[issue21308] PEP 466: backport ssl changes
Alex Gaynor added the comment: Ned, did you apply the patch from http://bugs.python.org/issue22023 first? That bt looks like what you'd see without it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21308 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21933] Allow the user to change font sizes with the text pane of turtledemo
Serhiy Storchaka added the comment: In 3.5 lists should work as fine as tuples. But in earlier version it would be safer to convert list to tuple. Configure's value is preprocessed in Misc._options. If it is a tuple or a list with only int and str items, it will stringified. But if a list contains non- int or non-str items, it will passed as is, and _tkinter in pre-3.5 will fail because lists are not supported. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21933 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22079] Ensure in PyType_Ready() that base class of static type is static
Serhiy Storchaka added the comment: By static, you mean not a heap type? Yes. Sorry for bad wording. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22079 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22089] collections.MutableSet does not provide update method
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22089 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21308] PEP 466: backport ssl changes
Christian Heimes added the comment: Does https://github.com/alex/cpython/commits/backport-ssl contain all relevant code changes? I like to review the changes during my train ride home. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21308 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22057] The doc say all globals are copied on eval(), but only __builtins__ is copied
Alon Mishne added the comment: Patch for 2.7.8. The patch is just changing globals are to mapping of ‘__builtins__’ is, and subsequent paragraph reformatting. -- keywords: +patch Added file: http://bugs.python.org/file36128/evalglobals2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22057 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22057] The doc say all globals are copied on eval(), but only __builtins__ is copied
Alon Mishne added the comment: Patch for 3.5.x The patch is just changing globals are to mapping of ‘__builtins__’ is, and subsequent paragraph reformatting. Nearly identical to 2.7.8 patch. -- Added file: http://bugs.python.org/file36129/evalglobals3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22057 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22090] Decimal and float formatting treat '%' differently for infinities and nans.
New submission from Mark Dickinson: There's a minor inconsistency between Decimal and float formatting for the `%` format type when handling infinities and nans: from decimal import Decimal format(float('inf'), '.2%') # includes trailing '%' 'inf%' format(Decimal('inf'), '.2%') # no trailing '%' 'Infinity' I think the Decimal result should have a '%' on it. -- messages: 224114 nosy: eric.smith, mark.dickinson, skrah priority: normal severity: normal status: open title: Decimal and float formatting treat '%' differently for infinities and nans. type: behavior versions: Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22090 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22090] Decimal and float formatting treat '%' differently for infinities and nans.
Eric V. Smith added the comment: I agree that Decimal is wrong here. PEP 3101 says the result should include the trailing '%'. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22090 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21308] PEP 466: backport ssl changes
Ned Deily added the comment: did you apply the patch from http://bugs.python.org/issue22023 first? Sorry, missed that. Let's try again with that applied as well: OS X 10.9.4 with Xcode 5.1.1 clang and openssl 1.0.1h from MacPorts - Modules/_ssl.c:2861:52: warning: invalid conversion specifier 'R' (see above) - test_poplib hangs, requiring ctrl-c interrupt (see above) - certificate verify failed in test_algorithms of test_ssl test_ssl: testing with 'OpenSSL 1.0.1h 5 Jun 2014' (1, 0, 1, 8, 15) under Mac ('10.9.4', ('', '', ''), 'x86_64') HAS_SNI = True OP_ALL = 0x83ff OP_NO_TLSv1_1 = 0x1000 [...] == ERROR: test_algorithms (test.test_ssl.NetworkedTests) -- Traceback (most recent call last): File /py/dev/27/root/uxd_macports/lib/python2.7/test/test_ssl.py, line 1475, in test_algorithms s.connect(remote) File /py/dev/27/root/uxd_macports/lib/python2.7/ssl.py, line 810, in connect self._real_connect(addr, False) File /py/dev/27/root/uxd_macports/lib/python2.7/ssl.py, line 801, in _real_connect self.do_handshake() File /py/dev/27/root/uxd_macports/lib/python2.7/ssl.py, line 774, in do_handshake self._sslobj.do_handshake() SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579) -- Ran 99 tests in 13.035s FAILED (errors=1, skipped=4) when built with Apple-supplied openssl 0.9.8y on OS X 10.9.4: - test_algorithms does not fail: test_ssl: testing with 'OpenSSL 0.9.8y 5 Feb 2013' (0, 9, 8, 25, 15) under Mac ('10.9.4', ('', '', ''), 'x86_64') HAS_SNI = True OP_ALL = 0x 7ff [...] test_algorithms (test.test_ssl.NetworkedTests) ... Cipher with ('sha256.tbs-internet.com', 443) is ('RC4-SHA', 'TLSv1/SSLv3', 128) Certificate is: {'OCSP': (u'http://ocsp.tbs-x509.com',), 'caIssuers': (u'http://crt.tbs-internet.com/TBSX509CASGC.crt', u'http://crt.tbs-x509.com/TBSX509CASGC.crt'), 'crlDistributionPoints': (u'http://crl.tbs-internet.com/TBSX509CASGC.crl', u'http://crl.tbs-x509.com/TBSX509CASGC.crl'), [...] - a non-fatal broken pipe exception is seen test_nonblocking_send (test.test_ssl.ThreadedTests) ... server: new connection from ('127.0.0.1', 50583) server: connection cipher is now ('AES256-SHA', 'TLSv1/SSLv3', 256) server: selected protocol is now None Exception in thread Thread-36: Traceback (most recent call last): File /py/dev/27/root/uxd/lib/python2.7/threading.py, line 810, in __bootstrap_inner self.run() File /py/dev/27/root/uxd/lib/python2.7/test/test_ssl.py, line 1636, in run self.write(msg.lower()) File /py/dev/27/root/uxd/lib/python2.7/test/test_ssl.py, line 1581, in write return self.sslconn.write(bytes) File /py/dev/27/root/uxd/lib/python2.7/ssl.py, line 622, in write return self._sslobj.write(data) error: [Errno 32] Broken pipe ok on OS X 10.5.8 ppc with Apple-supplied openssl 0.9.7l: - test_rude_shutdown fails test_ssl: testing with 'OpenSSL 0.9.7l 28 Sep 2006' (0, 9, 7, 12, 15) under Mac ('10.5.8', ('', '', ''), 'PowerPC') HAS_SNI = False OP_ALL = 0x 7ff [...] == ERROR: test_rude_shutdown (test.test_ssl.ThreadedTests) A brutal shutdown of an SSL server should raise an OSError -- Traceback (most recent call last): File /Volumes/cache/py/pyb5g4/27/unix/root/lib/python2.7/test/test_ssl.py, line 2139, in test_rude_shutdown connector() File /Volumes/cache/py/pyb5g4/27/unix/root/lib/python2.7/test/test_ssl.py, line 2130, in connector ssl_sock = ssl.wrap_socket(c) File /Volumes/cache/py/pyb5g4/27/unix/root/lib/python2.7/ssl.py, line 868, in wrap_socket ciphers=ciphers) File /Volumes/cache/py/pyb5g4/27/unix/root/lib/python2.7/ssl.py, line 561, in __init__ self.do_handshake() File /Volumes/cache/py/pyb5g4/27/unix/root/lib/python2.7/ssl.py, line 774, in do_handshake self._sslobj.do_handshake() error: [Errno 54] Connection reset by peer -- Ran 99 tests in 14.843s FAILED (errors=1, skipped=21) - new test/capath directory needs to be added to LIBSUBDIRS in Makefile.pre.in -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21308 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8489] Support RFC 6531 in smptlib
Changes by moijes12 moije...@gmail.com: -- nosy: +moijes12 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8489 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20170] Derby #1: Convert 137 sites to Argument Clinic in Modules/posixmodule.c
Martin v. Löwis added the comment: This patch doesn't apply anymore (to c55300337932); please update it. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20170 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20172] Derby #3: Convert 67 sites to Argument Clinic across 4 files (Windows)
Martin v. Löwis added the comment: 2 hunks of _winapi.c currently fail to apply. Can you please update the patch? -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20172 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22091] __debug__ in compile(optimize=1)
New submission from Armin Rigo: The documentation of the built-in compile() function is not 100% clear but I think it says that giving the optimize=1 argument turns __debug__ to false in the compiled code ( https://docs.python.org/3.5/library/functions.html?highlight=compile#compile ). It doesn't work this way in practice, though: python3.5 exec(compile(print(__debug__), exec, exec, optimize=1)) True I'd recommend to fix either the documentation or the source code. -- messages: 224119 nosy: arigo priority: normal severity: normal status: open title: __debug__ in compile(optimize=1) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22091 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22091] __debug__ in compile(optimize=1)
SilentGhost added the comment: I can reproduce your example on 3.4, but for the comparison: exec(compile(if __debug__: print(42), exec, exec, optimize=1)) exec(compile(if __debug__: print(42), exec, exec, optimize=0)) 42 So, it's not as straightforward as one might imagine. -- components: +Interpreter Core nosy: +SilentGhost versions: +Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22091 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22003] BytesIO copy-on-write
David Wilson added the comment: Hey Antoine, Thanks for the link. I'm having trouble getting reproducible results at present, and running out of ideas as to what might be causing it. Even after totally isolating a CPU for e.g. django_v2 and with frequency scaling disabled, numbers still jump around for the same binary by as much as 3%. I could not detect any significant change between runs of the old and new binary that could not be described as noise, given the isolation issues above. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22003 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20173] Derby #4: Convert 53 sites to Argument Clinic across 5 files
Roundup Robot added the comment: New changeset 5a2ec0a15017 by Martin v. Löwis in branch 'default': Issue #20173: Convert sha1, sha256, sha512 and md5 to ArgumentClinic. http://hg.python.org/cpython/rev/5a2ec0a15017 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20173 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20173] Derby #4: Convert 53 sites to Argument Clinic across 5 files
Martin v. Löwis added the comment: The codecsmodule still remains to be done. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20173 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20173] Derby #4: Convert 53 sites to Argument Clinic across 5 files
Martin v. Löwis added the comment: BTW, Vajrasky: Thanks for the patch! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20173 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22087] _UnixDefaultEventLoopPolicy should either create a new loop or explicilty fail when get_event_loop() is called from a multiprocessing child process
STINNER Victor added the comment: See aslo issue #21998: asyncio: a new self-pipe should be created in the child process after fork. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22087 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22091] __debug__ in compile(optimize=1)
eryksun added the comment: If __debug__ were referenced from the code object's co_consts instead of checking locals, globals and builtins (LOAD_NAME), then optimize=1 would work consistently for a given code object. Currently in 3.4.1: dis.dis(compile(if __debug__: x = 1, , exec, optimize=0)) 1 0 LOAD_CONST 0 (1) 3 STORE_NAME 0 (x) 6 LOAD_CONST 1 (None) 9 RETURN_VALUE dis.dis(compile(if __debug__: x = 1, , exec, optimize=1)) 1 0 LOAD_CONST 0 (None) 3 RETURN_VALUE dis.dis(compile(x = __debug__, , exec, optimize=0)) 1 0 LOAD_NAME0 (__debug__) 3 STORE_NAME 1 (x) 6 LOAD_CONST 0 (None) 9 RETURN_VALUE dis.dis(compile(x = __debug__, , exec, optimize=1)) 1 0 LOAD_NAME0 (__debug__) 3 STORE_NAME 1 (x) 6 LOAD_CONST 0 (None) 9 RETURN_VALUE With the current design, an exec can override builtins.__debug__ in globals or locals: exec(print(__debug__), globals(), {__debug__: spam}) spam -- nosy: +eryksun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22091 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20174] Derby #5: Convert 50 sites to Argument Clinic across 3 files
Martin v. Löwis added the comment: Ryan, 4 hunks of your patch fail to apply now. Can you please update the patch? -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20174 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22018] signal.set_wakeup_fd() should accept sockets on Windows
Changes by STINNER Victor victor.stin...@gmail.com: -- title: Add a new signal.set_wakeup_socket() function - signal.set_wakeup_fd() should accept sockets on Windows ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22018 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1234674] filecmp.cmp's shallow option
Steven Barker added the comment: I think that your test patch misses the confusing/possibly wrong case. That case is when two files have the same contents, but different mtimes. If you attempt a shallow comparison, you'll actually get a deep comparison (reading the whole files) and a result of True rather than the expected (though incorrect) False. Try the test part of my patch (without the behavior change), and you'll see the failure of test_shallow_false_negative. In your first assertion (that filecmp.cmp(self.name, self.name_uppercase) is False), you get the expected result, but for the wrong reason (you get it because the file contents differ, not because they have different mtimes). Now, it might be that the bad case is actually working as we want it to (or at least, the behavior is established enough that we don't want to change it, for risk of breaking running code). If so, we should instead change the documentation (and especially the docstring) to explicit state that even if you request a shallow comparison, you might get a deep comparison instead. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1234674 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19829] _pyio.BufferedReader and _pyio.TextIOWrapper destructor don't emit ResourceWarning if the file is not closed
Akira Li added the comment: Related issue21859 Add Python implementation of FileIO -- nosy: +akira ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19829 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22042] signal.set_wakeup_fd(fd): raise an exception if the fd is in blocking mode
Changes by STINNER Victor victor.stin...@gmail.com: -- title: signal.set_wakeup_fd(fd): set the fd to non-blocking mode - signal.set_wakeup_fd(fd): raise an exception if the fd is in blocking mode ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22042 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22018] signal.set_wakeup_fd() should accept sockets on Windows
STINNER Victor added the comment: New version 9 of my patch: - signal.set_wakeup_fd() now also supports socket handles on Windows (That's all: files are still supported on Windows.) -- Added file: http://bugs.python.org/file36130/wakeup_fd-9.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22018 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22054] Add os.get_blocking() and os.set_blocking() functions
STINNER Victor added the comment: Can someone please review my patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22054 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22042] signal.set_wakeup_fd(fd): raise an exception if the fd is in blocking mode
Changes by STINNER Victor victor.stin...@gmail.com: Removed file: http://bugs.python.org/file36054/os_blocking-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22042 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22042] signal.set_wakeup_fd(fd): raise an exception if the fd is in blocking mode
STINNER Victor added the comment: signal_check_nonblocking.patch: signal.set_wakeup_fd() now raises a ValueError if the file descriptor is in blocking mode. The patch depends on the patch of the issue #22054. I didn't test the patch on Windows, but all calls to signal.set_wakeup_fd() must fail with ValueError since it's not possible to set a file in non-blocking mode. See the issue #22018 which proposes to support sockets for signal.set_wakeup_fd(). -- Added file: http://bugs.python.org/file36131/signal_check_nonblocking.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22042 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22082] Clear interned strings listed in slotdefs
Roundup Robot added the comment: New changeset c2d3feeb61ed by Victor Stinner in branch 'default': Issue #22082: Fix a compiler warning (function is not a prototype) http://hg.python.org/cpython/rev/c2d3feeb61ed -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22082 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20179] Derby #10: Convert 50 sites to Argument Clinic across 4 files
Roundup Robot added the comment: New changeset 4d3d0659b55e by Martin v. Löwis in branch 'default': Issue #20179: Apply Argument Clinic to bytes and bytearray. http://hg.python.org/cpython/rev/4d3d0659b55e -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20179 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20179] Derby #10: Convert 50 sites to Argument Clinic across 4 files
Martin v. Löwis added the comment: Tal: Thanks for the patch. I applied it with updates to the current Argument Clinic. _ssl and _overlapped are still to be done. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20179 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22092] Executing some tests inside Lib/unittest/test individually throws Error
New submission from Vajrasky Kok: For examples: $ ./python Lib/unittest/test/test_runner.py Traceback (most recent call last): File Lib/unittest/test/test_runner.py, line 10, in module from .support import LoggingResult, ResultWithNoStartTestRunStopTestRun SystemError: Parent module '' not loaded, cannot perform relative import $ ./python Lib/unittest/test/test_program.py ..E == ERROR: test_discovery_from_dotted_path (__main__.Test_TestProgram) -- Traceback (most recent call last): File Lib/unittest/test/test_program.py, line 15, in test_discovery_from_dotted_path expectedPath = os.path.abspath(os.path.dirname(unittest.test.__file__)) AttributeError: module 'unittest' has no attribute 'test' -- Ran 19 tests in 0.331s FAILED (errors=1) Here is the patch. -- components: Tests files: fix_test_inside_unittest.patch keywords: patch messages: 224136 nosy: vajrasky priority: normal severity: normal status: open title: Executing some tests inside Lib/unittest/test individually throws Error versions: Python 3.4, Python 3.5 Added file: http://bugs.python.org/file36132/fix_test_inside_unittest.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22092 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22092] Executing some tests inside Lib/unittest/test individually throws Error
Changes by Vajrasky Kok sky@speaklikeaking.com: Removed file: http://bugs.python.org/file36132/fix_test_inside_unittest.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22092 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22092] Executing some tests inside Lib/unittest/test individually throws Error
Changes by Vajrasky Kok sky@speaklikeaking.com: Added file: http://bugs.python.org/file36133/fix_test_inside_unittest.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22092 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files
Martin v. Löwis added the comment: For the unicodeobject changes, see Rietveld. In addition, it produces many cast errors from PyUnicodeObject* to PyObject*. Otherwise, it looks fine - please apply (after these fixes). -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20180 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files
Martin v. Löwis added the comment: The patch does not apply anymore. Can you please update it, and rerun AC on it? -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20182 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22003] BytesIO copy-on-write
Antoine Pitrou added the comment: Even after totally isolating a CPU for e.g. django_v2 and with frequency scaling disabled, numbers still jump around for the same binary by as much as 3%. That's expected. If the difference doesn't go above 5-10%, then you IMO can pretty much consider your patch didn't have any impact on those benchmarks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22003 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20152] Derby #15: Convert 50 sites to Argument Clinic across 9 files
Martin v. Löwis added the comment: multibytecodec_derby.diff looks fine, please apply. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20152 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22087] _UnixDefaultEventLoopPolicy should either create a new loop or explicilty fail when get_event_loop() is called from a multiprocessing child process
Dan O'Reilly added the comment: I've added a unit test that spawns a new forked process via multiprocessing, and verifies that the loop returned by get_event_loop is not the same as the one we have in the parent. -- Added file: http://bugs.python.org/file36134/handle_mp_unix_with_test.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22087 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20152] Derby #15: Convert 50 sites to Argument Clinic across 9 files
Martin v. Löwis added the comment: The cmath patch fails to apply; please update it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20152 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22087] _UnixDefaultEventLoopPolicy should either create a new loop or explicilty fail when get_event_loop() is called from a multiprocessing child process
Dan O'Reilly added the comment: re: #21998, perhaps it's time to revive #16500? Without that, I'm not sure what can be done aside from documenting the need to call loop = asyncio.get_event_loop() in the child immediately after forking. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22087 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21990] saxutils defines an inner class where a normal one would do
Changes by Berker Peksag berker.pek...@gmail.com: -- stage: commit review - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21990 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22087] _UnixDefaultEventLoopPolicy should either create a new loop or explicilty fail when get_event_loop() is called from a multiprocessing child process
STINNER Victor added the comment: A simple pid check in the policy should be enough. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22087 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22087] _UnixDefaultEventLoopPolicy should either create a new loop or explicilty fail when get_event_loop() is called from a multiprocessing child process
Dan O'Reilly added the comment: Hmm, I'm not sure what you mean. What check in the policy would prevent this issue you described in #21998?: import asyncio, os loop = asyncio.get_event_loop() pid = os.fork() if pid: print(parent, loop._csock.fileno(), loop._ssock.fileno()) else: print(child, loop._csock.fileno(), loop._ssock.fileno()) Output: --- parent 6 5 child 6 5 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22087 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22066] subprocess.communicate() does not receive full output from the called process.
juj added the comment: Further testing suggests that this is not a Python issue, but instead an issue in node.js, reported already earlier here https://github.com/joyent/node/issues/1669 Closing this as invalid. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22066 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22066] subprocess.communicate() does not receive full output from the called process.
Changes by juj juj...@gmail.com: -- resolution: - not a bug ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22066 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22066] subprocess.communicate() does not receive full output from the called process.
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: - resolved status: open - closed type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22066 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22076] csv module bad grammar in exception message
Roundup Robot added the comment: New changeset c0c7da9f0069 by Berker Peksag in branch 'default': Issue #22076: Minor grammar fix. http://hg.python.org/cpython/rev/c0c7da9f0069 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22076 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22076] csv module bad grammar in exception message
Berker Peksag added the comment: Thanks for the patch, Martin. -- assignee: - berker.peksag nosy: +berker.peksag resolution: - fixed stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22076 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17942] IDLE Debugger: names, values misaligned
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17942 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15335] IDLE - debugger steps through run.py internals
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15335 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7949] IDLE: problems with dark GTK or KDE color schemes
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 3.5 -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7949 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16023] IDLE freezes on ^5 or ^6 (Un-)Tabify Region with OS X Cocoa Tk 8.5
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16023 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1152248] Add support for reading records with arbitrary separators to the standard IO stack
Andrew Barnert added the comment: Akira, your patch does this: -self._writetranslate = newline != '' -self._writenl = newline or os.linesep +self._writetranslate = newline in (None, '\r', '\r\n') +self._writenl = newline if newline is not None else os.linesep Any reason you made the second change? Why change the value assigned to _writenl for newline='\n' when you don't want to actually change the behavior for those cases? Just so you can double-check at write time that _writetranslate is never set unless _writenl is '\r', '\r\n', or os.linesep? -- versions: +Python 3.4 -Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1152248 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13272] 2to3 fix_renames doesn't rename string.lowercase/uppercase/letters
Changes by Anthony Kong anthony.hw.k...@gmail.com: -- nosy: +Anthony.Kong ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13272 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21933] Allow the user to change font sizes with the text pane of turtledemo
Ned Deily added the comment: Several review comments on tdemo-font-34-t2.diff: - Terry's question: Ned, with this binding, (ignored on Mac?) widget.bind_all('Control-MouseWheel', self._updateFont) plain wheel moves scroll as desired while Control-wheel changes font sizes. This is standard behavior on Windows. That seems to work on OS X as well (with both the Cocoa and Carbon Tks), although IMO having a control-mousescroll affect the font size is not something an OS X user would expect; I know of no other GUI application on OS X with that behavior. But it doesn't hurt. - That said, the sign of the mousescroll is reversed on OS X (as Kevin Walzer's comment implies here (http://wiki.tcl.tk/3893): note the minus sign). - AFAICT, = is not a legal Tk keysym (http://www.tcl.tk/man/tcl8.6/TkCmd/keysyms.htm), some Tk variants either ignore it, others (e.g. OS X X11) raise an exception. Should be equal. - If the user repeatedly decrements the font size (either with the control(or command) - or with control-mousescroll, txtfont[1] can go negative but it appears Tk effectively uses its absolute value. So the font decreases to near invisibility then starts to increase again. Suggest adding a minimum font size (perhaps 8) and not allow txtfont[1] to decrease below it. Attached patch tdemo-font-34-t3.patch addresses the above issues. Someone should test this all with a Linux X11 setup with a mouse wheel and/or trackpad. The OS X X11 Tk variant does not seem to support the mouse wheel events and there are hints in the above Tk mousewheel link that no X11 Tk's do without some hackery. The documentation for turtledemo should be clear about which platforms are supported. -- Added file: http://bugs.python.org/file36135/tdemo-font-34-t3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21933 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22093] Compiling python on OS X gives warning about compact unwind
New submission from Vajrasky Kok: OS X version 10.9.4. $ gcc --version Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) Target: x86_64-apple-darwin13.3.0 Thread model: posix This is the warning: ... gcc -bundle -undefined dynamic_lookup build/temp.macosx-10.9-x86_64-3.5-pydebug/Users/sky/Code/python/cpython/Modules/_ctypes/_ctypes.o build/temp.macosx-10.9-x86_64-3.5-pydebug/Users/sky/Code/python/cpython/Modules/_ctypes/callbacks.o build/temp.macosx-10.9-x86_64-3.5-pydebug/Users/sky/Code/python/cpython/Modules/_ctypes/callproc.o build/temp.macosx-10.9-x86_64-3.5-pydebug/Users/sky/Code/python/cpython/Modules/_ctypes/stgdict.o build/temp.macosx-10.9-x86_64-3.5-pydebug/Users/sky/Code/python/cpython/Modules/_ctypes/cfield.o build/temp.macosx-10.9-x86_64-3.5-pydebug/Users/sky/Code/python/cpython/Modules/_ctypes/malloc_closure.o build/temp.macosx-10.9-x86_64-3.5-pydebug/Users/sky/Code/python/cpython/Modules/_ctypes/darwin/dlfcn_simple.o build/temp.macosx-10.9-x86_64-3.5-pydebug/Users/sky/Code/python/cpython/Modules/_ctypes/libffi_osx/ffi.o build/temp.macosx-10.9-x86_64-3.5-pydebug/Users/sky/Code/python/cpython/Modules/_ctypes/libffi_osx/x86/darwin64.o build/temp.macosx-10.9-x86_64-3.5- pydebug/Users/sky/Code/python/cpython/Modules/_ctypes/libffi_osx/x86/x86-darwin.o build/temp.macosx-10.9-x86_64-3.5-pydebug/Users/sky/Code/python/cpython/Modules/_ctypes/libffi_osx/x86/x86-ffi_darwin.o build/temp.macosx-10.9-x86_64-3.5-pydebug/Users/sky/Code/python/cpython/Modules/_ctypes/libffi_osx/x86/x86-ffi64.o build/temp.macosx-10.9-x86_64-3.5-pydebug/Users/sky/Code/python/cpython/Modules/_ctypes/libffi_osx/powerpc/ppc-darwin.o build/temp.macosx-10.9-x86_64-3.5-pydebug/Users/sky/Code/python/cpython/Modules/_ctypes/libffi_osx/powerpc/ppc-darwin_closure.o build/temp.macosx-10.9-x86_64-3.5-pydebug/Users/sky/Code/python/cpython/Modules/_ctypes/libffi_osx/powerpc/ppc-ffi_darwin.o build/temp.macosx-10.9-x86_64-3.5-pydebug/Users/sky/Code/python/cpython/Modules/_ctypes/libffi_osx/powerpc/ppc64-darwin_closure.o -L/usr/local/lib -o build/lib.macosx-10.9-x86_64-3.5-pydebug/_ctypes.so ld: warning: could not create compact unwind for _ffi_call_unix64: does not use RBP or RSP based frame Python build finished successfully! -- messages: 224151 nosy: vajrasky priority: normal severity: normal status: open title: Compiling python on OS X gives warning about compact unwind versions: Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22093 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22092] Executing some tests inside Lib/unittest/test individually throws Error
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +ezio.melotti, michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22092 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com