[issue21552] String length overflow in Tkinter

2014-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a little simpler patch. Instead of checking string length in custom converter, it is checked after invocation of PyArg_ParseTuple. Also added bigmem tests. -- Added file: http://bugs.python.org/file35345/tkinter_strlen_overflow_alt.patch

[issue21343] os.path.relpath returns inconsistent types

2014-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Why you should check the type? There is no difference between '.' and u'.'. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21343 ___

[issue21331] Reversing an encoding with unicode-escape returns a different result

2014-05-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21331 ___ ___

[issue20197] Support WebP image format detection in imghdr module

2014-05-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20197 ___ ___

[issue8743] set() operators don't work with collections.Set instances

2014-05-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: Attaching a draft patch with tests. -- Added file: http://bugs.python.org/file35346/fix_set_abc.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8743

[issue20197] Support WebP image format detection in imghdr module

2014-05-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4fd17e28d4bf by Serhiy Storchaka in branch 'default': Issue #20197: Added support for the WebP image type in the imghdr module. http://hg.python.org/cpython/rev/4fd17e28d4bf -- nosy: +python-dev ___

[issue20197] Support WebP image format detection in imghdr module

2014-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution Fabrice and Claudiu. -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20197

[issue21574] Port image types detections from PIL to the imghdr module

2014-05-25 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: It would be good to add support of all image types which are supported in PIL to the imghdr module. -- components: Library (Lib) keywords: easy messages: 219078 nosy: Claudiu.Popa, effbot, serhiy.storchaka priority: normal severity: normal stage:

[issue21574] Port image types detections from PIL to the imghdr module

2014-05-25 Thread Claudiu.Popa
Claudiu.Popa added the comment: Sounds good, I'll create a patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21574 ___ ___ Python-bugs-list

[issue19925] Add unit test for spwd module

2014-05-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka nosy: +serhiy.storchaka type: - enhancement versions: +Python 2.7, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19925

[issue18918] help('FILES') finds no documentation

2014-05-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3fa76139c908 by Serhiy Storchaka in branch '3.4': Issue #18918: Removed non-existing topic from a list of available topics. http://hg.python.org/cpython/rev/3fa76139c908 New changeset e5bac5b2f38d by Serhiy Storchaka in branch 'default': Issue

[issue18918] help('FILES') finds no documentation

2014-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Fixed in Python 3. Thanks Claudiu. But it is not clear why this topic is absent in 2.7. -- nosy: +serhiy.storchaka versions: -Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org

[issue19925] Add unit test for spwd module

2014-05-25 Thread Vajrasky Kok
Vajrasky Kok added the comment: Thanks, Serhiy, for the review! Here is the updated patch. -- Added file: http://bugs.python.org/file35347/unittest_for_spwd_v3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19925

[issue19385] dbm.dumb should be consistent when the database is closed

2014-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is no need to speed up methods which do IO (__getitem__, __setitem__, __delitem__). However method which works only with an index (keys, iterkeys, __contains__, __len__) can be optimized. In the __contains__ method an exception can be raised not only

[issue20766] reference leaks in pdb

2014-05-25 Thread Xavier de Gaye
Xavier de Gaye added the comment: An improved patch with a test case. -- Added file: http://bugs.python.org/file35349/refleak_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20766 ___

[issue21575] list.sort() should show arguments in tutorial

2014-05-25 Thread Jan-Philip Gehrcke
New submission from Jan-Philip Gehrcke: Currently, the tutorial for the list sort method does not show allowed arguments: list.sort() Sort the items of the list in place. (see e.g. https://docs.python.org/3.4/tutorial/datastructures.html) Is there a reason why we do not show the

[issue21565] multiprocessing: use contex-manager protocol for synchronization primitives

2014-05-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9724eb19f6d0 by Charles-François Natali in branch 'default': Issue #21565: multiprocessing: use contex-manager protocol for synchronization http://hg.python.org/cpython/rev/9724eb19f6d0 -- nosy: +python-dev

[issue19925] Add unit test for spwd module

2014-05-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset c35274fe5b35 by Serhiy Storchaka in branch '2.7': Issue #19925: Added tests for the spwd module. Original patch by Vajrasky Kok. http://hg.python.org/cpython/rev/c35274fe5b35 New changeset 9bdbe0b08dff by Serhiy Storchaka in branch '3.4': Issue

[issue21561] help() on enum34 enumeration class creates only a dummy documentation

2014-05-25 Thread Andy Maier
Andy Maier added the comment: The pydoc.py of Python 3.4 that supposedly has been fixed has a lot of changes compared to 2.7, but the place where I applied my fix in TextDoc.docclass() is unchanged. So it seems that my fix should be regarded only to be a quick fix, and the real fix would be

[issue19925] Add unit test for spwd module

2014-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Committed with some changes. geteuid() is used instead getuid(), and checked that os.geteuid exists (see test_shutil). Checked deprecated attributes sp_nam and sp_pwd. Added tests for the calling getspnam() with wrong number of arguments and with bytes (on

[issue21576] Overwritten (custom) uuid inside dictionary

2014-05-25 Thread beta
New submission from beta: Results: Block: 2d = {'Blocks': 3, 'Name': 'Fregatten', 'uuid': 0} same as {'Blocks': 3, 'Name': 'Fregatten', 'uuid': 0} Block: 2e = {'Blocks': 3, 'Name': 'Fregatten', 'uuid': 0} same as {'Blocks': 3, 'Name': 'Fregatten', 'uuid': 0} Block: 2f = {'Blocks': 3, 'Name':

[issue8743] set() operators don't work with collections.Set instances

2014-05-25 Thread Nick Coghlan
Nick Coghlan added the comment: Ah, interesting - I completely missed the comparison operators in my patch and tests. Your version looks good to me, though. That looks like a patch against 2.7 - do you want to add 2.7 3.4 back to the list of target versions for the fix? --

[issue17679] sysconfig generation uses some env variables multiple times

2014-05-25 Thread Florent Rougon
Changes by Florent Rougon frou...@users.sourceforge.net: -- nosy: +frougon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17679 ___ ___

[issue21343] os.path.relpath returns inconsistent types

2014-05-25 Thread Matt Bachmann
Matt Bachmann added the comment: There is a difference! '.' is a bytes string and u'.' is a unicode one! I found this problem because I work on a project that supports both python2 and python3. In python3 I pass in unicode I get back unicode. In python2.7 I pass in unicode and I get back a

[issue21565] multiprocessing: use contex-manager protocol for synchronization primitives

2014-05-25 Thread Charles-François Natali
Charles-François Natali added the comment: Committed (I've added a versionchanged as suggested by Antoine), closing. -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org

[issue21343] os.path.relpath returns inconsistent types

2014-05-25 Thread Matt Bachmann
Matt Bachmann added the comment: Perhaps this is the bug I should be filing but here is why this comes up for me. I get different output from this function if I pass in two types. On my machine: os.path.relpath(u'test_srcl.txt', u'.') returns u'test_src.txt' os.path.relpath(u'test_srcl.txt',

[issue18381] unittest warnings counter

2014-05-25 Thread Berker Peksag
Berker Peksag added the comment: I get a test failure when I run the test suite with unittest.patch: test_Exit (unittest.test.test_program.Test_TestProgram) ... test test_unittest crashed -- Traceback (most recent call last): File /home/berker/projects/cpython-default/Lib/test/regrtest.py,

[issue21477] Idle: improve idle_test.htest

2014-05-25 Thread Saimadhav Heblikar
Saimadhav Heblikar added the comment: Modifications in htest-25052014.diff 1. ClassBrowser, PathBrowser, EditorWindow no longer close parent when closed 2. Sample code in _color_delegator changed to string, instead of reading from file. 3. String text change for Tooltip. 4. Adds htest for

[issue21343] os.path.relpath returns inconsistent types

2014-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In Python 2 str is coerced to unicode, so most functions should return the same (or compatible) result for str and unicode argument if it contains only 7-bit ASCII characters. Of course there are several obvious exceptions, such as type() or repr(). And

[issue8743] set() operators don't work with collections.Set instances

2014-05-25 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- versions: +Python 2.7, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8743 ___

[issue8743] set() operators don't work with collections.Set instances

2014-05-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: Adding tests for non-set iterables as suggested by Serhiy. -- Added file: http://bugs.python.org/file35353/fix_set_abc2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8743

[issue10203] sqlite3.Row doesn't support sequence protocol

2014-05-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10203 ___ ___

[issue10203] sqlite3.Row doesn't support sequence protocol

2014-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. Perhaps it is worth to add a test for negative indices (valid (-1) and invalid ( -length)). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10203

[issue21560] gzip.write changes trailer ISIZE field before type checking - corrupted gz file after trying to write string

2014-05-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: needs patch - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21560 ___ ___

[issue21575] list.sort() should show arguments in tutorial

2014-05-25 Thread Éric Araujo
Éric Araujo added the comment: I assume it is on purpose that the tutorial does not show all methods with all their arguments. It could overwhelm readers with too much information, and would also duplicate the full doc that’s in the reference. A link from this tutorial page to the list

[issue12972] Color prompt + readline

2014-05-25 Thread Damian
Damian added the comment: Just a quick comment that I ran into this again, but turns out that it's not an issue with python. Rather, this is a quirk with how readline works... https://stackoverflow.com/questions/9468435/look-how-to-fix-column-calculation-in-python-readline-if-use-color-prompt

[issue21493] Add test for ntpath.expanduser

2014-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. But most other tests in this file use tester() to test str and bytes. And it would be good to test multicomponent arguments (e.g. '~test\\foo\\bar' and '~/foo/bar'). -- assignee: - serhiy.storchaka nosy: +serhiy.storchaka

[issue10203] sqlite3.Row doesn't support sequence protocol

2014-05-25 Thread Claudiu.Popa
Claudiu.Popa added the comment: Thanks. Here's the updated patch. It supports negative indeces (my previous patch didn't do that). -- Added file: http://bugs.python.org/file35354/issue10203.patch ___ Python tracker rep...@bugs.python.org

[issue21493] Add test for ntpath.expanduser

2014-05-25 Thread Claudiu.Popa
Claudiu.Popa added the comment: Here's an updated patch. -- Added file: http://bugs.python.org/file35355/issue21493.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21493 ___

[issue18622] reset_mock on mock created by mock_open causes infinite recursion

2014-05-25 Thread Florent Xicluna
Florent Xicluna added the comment: I've been bitten by this issue with a custom psycopg2 mock. cur = mock.Mock() cur.connection.cursor.return_value = cur cur.reset_mock() RuntimeError: maximum recursion depth exceeded the patch looks ok, except the mix of tab and spaces :-) --

[issue12972] Color prompt + readline

2014-05-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks for the followup. This should be useful info for anyone who finds this issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12972 ___

[issue21477] Idle: improve idle_test.htest

2014-05-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset d7eea8f608c2 by Terry Jan Reedy in branch '3.4': Issue #21477: Idle htest: modify run; add more tests. http://hg.python.org/cpython/rev/d7eea8f608c2 -- ___ Python tracker rep...@bugs.python.org

[issue21477] Idle: improve idle_test.htest

2014-05-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: 0. I pushed a slight revision of the patch. See 2) for the main change. In htest, I also did 3), corrected some line spacing issues, and changed 'focussing' to the US spelling 'focusing'. A tested 2.7 version of the attached, htest-25052014-34.py, is top

[issue21477] Idle: improve idle_test.htest

2014-05-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yes, remove unscrollable (test2) tree widget (review response). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21477 ___

[issue8743] set() operators don't work with collections.Set instances

2014-05-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: Added tests that include the pure python sets.Set(). Only the binary or/and/sub/xor methods are tested. The comparison operators were designed to only interact with their own kind. A comment from Tim Peters explains the decision raise a TypeError

[issue21576] Overwritten (custom) uuid inside dictionary

2014-05-25 Thread beta
beta added the comment: import copy ship = {'Name': 'Slagschip', 'Blocks': 5} shipData = copy.deepcopy(ship) # needed, otherwise linked-object shipData['uuid'] = Id # unique Id Is this the correct Python behavior? -- resolution: - not a bug ___

[issue13355] random.triangular error when low = high=mode

2014-05-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks Stefan. For us, I don't see the need to add a restriction, possibly breaking code that is currently working fine (with high mode = low). The important part is that we now allow low==mode or high==mode and have a smooth transition to low==high.

[issue13355] random.triangular error when low = high=mode

2014-05-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7ea6c8eb91e2 by Raymond Hettinger in branch '3.4': Issue 13355: Make random.triangular degrade gracefully when low == high. http://hg.python.org/cpython/rev/7ea6c8eb91e2 -- ___ Python tracker

[issue13355] random.triangular error when low = high=mode

2014-05-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6dc5c4ba7544 by Raymond Hettinger in branch '2.7': Issue 13355: Make random.triangular degrade gracefully when low == high. http://hg.python.org/cpython/rev/6dc5c4ba7544 -- ___ Python tracker

[issue13355] random.triangular error when low = high=mode

2014-05-25 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13355 ___

[issue21558] Fix a typo in the contextlib docs

2014-05-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset ebeade01bd8e by Raymond Hettinger in branch '3.4': Issue 21558: Fix a typo in the contextlib docs http://hg.python.org/cpython/rev/ebeade01bd8e -- nosy: +python-dev ___ Python tracker

[issue21558] Fix a typo in the contextlib docs

2014-05-25 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- nosy: +ncoghlan resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21558 ___

[issue21137] Better repr for threading.Lock()

2014-05-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7574f94b1068 by Raymond Hettinger in branch 'default': Issue 21137: Better repr for threading.Lock() http://hg.python.org/cpython/rev/7574f94b1068 -- nosy: +python-dev ___ Python tracker

[issue21137] Better repr for threading.Lock()

2014-05-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks Berker. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21137 ___

[issue15246] Line coverage for collectionts.abc.Set

2014-05-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset dc353953ce8b by Raymond Hettinger in branch 'default': Issue 15246: Improve test coverage for collections.abc.Set. (Contributed by James King). http://hg.python.org/cpython/rev/dc353953ce8b -- nosy: +python-dev

[issue15246] Line coverage for collectionts.abc.Set

2014-05-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the patch. Nice work. -- resolution: - fixed status: open - closed versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15246

[issue21575] list.sort() should show arguments in tutorial

2014-05-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: Is there a reason why we do not show the arguments there? It was likely an oversight. I think it should be updated so that people know the options are there. -- nosy: +rhettinger ___ Python tracker

[issue21575] list.sort() should show arguments in tutorial

2014-05-25 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file35358/sort_tut.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21575

[issue20611] socket.create_connection() doesn't handle EINTR properly

2014-05-25 Thread tholzer
tholzer added the comment: No problem, I've attached a patch for socket.py for Python 2.7.3. A few notes: getaddrinfo (and gethostbyname, etc.) are already immune to this bug, so I've just fixed the connect() call. The socket does need to be closed after EINTR, otherwise a EINPROGRESS might

[issue20611] socket.create_connection() doesn't handle EINTR properly

2014-05-25 Thread tholzer
tholzer added the comment: I've also attached a potential patch for the C module Modules/socketmodule.c inside internal_connect(). A few notes: This seems to work both without time-out and with time-out sockets (non-blocking). One concern would be a signal storm prolonging the operation

[issue20611] socket.create_connection() doesn't handle EINTR properly

2014-05-25 Thread tholzer
Changes by tholzer thol...@wetafx.co.nz: Added file: http://bugs.python.org/file35361/socketmodule_2.7.6_eintr_patch.c ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20611 ___

[issue20611] socket.create_connection() doesn't handle EINTR properly

2014-05-25 Thread tholzer
Changes by tholzer thol...@wetafx.co.nz: Removed file: http://bugs.python.org/file35360/socketmodule_2.7.6_eintr_patch.c ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20611 ___

[issue20664] _findLib_crle and _get_soname broken on latest SunOS 5.11

2014-05-25 Thread Jeff Quast
Changes by Jeff Quast cont...@jeffquast.com: Added file: http://bugs.python.org/file35363/opensolaris-ctypes-python-3.x.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20664 ___

[issue20664] _findLib_crle and _get_soname broken on latest SunOS 5.11

2014-05-25 Thread Jeff Quast
Jeff Quast added the comment: Submitting fix to fallback to alternate '/usr/bin/dump' path, confirmed using SmartOS. As for the issues writing to /lib and /usr/lib from a zone, and the request for An environment variable .. to override this functionality. I have to disagree: crle(1) already

[issue21477] Idle: improve idle_test.htest

2014-05-25 Thread Saimadhav Heblikar
Changes by Saimadhav Heblikar saimadhavhebli...@gmail.com: Added file: http://bugs.python.org/file35364/htest-25052014-27.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21477 ___

[issue21577] Help for ImportError should show a more useful signature.

2014-05-25 Thread Eric Snow
New submission from Eric Snow: Currently: __init__(self, /, *args, **kwargs) Proposed: __init__(self, /, *args, name=None, path=None, **kwargs) Even that is still a little vague, but at least it doesn't gloss over the kwonly args added in 3.3. -- components: Interpreter Core

[issue21578] Misleading error message when ImportError called with invalid keyword args

2014-05-25 Thread Eric Snow
New submission from Eric Snow: ImportError(spam='spam') Traceback (most recent call last): File stdin, line 1, in module TypeError: ImportError does not take keyword arguments However, it *does* take keyword arguments: ImportError(name='spam', path='spam') ImportError() --

[issue21343] os.path.relpath returns inconsistent types

2014-05-25 Thread Matt Bachmann
Matt Bachmann added the comment: Looking into the project im working on I discovered why relpath was acting strangely. It is because the project mocks get_cwd but not get_cwdu. Your request helped me track that down :-) So that is not an issue. However, the issue described in the original

[issue15767] add ModuleNotFoundError

2014-05-25 Thread Eric Snow
Eric Snow added the comment: Any chance we could revive ModuleNotFoundError? It's nice to be able to distinguish between the failure to *find* the module during import from other uses of ImportError. I'd definitely expect it to work the way Guido explained. Basically only

[issue16774] Additional recipes for itertools docs

2014-05-25 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- versions: +Python 3.5 -Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16774 ___

[issue16774] Additional recipes for itertools docs

2014-05-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2781fb146f4a by Raymond Hettinger in branch 'default': Issue 16774: Add a new itertools recipe (suggested by Alexey Kachayev). http://hg.python.org/cpython/rev/2781fb146f4a -- nosy: +python-dev ___

[issue16774] Additional recipes for itertools docs

2014-05-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: In the end, I decided to add a variant of take_last(). Thank you for the suggestion. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16774

[issue8743] set() operators don't work with collections.Set instances

2014-05-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3615cdb3b86d by Raymond Hettinger in branch '2.7': Issue 8743: Improve interoperability between sets and the collections.Set abstract base class. http://hg.python.org/cpython/rev/3615cdb3b86d -- nosy: +python-dev

[issue21558] Fix a typo in the contextlib docs

2014-05-25 Thread Berker Peksag
Berker Peksag added the comment: Thanks Raymond, will do. -- stage: patch review - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21558 ___

[issue21137] Better repr for threading.Lock()

2014-05-25 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- stage: patch review - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21137 ___ ___

[issue21579] Python 3.4: tempfile.close attribute does not work

2014-05-25 Thread Марк Коренберг
New submission from Марк Коренберг: Suppose code: = import os import tempfile want_to_replace = 'zxc.dat' tmpdir=os.path.dirname(os.path.realpath(want_to_replace)) with tempfile.NamedTemporaryFile(dir=tmpdir) as fff: # do somewhat with fff here... and

[issue21580] PhotoImage(data=...) apparently has to be UTF-8 or Base-64 encoded

2014-05-25 Thread Martin Panter
New submission from Martin Panter: At the bottom of the “tkinter” doc page it mentions the “data” option is available. However I was unable to get it to work well when passing a plain bytes() string in. It seems the bytes() string gets interpreted as UTF-8 somewhere along the line, although

[issue21436] Consider leaving importlib.abc.Loader.load_module()

2014-05-25 Thread Eric Snow
Eric Snow added the comment: I'd rather see something like load_from_spec() added to importlib.util, a la issue #21235. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21436 ___