[issue24412] setUpClass equivalent for addCleanup
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24412 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24385] libpython27.a in python-2.7.10 i386 (windows msi release) contains 64-bit objects
Paul Moore added the comment: I'm still somewhat confused as to why we're looking at this in the context of manually building an extension. It's *certainly* true that anyone attempting to build a Python extension by hand (as per Matthew Barnett's instructions) should be able and willing to build the import libraries by hand. On the other hand, I've no *objection* to shipping the .a files (and I agree 100% that shipping a 64-bit library in a 32-bit installer is a bug). But if we do so, then we should be shipping whatever makes setup.py build_ext --compiler=mingw (i.e. distutils) happy. Distutils is the only way of building extensions that I think we should support (whether via shipping .a files, or in terms of how we handle any other bug reports). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24385 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24412] setUpClass equivalent for addCleanup
New submission from R. David Murray: Since tearDownClass isn't run if setUpClass fails, there is a need for the class level equivalent of addCleanup. addClassCleanup? -- components: Library (Lib) messages: 245030 nosy: ezio.melotti, michael.foord, r.david.murray, rbcollins priority: normal severity: normal stage: needs patch status: open title: setUpClass equivalent for addCleanup type: enhancement versions: Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24412 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24299] 2.7.10 test__locale.py change breaks on Solaris
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24299 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24397] Test asynchat makes wrong assumptions
Étienne Buira added the comment: That would just race the other way around. However, I missed the fact that the check of client's contents had no chance to catch an issue, as the main thread were not entering asyncore.loop after allowing the server to send. Updated patch (against 3.3) follows (dunno why, file were not attachable). diff -r 035aa81c2ba8 Lib/test/test_asynchat.py --- a/Lib/test/test_asynchat.py Tue Jun 02 18:53:46 2015 -0400 +++ b/Lib/test/test_asynchat.py Mon Jun 08 20:14:27 2015 +0200 @@ -30,6 +30,7 @@ # This will be set if the client wants us to wait before echoing data # back. self.start_resend_event = None +self.received_len = 0 def run(self): self.sock.listen(1) @@ -41,6 +42,7 @@ data = conn.recv(1) if not data: break +self.received_len += len(data) self.buffer = self.buffer + data # remove the SERVER_QUIT message @@ -226,13 +228,14 @@ # where the server echoes all of its data before we can check that it # got any down below. s.start_resend_event.set() +asyncore.loop(use_poll=self.usepoll, count=300, timeout=.01) s.join() -self.assertEqual(c.contents, []) +self.assertEqual(len(c.contents), 0) # the server might have been able to send a byte or two back, but this # at least checks that it received something and didn't just fail # (which could still result in the client not having received anything) -self.assertGreater(len(s.buffer), 0) +self.assertGreater(s.received_len, 0) class TestAsynchat_WithPoll(TestAsynchat): -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24397 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24411] Drop redundant lock in queue.Queue methods qsize(), empty() and full()
Changes by Yury Selivanov yseliva...@gmail.com: -- nosy: +yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24411 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24411] Drop redundant lock in queue.Queue methods qsize(), empty() and full()
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24411 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24411] Drop redundant lock in queue.Queue methods qsize(), empty() and full()
New submission from Andrew Svetlov: Now those methods use lock for querying queue size, like def qsize(self): with self.mutex: return self._qsize() The lock is not necessary because thread context switch may be done *after* returning from mutex protected code but *before* getting result by calling side. All three methods (qsize(), empty() and full()) gives *approximated value*, so getting rid of lock doesn't make it less stringent. -- components: Library (Lib) messages: 245029 nosy: asvetlov priority: low severity: normal status: open title: Drop redundant lock in queue.Queue methods qsize(), empty() and full() versions: Python 3.5, Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24411 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24397] Test asynchat makes wrong assumptions
Changes by Étienne Buira etienne.bu...@free.fr: Removed file: http://bugs.python.org/file39643/test_asynchat_check_received_len_if_received_len_matters.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24397 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13224] Change str(x) to return only the qualname for some types
Serhiy Storchaka added the comment: Other discussion: http://comments.gmane.org/gmane.comp.python.ideas/32192 . -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13224 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24120] pathlib.(r)glob stops on PermissionDenied exception
Serhiy Storchaka added the comment: I'm not sure that Path.(r)glob() (and perhaps glob.glob()) should unconditionally ignore errors. Python has lover level than shell, and even bash has an option that controls this behavior. failglob If set, patterns which fail to match filenames during pathname expansion result in an expansion error. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24120 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24120] pathlib.(r)glob stops on PermissionDenied exception
Ethan Furman added the comment: Failing to find any matches with a pattern is an entirely different class of error than finding matches but hitting permission problems or broken links or suddenly deleted files or ... If glob doesn't already have a 'failglob' option we could add that, but in a different issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24120 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24414] MACOSX_DEPLOYMENT_TARGET set incorrectly by configure
Changes by Ned Deily n...@acm.org: -- assignee: - ned.deily components: +Macintosh nosy: +ned.deily, ronaldoussoren type: compile error - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24414 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24413] Inconsistent behavior between set and dict_keys/dict_items: for non-iterable object x, set().__or__(x) raises NotImplementedError, but {}.keys().__or__(x) raises TypeError
Changes by Richard Futrell futr...@mit.edu: -- nosy: canjo priority: normal severity: normal status: open title: Inconsistent behavior between set and dict_keys/dict_items: for non-iterable object x, set().__or__(x) raises NotImplementedError, but {}.keys().__or__(x) raises TypeError type: behavior versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24413 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23891] Tutorial doesn't mention either pip or virtualenv
Roundup Robot added the comment: New changeset 15ee0e7078e3 by Andrew Kuchling in branch '3.4': #23891: add a section to the Tutorial describing virtual environments and pip https://hg.python.org/cpython/rev/15ee0e7078e3 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23891 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24324] Remove -Wunreachable-code flag
Skip Montanaro added the comment: I guess this is an autoconf thing. @BASECFLAGS@ in Makefile.pre.in seems to expand to -Wsign-compare -Wunreachable-code in Makefile.pre. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24324 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23891] Tutorial doesn't mention either pip or virtualenv
Tal Einat added the comment: There is a dangling If you at the end of the 3rd paragraph under Creating Virtual Environments. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23891 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24413] Inconsistent behavior between set and dict_keys/dict_items: for non-iterable object x, set().__or__(x) raises NotImplementedError, but {}.keys().__or__(x) raises TypeError
Changes by Ned Deily n...@acm.org: -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24413 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23891] Tutorial doesn't mention either pip or virtualenv
Changes by A.M. Kuchling a...@amk.ca: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23891 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24414] MACOSX_DEPLOYMENT_TARGET set incorrectly by configure
New submission from debohman: MACOSX_DEPLOYMENT_TARGET is not set correctly when building the 2.7.10 sources. This causes readline to not be included in the build. This appears to already be fixed in 3.4.3. I picked up the change to configure.ac from 3.4.3 and it resolved the problem. I am building on 10.9.5. In my case MACOSX_DEPLOYMENT_TARGET was chosen as 10.4. The configuration options I am using are: ./configure --enable-shared Attaching diffs. -- components: Build files: configure.ac_diffs.txt messages: 245038 nosy: debohman priority: normal severity: normal status: open title: MACOSX_DEPLOYMENT_TARGET set incorrectly by configure type: compile error versions: Python 2.7 Added file: http://bugs.python.org/file39661/configure.ac_diffs.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24414 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24410] set.__eq__ returns False when it should return NotImplemented
Steve Zelaznik added the comment: On second thought, it looks like somebody may have caught the problem at or before Python 2.7.9. My PC at work has 2.7.6 which is where I spotted the problem. My mac at home has 2.7.9 where it worked fine. Steve Zelaznik 410.375.8414 Sent from either an iPhone or an Android On Jun 8, 2015, at 1:07 PM, R. David Murray rep...@bugs.python.org wrote: R. David Murray added the comment: See issue 21408 for the fix, which was indeed not applied to 2.7. Now we get to decide if it should be :) -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24410 ___ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24410 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23891] Tutorial doesn't mention either pip or virtualenv
Roundup Robot added the comment: New changeset a18615eb5aec by Andrew Kuchling in branch '3.4': #23891: describe a few more modules in the tutorial https://hg.python.org/cpython/rev/a18615eb5aec New changeset cffb6ac2bbe4 by Andrew Kuchling in branch '3.4': #23891: rework discussion of python-list a bit https://hg.python.org/cpython/rev/cffb6ac2bbe4 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23891 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23891] Tutorial doesn't mention either pip or virtualenv
Roundup Robot added the comment: New changeset feae7fa3bb70 by Andrew Kuchling in branch '3.4': #23891: remove extra words https://hg.python.org/cpython/rev/feae7fa3bb70 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23891 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24410] set.__eq__ returns False when it should return NotImplemented
R. David Murray added the comment: See issue 21408 for the fix, which was indeed not applied to 2.7. Now we get to decide if it should be :) -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24410 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24195] Add `Executor.filter` to concurrent.futures
Ethan Furman added the comment: The recipe creates a list before it ever starts processing, while Executor.filter() starts processing with the first item. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24195 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24385] libpython27.a in python-2.7.10 i386 (windows msi release) contains 64-bit objects
Benjamin Gilbert added the comment: Zachary: gendef is an auxiliary tool; I'm not sure a basic installation of MinGW-w64 will have it. However, I've checked Cygwin and Fedora (my two points of reference) and a gendef package is available in both. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24385 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24385] libpython27.a in python-2.7.10 i386 (windows msi release) contains 64-bit objects
Matthew Barnett added the comment: @steve.dower: Yes. For Python 35, it appears that it'll link to libpython??.a or python??.dll, whichever it finds in the given folder, so it doesn't actually need libpython??.a anymore. Which is nice. :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24385 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24195] Add `Executor.filter` to concurrent.futures
Ram Rachum added the comment: Right, so it might be garbage-collecting the items before the futures are done being created, so the whole list wouldn't need to be saved in memory. I understand now. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24195 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24410] set.__eq__ returns False when it should return NotImplemented
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - out of date stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24410 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24411] Drop redundant lock in queue.Queue methods qsize(), empty() and full()
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24411 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24408] tkinter.font.Font.measure() broken in 3.5
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24408 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24411] Drop redundant lock in queue.Queue methods qsize(), empty() and full()
Raymond Hettinger added the comment: It may seem pointless to hold the lock, but it is guaranteed behavior (and has been so for a very, very long time). ''' # Override these methods to implement other queue organizations # (e.g. stack or priority queue). # These will only be called with appropriate locks held # Initialize the queue representation def _init(self, maxsize): self.queue = deque() def _qsize(self): return len(self.queue) # Put a new item in the queue def _put(self, item): self.queue.append(item) # Get an item from the queue def _get(self): return self.queue.popleft() ''' -- versions: -Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24411 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24408] tkinter.font.Font.measure() broken in 3.5
Roundup Robot added the comment: New changeset 7e2a7f3fecdf by Serhiy Storchaka in branch '3.4': Issue #24408: Added more tkinter.Font tests. https://hg.python.org/cpython/rev/7e2a7f3fecdf New changeset 24bb564469b4 by Serhiy Storchaka in branch '3.5': Issue #24408: Added more tkinter.Font tests. https://hg.python.org/cpython/rev/24bb564469b4 New changeset 47f321ec69dc by Serhiy Storchaka in branch 'default': Issue #24408: Added more tkinter.Font tests. https://hg.python.org/cpython/rev/47f321ec69dc New changeset ae1bc5b65e65 by Serhiy Storchaka in branch '2.7': Issue #24408: Added more tkinter.Font tests. https://hg.python.org/cpython/rev/ae1bc5b65e65 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24408 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24408] tkinter.font.Font.measure() broken in 3.5
Martin Panter added the comment: Thanks for the prompt fix! The patch with the tests looks good. I left a query about the existing code. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24408 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24413] Inconsistent behavior between set and dict_keys/dict_items: for non-iterable object x, set().__or__(x) raises NotImplementedError, but {}.keys().__or__(x) raises TypeError
New submission from Raymond Hettinger: The dictviews_or() function in Objects/dictobject.c is converting the keys to a set and calling the set.update() method with the given argument. The set.update() method doesn't return NotImplemented because it has no reflected operation. It looks like dictviews_or() should instead call set.__or__() to allow it a chance to return NotImplemented. The other dictview set operations are similarly afflicted. -- priority: normal - low versions: +Python 2.7, Python 3.5, Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24413 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24384] difflib.SequenceMatcher faster quick_ratio with lower bound specification
floyd added the comment: Agree with the separate function (especially as the return value would change from float to bool). In my experience this is one of the most often occuring use cases for difflib in practice. Another reason is that it is not obvious that the user can optimize it with the appended version. Some more opinions would be nice. If this suggestion is rejected we could include a performance warning for this use case in the docs and/or I'll write an online code recipe which can be linked to. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24384 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24384] difflib.SequenceMatcher faster quick_ratio with lower bound specification
Tal Einat added the comment: You should post this on the python-ideas mailing list if you think this should be added to the stdlib. Make sure to reference this issue if you do so. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24384 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14373] C implementation of functools.lru_cache
Roundup Robot added the comment: New changeset 19dbee688a30 by Serhiy Storchaka in branch '3.5': Issue #14373: Fixed threaded test for lru_cache(). Added new threaded test. https://hg.python.org/cpython/rev/19dbee688a30 New changeset da331f50aad4 by Serhiy Storchaka in branch 'default': Issue #14373: Fixed threaded test for lru_cache(). Added new threaded test. https://hg.python.org/cpython/rev/da331f50aad4 New changeset eff50d543c79 by Serhiy Storchaka in branch '3.5': Issue #14373: C implementation of functools.lru_cache() now can be used with https://hg.python.org/cpython/rev/eff50d543c79 New changeset f4b785d14792 by Serhiy Storchaka in branch 'default': Issue #14373: C implementation of functools.lru_cache() now can be used with https://hg.python.org/cpython/rev/f4b785d14792 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14373 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24405] Missing code markup in Expressions documentation
New submission from Gareth Rees: The Expressions documentation contains the text: * Sets and frozensets define comparison operators to mean subset and superset tests. Those relations do not define total orderings (the two sets ``{1,2}`` and {2,3} are not equal, nor subsets of one another, nor supersets of one another). Here {2,3} should be marked up as code (like {1,2}) but is not. -- assignee: docs@python components: Documentation files: markup.patch keywords: patch messages: 244996 nosy: Gareth.Rees, docs@python priority: normal severity: normal status: open title: Missing code markup in Expressions documentation type: enhancement Added file: http://bugs.python.org/file39657/markup.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24405 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24390] Python 3.4.3 64 bits is not high dpi aware
Ivan Bykov added the comment: https://msdn.microsoft.com/en-us/library/windows/desktop/dn469266(v=vs.85).aspx#declaring_dpi_awareness assembly xmlns=urn:schemas-microsoft-com:asm.v1 manifestVersion=1.0 xmlns:asmv3=urn:schemas-microsoft-com:asm.v3 asmv3:application asmv3:windowsSettings xmlns=http://schemas.microsoft.com/SMI/2005/WindowsSettings; dpiAwaretrue/dpiAware /asmv3:windowsSettings /asmv3:application /assembly -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24390 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24402] input() uses sys.__stdout__ instead of sys.stdout for prompt
Changes by Antoine Pitrou pit...@free.fr: -- stage: - needs patch versions: +Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24402 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue219960] Problems with Tcl/Tk and non-ASCII text entry
Changes by irdb electro@gmail.com: -- nosy: +irdb ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue219960 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24195] Add `Executor.filter` to concurrent.futures
Brian Quinlan added the comment: Actually it immediately converts the iterable into a list. Recall: def filter(self, fn, iterable, timeout=None): l = list(iterable) # iterable = list return (item for (item, keep) in zip(l, self.map(fn, l, timeout)) if keep) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24195 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24406] Built-in Types documentation doesn't explain how dictionaries are compared for equality
Changes by Gareth Rees g...@garethrees.org: -- title: Bulit-in Types documentation doesn't explain how dictionaries are compared for equality - Built-in Types documentation doesn't explain how dictionaries are compared for equality ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24406 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24252] IDLE removes elements from tracebacks.
ppperry added the comment: Your proposed patch does not work in its current form on my IDLE, but it does if I change tr[0][:-6] to tr[0][-6:] in the pdb checking code. Additionally, my proposed cleanup function did distinguish the difference between the unix and windows directory seperators by using os.path.dirname. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24252 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24299] 2.7.10 test__locale.py change breaks on Solaris
John Beck added the comment: (Apologies for not responding on May 27 when you posted the patch; I failed to notice the Added file: line in the e-mail notification.) Yes! The patch you posted fixes the issue. Thank you! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24299 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24407] Use after free in PyDict_merge
Changes by Serhiy Storchaka storch...@gmail.com: -- components: +Interpreter Core nosy: +rhettinger, serhiy.storchaka stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24407 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24407] Use after free in PyDict_merge
New submission from paul: # PyDict_Merge: # # 1 for (i = 0, n = DK_SIZE(other-ma_keys); i n; i++) { # ... # 3 entry = other-ma_keys-dk_entries[i]; # ... # 2 if (insertdict(mp, entry-me_key, #entry-me_hash, #value) != 0) # return -1; # ... # } # # 1. n is set once # 2. it's possible to run a custom __eq__ method from inside the insertdict. #__eq__ clears the other dict. n variables is now out of date # 3. out of bounds read # # CRASH: # -- # # * thread #1: tid = 27715, 0x080d1c1d python`insertdict(mp=0xb71d66f4, key=0x61682044, hash=543582496, value=0xb71d6664) + 132 at dictobject.c:819, name = 'python', stop reason = invalid address (fault address: 0x61682050) # frame #0: 0x080d1c1d python`insertdict(mp=0xb71d66f4, key=0x61682044, hash=543582496, value=0xb71d6664) + 132 at dictobject.c:819 #816 if (ep == NULL) { #817 return -1; #818 } # - 819 assert(PyUnicode_CheckExact(key) || mp-ma_keys-dk_lookup == lookdict); #820 Py_INCREF(value); #821 MAINTAIN_TRACKING(mp, key, value); #822 old_value = *value_addr; # -- files: dict_merge.py messages: 245001 nosy: pkt priority: normal severity: normal status: open title: Use after free in PyDict_merge type: crash versions: Python 3.5 Added file: http://bugs.python.org/file39659/dict_merge.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24407 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24408] tkinter.font.Font.measure() broken in 3.5
New submission from Martin Panter: import tkinter, tkinter.font tk = tkinter.Tk() tkinter.font.nametofont(TkHeadingFont).measure(string) Traceback (most recent call last): File stdin, line 1, in module File /home/proj/python/cpython/Lib/tkinter/font.py, line 154, in measure return self._root.tk.getint(self._call(font, measure, self.name, *args)) AttributeError: 'Font' object has no attribute '_root' This appears to be broken by revision cb80dd82d3da, Issue 23880, which included this change at the end of the measure() method: -return int(self._call(font, measure, self.name, *args)) +return self._root.tk.getint(self._call(font, measure, self.name, *args)) The Font class does not have a “_root” attribute. -- components: Tkinter messages: 245003 nosy: serhiy.storchaka, vadmium priority: normal severity: normal stage: needs patch status: open title: tkinter.font.Font.measure() broken in 3.5 type: behavior versions: Python 3.5, Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24408 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24252] IDLE removes elements from tracebacks.
ppperry added the comment: I mean if someone starts a new copy of idle from within the IDLE python shell itself by The only situation that this function would behave wrongly is when someone launches IDLE from the shell (Why would they do that?). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24252 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24408] tkinter.font.Font.measure() broken in 3.5
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24408 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24408] tkinter.font.Font.measure() broken in 3.5
Serhiy Storchaka added the comment: Thank you for your report Martin. Unfortunately tests for tkinter.Font are almost not existing. Here is a patch that adds more tests (it should be applied to all versions). -- keywords: +patch stage: needs patch - patch review Added file: http://bugs.python.org/file39660/tkinter_test_font.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24408 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24409] PythonPROD abrt
New submission from nivin: There is a cronjob running in every 3 minutes.For One or two days this works properly. After that Mysql service get crashed.Bulk data is inserted into database using the service . Following errors found in /var/log/messages (OS : RHEL 6) Jun 6 13:27:02 PythonPROD abrt: detected unhandled Python exception in '/var/www/html/CrossCDR/Cronjobs/cdrcollector/CdrCollector.py' Jun 6 13:27:02 PythonPROD abrtd: New client connected Jun 6 13:27:02 PythonPROD abrtd: Directory 'pyhook-2015-06-06-13:27:02-1796' creation detected Jun 6 13:27:02 PythonPROD abrt-server[1800]: Saved Python crash dump of pid 1796 to /var/spool/abrt/pyhook-2015-06-06-13:27:02-1796 Jun 6 13:27:07 PythonPROD kernel: Bridge firewalling registered Jun 6 13:28:07 PythonPROD abrtd: Sending an email... Jun 6 13:28:07 PythonPROD abrtd: Email was sent to: root@localhost Jun 6 13:28:07 PythonPROD abrtd: Duplicate: UUID Jun 6 13:28:07 PythonPROD abrtd: DUP_OF_DIR: /var/spool/abrt/pyhook-2015-06-04-00:48:02-1797 Jun 6 13:28:07 PythonPROD abrtd: Deleting problem directory pyhook-2015-06-06-13:27:02-1796 (dup of pyhook-2015-06-04-00:48:02-1797) Jun 6 13:28:07 PythonPROD abrtd: No actions are found for event 'notify-dup' -- messages: 245006 nosy: nivin priority: normal severity: normal status: open title: PythonPROD abrt type: crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24409 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24400] Awaitable ABC incompatible with functools.singledispatch
Yury Selivanov added the comment: I think that the only proper way to solve this is to make coroutines a separate type. I've actually prototyped that before: https://github.com/1st1/cpython/commit/a3f1059590f496bf77b33edb023c8cdbc1d30798 -- assignee: - yselivanov components: +Interpreter Core nosy: +ncoghlan versions: +Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24400 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24408] tkinter.font.Font.measure() broken in 3.5
Roundup Robot added the comment: New changeset fb05c1355a90 by Serhiy Storchaka in branch '3.5': Issue #24408: Fixed AttributeError in measure() and metrics() methods of https://hg.python.org/cpython/rev/fb05c1355a90 New changeset 0dd70c2c44b4 by Serhiy Storchaka in branch 'default': Issue #24408: Fixed AttributeError in measure() and metrics() methods of https://hg.python.org/cpython/rev/0dd70c2c44b4 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24408 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24299] 2.7.10 test__locale.py change breaks on Solaris
Roundup Robot added the comment: New changeset 00f8804f559c by Serhiy Storchaka in branch '2.7': Issue #24299: Fixed test__locale on Solaris. https://hg.python.org/cpython/rev/00f8804f559c New changeset da642b5aaf79 by Serhiy Storchaka in branch '3.4': Issue #24299: Fixed test__locale on Solaris. https://hg.python.org/cpython/rev/da642b5aaf79 New changeset 0a1f1988fece by Serhiy Storchaka in branch '3.5': Issue #24299: Fixed test__locale on Solaris. https://hg.python.org/cpython/rev/0a1f1988fece New changeset 30d8b5b62245 by Serhiy Storchaka in branch 'default': Issue #24299: Fixed test__locale on Solaris. https://hg.python.org/cpython/rev/30d8b5b62245 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24299 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24410] set.__eq__ returns False when it should return NotImplemented
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +rhettinger, serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24410 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24410] set.__eq__ returns False when it should return NotImplemented
New submission from Steve Zelaznik: [in] d = {'x':3,'y':4,'z':5} [in] set(d.items()) == d.viewitems() [out] False [in] d.viewitems() == set(d.items()) [out] True [in] set(d.items()).__eq__(d.viewitems()) [out] False The last line should return NotImplemented rather than False. This problem seems to have been addressed in Python3. -- components: Build messages: 245009 nosy: zelaznik priority: normal severity: normal status: open title: set.__eq__ returns False when it should return NotImplemented type: behavior versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24410 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com