[issue22089] collections.MutableSet does not provide update method

2014-07-26 Thread Roy Wellington
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 m

[issue21933] Allow the user to change font sizes with the text pane of turtledemo

2014-07-26 Thread Lita Cho
Lita Cho added the comment: Hi Terry, I originally had txtfont as a list, but I guess I was worried about readability and accessing attributes by indices being unpythonic. But I might have been over-doing it for this case. :) In Mac, you don't need to divide event.delta by 120, only Windows a

[issue22079] Ensure in PyType_Ready() that base class of static type is static

2014-07-26 Thread Alex Gaynor
Alex Gaynor added the comment: Yup. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/

[issue22079] Ensure in PyType_Ready() that base class of static type is static

2014-07-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: By static, you mean not a heap type? -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list ma

[issue1234674] filecmp.cmp's "shallow" option

2014-07-26 Thread Andrew Kubera
Andrew Kubera added the comment: Attached is a couple extra tests which run filecmp on two files with different content but the same length and relevant stat() info. This appears to successfully check if the shallow options works correctly. It uses time.sleep(1) to ensure the files start out

[issue22084] Mutating while iterating

2014-07-26 Thread Nick Coghlan
Nick Coghlan added the comment: Raymond's answer at http://bugs.python.org/issue19332#msg202287 still stands: the checks for mutation while iterating are there primarily to *protect the interpreter itself*, rather than to help detect bugs where the user code misses some items because it mutate

[issue21933] Allow the user to change font sizes with the text pane of turtledemo

2014-07-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: v3 missed 3 of the 4 fixes I requested. I would like to commit the attached simplified version of v3 that includes all fixes, leaves txtfont global as a list, and uses subscripting consistently instead of .config. But I would first like confirmation that this

[issue17172] Add turtledemo to IDLE menu

2014-07-26 Thread Lita Cho
Lita Cho added the comment: I've updated this patch to include the changes Ned mentioned. I am waiting to hear from Ronald if he has a better solution about dealing with the focus problem with the keyboard and mouse. -- Added file: http://bugs.python.org/file36121/turtle_demo_v3.patch

[issue22087] _UnixDefaultEventLoopPolicy should either create a new loop or explicilty fail when get_event_loop() is called from a multiprocessing child process

2014-07-26 Thread Guido van Rossum
Guido van Rossum added the comment: I think there should still be a new unittest -- we're adding a behavior we're promising, so we should test it. -- ___ Python tracker ___

[issue16535] json encoder unable to handle decimal

2014-07-26 Thread Chris Rebert
Chris Rebert added the comment: > 1) JSON just support floats If you read the JSON standards documents, you'll see that this isn't accurate. Regardless, a general solution for non-built-in numeric types does seem preferable. -- ___ Python tracker

[issue22082] Clear interned strings listed in slotdefs

2014-07-26 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1602] windows console doesn't print or input Unicode

2014-07-26 Thread Nick Coghlan
Nick Coghlan added the comment: Drekin, you're right, that's a much better way to go, I just didn't think it through :) -- ___ Python tracker ___

[issue22014] Add summary table for OS exception <-> errno mapping

2014-07-26 Thread Nick Coghlan
Nick Coghlan added the comment: Oh, nice - the "start-after" and "end-before" options look like they might be the way to go. If I'm reading the docs right, a block like the following would include the OSError section of the tree: .. literalinclude exceptions.txt :start-after: OSError

[issue21933] Allow the user to change font sizes with the text pane of turtledemo

2014-07-26 Thread Lita Cho
Lita Cho added the comment: I was going to add a dropdown menu to change the font size as well, but I am going to wait till Serhiy's patch gets committed in issue22065 before I submit my patch. -- ___ Python tracker

[issue22068] test_gc fails after test_idle

2014-07-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: F:\Python\dev>2\py27\pcbuild\python_d.exe -m test.regrtest -R :: -uall test_idle test_idle leaked [1945, 1945, 1945, 1945] references, sum=7780 There are none with 3.4, so the new gc is doing its job. There are also none with test_configdialog renamed xtest... ,

[issue17172] Add turtledemo to IDLE menu

2014-07-26 Thread Lita Cho
Lita Cho added the comment: I wasn't aware of make patchcheck. I will run this script when submitting patches in the future. Thanks, Ned! -- ___ Python tracker ___ _

[issue1466065] base64 module ignores non-alphabet characters

2014-07-26 Thread Julian Berman
Julian Berman added the comment: Created issue22088 to address not having fixed Py2 here. -- nosy: +Julian ___ Python tracker ___ __

[issue22088] base64 module still ignores non-alphabet characters

2014-07-26 Thread Julian Berman
New submission from Julian Berman: The base64 module documentation claims that decode methods raise exceptions for non-base64 input, but they do not. There was a patch for Py3 done in issue1466065, but the documentation was not updated for Py2. I have not read that ticket carefully enough to b

[issue21901] test_selectors.PollSelectorTestCase.test_above_fd_setsize reported killed by shell

2014-07-26 Thread R. David Murray
R. David Murray added the comment: Test passes for me now, thanks. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue16005] smtplib.SMTP().sendmail() and rset()

2014-07-26 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> error responses from server are masked in smtplib when server closes connection ___ Python tracker

[issue22085] Update deprecated Tcl commands in Tkinter

2014-07-26 Thread Ned Deily
Ned Deily added the comment: Is there any reason to not drop support for Tk 8.3? It appears that the last release of it, 8.3.5, was in 2002. Is anyone aware of any use of it on currently supported platforms? The final planned release of 8.4 (8.4.20) was just a year ago and 8.4 is still bein

[issue1602] windows console doesn't print or input Unicode

2014-07-26 Thread Drekin
Drekin added the comment: I have deleted all my old files and added only my current implementation of the stream objects as the only relevant part to this issue. @Mark Summerfield: I have added __init__.py to the new version of win_unicode_console. If there is any problem, you can start an iss

[issue22087] _UnixDefaultEventLoopPolicy should either create a new loop or explicilty fail when get_event_loop() is called from a multiprocessing child process

2014-07-26 Thread Dan O'Reilly
Dan O'Reilly added the comment: Yep, agreed on both points. The latter suggestion also has the benefit of not requiring any test changes. Here's an updated patch. -- Added file: http://bugs.python.org/file36119/map_chunksize2.patch ___ Python tracker

[issue1602] windows console doesn't print or input Unicode

2014-07-26 Thread Drekin
Changes by Drekin : Removed file: http://bugs.python.org/file35990/win_unicode_console.zip ___ Python tracker ___ ___ Python-bugs-list mailing

[issue1602] windows console doesn't print or input Unicode

2014-07-26 Thread Drekin
Changes by Drekin : Removed file: http://bugs.python.org/file31770/win_unicode_console.zip ___ Python tracker ___ ___ Python-bugs-list mailing

[issue1602] windows console doesn't print or input Unicode

2014-07-26 Thread Drekin
Changes by Drekin : Removed file: http://bugs.python.org/file31756/streams.py ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue1602] windows console doesn't print or input Unicode

2014-07-26 Thread Drekin
Changes by Drekin : Removed file: http://bugs.python.org/file29564/win_unicode_console_3.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue1602] windows console doesn't print or input Unicode

2014-07-26 Thread Drekin
Changes by Drekin : Removed file: http://bugs.python.org/file29563/i.py ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1602] windows console doesn't print or input Unicode

2014-07-26 Thread Drekin
Changes by Drekin : Removed file: http://bugs.python.org/file27261/win_unicode_console_2.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue22087] _UnixDefaultEventLoopPolicy should either create a new loop or explicilty fail when get_event_loop() is called from a multiprocessing child process

2014-07-26 Thread Guido van Rossum
Guido van Rossum added the comment: Good point. Asyncio definitely should not share event loops across forked processes. However, I don't like the dependency on multiprocessing (even though it's in the stdlib) -- can't the policy just use os.getpid()? Also, I've got a feeling that maybe the

[issue15398] intermittence on UnicodeFileTests.test_rename at test_pep277 on MacOS X

2014-07-26 Thread Ned Deily
Changes by Ned Deily : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bug

[issue22014] Add summary table for OS exception <-> errno mapping

2014-07-26 Thread Éric Araujo
Éric Araujo added the comment: literalinclude lets you select only some lines of the file: http://sphinx-doc.org/markup/code.html#includes -- nosy: +eric.araujo ___ Python tracker _

[issue22087] _UnixDefaultEventLoopPolicy should either create a new loop or explicilty fail when get_event_loop() is called from a multiprocessing child process

2014-07-26 Thread Dan O'Reilly
Changes by Dan O'Reilly : Added file: http://bugs.python.org/file36118/handle_mp_unix.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue22087] _UnixDefaultEventLoopPolicy should either create a new loop or explicilty fail when get_event_loop() is called from a multiprocessing child process

2014-07-26 Thread Dan O'Reilly
Changes by Dan O'Reilly : Removed file: http://bugs.python.org/file36116/handle_mp_unix.diff ___ Python tracker ___ ___ Python-bugs-list maili

[issue22087] _UnixDefaultEventLoopPolicy should either create a new loop or explicilty fail when get_event_loop() is called from a multiprocessing child process

2014-07-26 Thread Dan O'Reilly
Changes by Dan O'Reilly : -- title: _UnixDefaultEventLoop policy should either create a new loop or explicilty fail when get_event_loop() is called from a multiprocessing child process -> _UnixDefaultEventLoopPolicy should either create a new loop or explicilty fail when get_event_loo

[issue22087] _UnixDefaultEventLoop policy should either create a new loop or explicilty fail when get_event_loop() is called from a multiprocessing child process

2014-07-26 Thread Dan O'Reilly
Changes by Dan O'Reilly : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue22087] _UnixDefaultEventLoop policy should either create a new loop or explicilty fail when get_event_loop() is called from a multiprocessing child process

2014-07-26 Thread Dan O'Reilly
Changes by Dan O'Reilly : Added file: http://bugs.python.org/file36117/test_loop.py ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue22087] _UnixDefaultEventLoop policy should either create a new loop or explicilty fail when get_event_loop() is called from a multiprocessing child process

2014-07-26 Thread Dan O'Reilly
New submission from Dan O'Reilly: On non-Windows platforms, if a user attempts to use asyncio.get_event_loop() in a child process created by multiprocessing.Process using the fork context, and an asyncio event loop is also being used in the main process, the same _UnixSelectorEventLoop object

[issue22086] Tab indent no longer works in interpreter

2014-07-26 Thread Erik Andersen
New submission from Erik Andersen: Please see http://bugs.python.org/issue5845, especially the last two comments: http://bugs.python.org/issue5845#msg215784, which requested that a new bug report be opened for this issue. To summarize, the previous bug was to enable tab completion in the inter

[issue22085] Update deprecated Tcl commands in Tkinter

2014-07-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +patch Added file: http://bugs.python.org/file36115/tkinter_trace_variable.patch ___ Python tracker ___ ___

[issue22081] Backport repr(socket.socket) from Python 3.5 to Python 2.7

2014-07-26 Thread STINNER Victor
STINNER Victor added the comment: > I afraid this can break doctests. Isn't this against policy? Ok, I close the issue. A workaround is to use repr(sock._sock) to use repr(_socket.socket) which contains a lot of information. -- resolution: -> wont fix status: open -> closed _

[issue22085] Update deprecated Tcl commands in Tkinter

2014-07-26 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Command used to monitor Tcl variable access ("trace variable", "trace vdelete", "trace vinfo") are deprecated and will likely be removed in a future version of Tcl. Proposed patch replaces them to modern equivalents. The problem is that new commands was in

[issue22069] TextIOWrapper(newline="\n", line_buffering=True) mistakenly treat \r as a newline

2014-07-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Looks as this behavior is intentional. Documentation should be corrected. -- assignee: -> docs@python components: +Documentation nosy: +benjamin.peterson, docs@python, hynek, pitrou, stutzbach ___ Python tracker <

[issue1152248] Add support for reading records with arbitrary separators to the standard IO stack

2014-07-26 Thread Akira Li
Akira Li added the comment: > As a side-effect it also fixes the bug in line_buffering=True > behavior, see issue22069O. It should be issue22069 "TextIOWrapper(newline="\n", line_buffering=True) mistakenly treat \r as a newline" Reuploaded the patch so that it applies cleanly on the current ti

[issue22069] TextIOWrapper(newline="\n", line_buffering=True) mistakenly treat \r as a newline

2014-07-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue21308] PEP 466: backport ssl changes

2014-07-26 Thread Alex Gaynor
Alex Gaynor added the comment: New patch cherry pick's the fix from issue22074. -- Added file: http://bugs.python.org/file36113/ssl-backport.diff ___ Python tracker ___ _

[issue22081] Backport repr(socket.socket) from Python 3.5 to Python 2.7

2014-07-26 Thread Alex Gaynor
Alex Gaynor added the comment: Personally I don't think it is (or should) be against policy to change reprs, there's not really any way to improve them otherwise. That said, my excitement level about this issue is pretty low, so I won't argue more than this :-) -- ___

[issue22081] Backport repr(socket.socket) from Python 3.5 to Python 2.7

2014-07-26 Thread Guido van Rossum
Guido van Rossum added the comment: OK, I'm convinced. Sorry Victor. On Saturday, July 26, 2014, Serhiy Storchaka wrote: > > Serhiy Storchaka added the comment: > > See for example test_generators, test_genexps, test_xml_etree or > ctypes.test.test_objects. > > >>> dict(a = (i for i in xra

[issue22084] Mutating while iterating

2014-07-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It would be better discuss such ideas on python-ideas mailing list (http://mail.python.org/mailman/listinfo/python-ideas). Option 3 breaks existing code such as for k, v in d.items(): if pred(k, v): d[k] = newvalue break

[issue20093] Wrong OSError message from os.rename() when dst is a non-empty directory

2014-07-26 Thread Matthias Klose
Matthias Klose added the comment: 3.4.0 has this fixed. resolutions in http://bugs.python.org/issue16074 and http://bugs.python.org/issue20517 -- nosy: +doko resolution: -> fixed status: open -> closed ___ Python tracker

[issue22084] Mutating while iterating

2014-07-26 Thread Aaron Brady
New submission from Aaron Brady: Hi, I asked about the inconsistency of the "RuntimeError" being raised when mutating a container while iterating over it here [1], "set and dict iteration" on Aug 16, 2012. [1] http://www.gossamer-threads.com/lists/python/python/1004659 I posted a patch on the

[issue22081] Backport repr(socket.socket) from Python 3.5 to Python 2.7

2014-07-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See for example test_generators, test_genexps, test_xml_etree or ctypes.test.test_objects. >>> dict(a = (i for i in xrange(10))) #doctest: +ELLIPSIS {'a': at ...>} >>> repr(element) # doctest: +ELLIPSIS "" But unit tests can be broken too

[issue22081] Backport repr(socket.socket) from Python 3.5 to Python 2.7

2014-07-26 Thread Guido van Rossum
Guido van Rossum added the comment: I don't think it's against policy. Do doctests even work for objects that have an address as part of their repr()? -- ___ Python tracker ___

[issue22074] Lib/test/make_ssl_certs.py fails with NameError

2014-07-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: Good catch, this is now solved. -- resolution: -> fixed stage: -> resolved status: open -> closed type: -> behavior versions: +Python 3.4 ___ Python tracker

[issue22074] Lib/test/make_ssl_certs.py fails with NameError

2014-07-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 83628d9e1035 by Antoine Pitrou in branch '3.4': Issue #22074: Fix Lib/test/make_ssl_certs.py http://hg.python.org/cpython/rev/83628d9e1035 New changeset 17f46a7b1125 by Antoine Pitrou in branch 'default': Issue #22074: Fix Lib/test/make_ssl_certs.py

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-07-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: So, I'm not against the patch, but it would be nice to diagnose where exactly the issue comes from. -- stage: -> patch review ___ Python tracker _

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-07-26 Thread Larry Hastings
Larry Hastings added the comment: (By "this approach" I meant "the approach employed in the first patch posted". Sorry for the ambiguity.) -- ___ Python tracker ___ ___

[issue22081] Backport repr(socket.socket) from Python 3.5 to Python 2.7

2014-07-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I afraid this can break doctests. Isn't this against policy? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-07-26 Thread Larry Hastings
Larry Hastings added the comment: Sorry to have such an awful configuration, but this approach won't fix the problem for me. I use a Linux "encrypted home directory", which uses crazy loopback mount logic to create an on-the-fly decrypted representation of my home directory. So my home direc

[issue22083] Refactor PyShell's breakpoint related methods

2014-07-26 Thread Saimadhav Heblikar
New submission from Saimadhav Heblikar: This refactoring is required to enable setting/clearing breakpoints, using linenumbering( whether using a Canvas implementation or a Text implementation http://bugs.python.org/issue17535) The patch ensures consistency between the set_breakpoint(_here) and

[issue22081] Backport repr(socket.socket) from Python 3.5 to Python 2.7

2014-07-26 Thread Guido van Rossum
Guido van Rossum added the comment: Antoine, what do you want me to do? I think improving __repr__ of a socket sounds fine for some Python 2.7 bugfix release. -- ___ Python tracker ___

[issue8232] webbrowser.open incomplete on Windows

2014-07-26 Thread Brandon Milam
Brandon Milam added the comment: How the _isexecutable function is set up now it would require a full path name in order to be able to tell if a specific browser is on the system. The area under platform support for windows checks for multiple browsers using this function but only passes it br

[issue22082] Clear interned strings listed in slotdefs

2014-07-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset c55300337932 by Martin v. Löwis in branch 'default': Issue #22082: Clear interned strings in slotdefs. http://hg.python.org/cpython/rev/c55300337932 -- nosy: +python-dev ___ Python tracker

[issue22082] Clear interned strings listed in slotdefs

2014-07-26 Thread Martin v . Löwis
New submission from Martin v. Löwis: I'm chasing objects left at shutdown. I found that the string objects in slotdefs are still around at the end; this patch removes them. -- files: type.diff keywords: patch messages: 224058 nosy: loewis priority: normal severity: normal status: open t

[issue8232] webbrowser.open incomplete on Windows

2014-07-26 Thread Brandon Milam
Brandon Milam added the comment: In order to fix the issue I added on to the WindowsDefault class so that it is the main browser class for windows platforms as opposed to being a default when no other browser is given. I gave the class an init where it specifies specific flags for firefox, chr

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-07-26 Thread Larry Hastings
Larry Hastings added the comment: This test also fails on Linux when using ZFS. -- nosy: +larry ___ Python tracker ___ ___ Python-bugs

[issue22081] Backport repr(socket.socket) from Python 3.5 to Python 2.7

2014-07-26 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue19875] test_getsockaddrarg occasional failure

2014-07-26 Thread koobs
koobs added the comment: Updating versions to reflect branch changes. Will come in handy for those tracking for manual packaging backports -- versions: +Python 2.7, Python 3.5 -Python 3.3 ___ Python tracker __

[issue22081] Backport repr(socket.socket) from Python 3.5 to Python 2.7

2014-07-26 Thread STINNER Victor
STINNER Victor added the comment: I also fixed repr(_socket.socket) on Windows 64-bit for closed sockets (on Python 2.7, 3.4 and 3.5): changeset: 91881:04c916a1e82f branch: 2.7 tag: tip user:Victor Stinner date:Sat Jul 26 14:52:55 2014 +0200 files: Lib/test

[issue22081] Backport repr(socket.socket) from Python 3.5 to Python 2.7

2014-07-26 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +alex ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue22081] Backport repr(socket.socket) from Python 3.5 to Python 2.7

2014-07-26 Thread STINNER Victor
New submission from STINNER Victor: Currently, the C module _socket has an useful representation of socket: it gives the file descriptor, family, type, etc. The Python socket module only shows the memory address. Example: $ ./python -c 'import _socket; s=_socket.socket(); print(repr(s));' $

[issue19875] test_getsockaddrarg occasional failure

2014-07-26 Thread Charles-François Natali
Charles-François Natali added the comment: Backported to 2.7 (don't know how Iforgot it). 3.3 is only open for security issues, so not backporting. -- ___ Python tracker ___

[issue19875] test_getsockaddrarg occasional failure

2014-07-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 57e3c4ae37ea by Charles-François Natali in branch '2.7': Issue #19875: Fix random test_getsockaddrarg() failure. http://hg.python.org/cpython/rev/57e3c4ae37ea -- ___ Python tracker

[issue21518] Expose RegUnloadKey in winreg

2014-07-26 Thread Claudiu Popa
Changes by Claudiu Popa : -- dependencies: +Add windows_helper module helper ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue22080] Add windows_helper module helper

2014-07-26 Thread Claudiu Popa
New submission from Claudiu Popa: Hi. This patch adds a new test helper module, initially added in issue21518, for controlling various aspects on Windows platform, like acquiring / releasing privileges etc. At the same time, it contains a modification in test.support.skip_unless_symlink, so th

[issue22079] Ensure in PyType_Ready() that base class of static type is static

2014-07-26 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: It would be good if PyType_Ready() will check that base class of static type is static. -- components: Interpreter Core messages: 224049 nosy: alex, haypo, serhiy.storchaka priority: normal severity: normal stage: needs patch status: open title: Ens

[issue19875] test_getsockaddrarg occasional failure

2014-07-26 Thread koobs
koobs added the comment: Thank you for taking care of this Charles-François :) Requesting backport to 3.3 and 2.7 too please, both are open for fixes. -- ___ Python tracker ___

[issue22078] io.BufferedReader hides ResourceWarnings when garbage collected

2014-07-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pytho

[issue22078] io.BufferedReader hides ResourceWarnings when garbage collected

2014-07-26 Thread Claudiu Popa
Claudiu Popa added the comment: You're right, thanks for the new information. You can close the issue then. -- ___ Python tracker ___

[issue22078] io.BufferedReader hides ResourceWarnings when garbage collected

2014-07-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This example is not correct. 1) Argument of BufferedReader should be binary stream. >>> import io, gc >>> f = open('/dev/null') >>> bufio = io.BufferedReader(f) >>> bufio.read(1) Traceback (most recent call last): File "", line 1, in AttributeError: '_io.T

[issue22078] io.BufferedReader hides ResourceWarnings when garbage collected

2014-07-26 Thread Claudiu Popa
Claudiu Popa added the comment: I mean this one: $ python_d -Wall -c "f=open('a', 'r'); import io; io.BufferedReader(f)" -- ___ Python tracker ___ __

[issue21308] PEP 466: backport ssl changes

2014-07-26 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks for working through this! I've kicked it in the direction of the Fedora Python SIG folks (https://lists.fedoraproject.org/pipermail/python-devel/2014-July/000611.html), since it would be good if we could get it tested before it makes its way into an upst

[issue22078] io.BufferedReader hides ResourceWarnings when garbage collected

2014-07-26 Thread Claudiu Popa
Claudiu Popa added the comment: That's not the same, try with my example. open("a") will be a TextIOWrapper. -- ___ Python tracker ___ ___

[issue22068] test_gc fails after test_idle

2014-07-26 Thread STINNER Victor
STINNER Victor added the comment: I agree that the patch shoukd also br applied to 3.4. -- ___ Python tracker ___ ___ Python-bugs-list

[issue22078] io.BufferedReader hides ResourceWarnings when garbage collected

2014-07-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: All works to me. $ ./python -Wall -c "open('/dev/null', 'rb')" -c:1: ResourceWarning: unclosed file <_io.BufferedReader name='/dev/null'> -- nosy: +serhiy.storchaka ___ Python tracker

[issue22078] io.BufferedReader hides ResourceWarnings when garbage collected

2014-07-26 Thread Claudiu Popa
New submission from Claudiu Popa: Given the following example, Python 3.5 doesn't emit any resource warning: import io, gc f = open("a") bufio = io.BufferedReader(f) gc.collect() Here's a small patch that enables this. -- components: IO files: buffered_io_resource_warning.patch keywor

[issue19776] Provide expanduser() on Path objects

2014-07-26 Thread Claudiu Popa
Claudiu Popa added the comment: Looks good. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue12243] getpass.getuser works on OSX

2014-07-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: The issue still is present, wouldn't it be better to just remove the availability annotation from the docs (2.7, 3.4 and trunk) while waiting for a better solution? That would at least remove confusion for these docs. At the very least the "Macintosh" avail

[issue22076] csv module bad grammar in exception message

2014-07-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: -serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue19776] Provide expanduser() on Path objects

2014-07-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is alternative patch which doesn't use os.path.expanduser() and reimplement it's logic. Differences: * expanduser() is part of concrete path API. This method access environment. * RuntimeError is raised when user home can't be determined. * Currently ntp

[issue10964] Mac installer need not add things to /usr/local

2014-07-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: There'd still need to be some way to update the shell environment, but I agree that there needs to be something better than we have now. One option is to add a small shell script that can be sourced from the shell profile and adds the various python framework

[issue15398] intermittence on UnicodeFileTests.test_rename at test_pep277 on MacOS X

2014-07-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'd be in favour of closing this issue, I haven't seen the problem in a while and it is almost certainly due to a platform bug on OSX 10.6. -- ___ Python tracker

[issue19325] _osx_support imports many modules

2014-07-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: The use of context lib in _read_output should not be necessary anymore as file objects and NamedTemporaryFile objects already are context managers with the right semantics. I'm not sure how to avoid the import of tempfile other than adding a minimal impleme

[issue22068] test_gc fails after test_idle

2014-07-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch against 2.7 which get rid of reference loops in Tk variables and Font. This will fix not only ConfigDialog, but any similar user code. In 3.4+ such reference loops are successfully resolved, but I think we should foreport this path to 3.4+ be

[issue16535] json encoder unable to handle decimal

2014-07-26 Thread Christian Heimes
Christian Heimes added the comment: I'm EuroPython 2014 in Berlin. Ralph has approached me and asked me about progress on the progress of this patch. I'm reluctant to implement a special case for decimals for two reasons: 1) JSON just support floats and decimals are IMHO incompatible with floa

[issue21308] PEP 466: backport ssl changes

2014-07-26 Thread Christian Heimes
Christian Heimes added the comment: Awesome! :) I'll try to find some time to check your work when I'm back from EuroPython. -- ___ Python tracker ___ __

[issue15730] Silence unused value warnings under Mac OS X 10.8/clang

2014-07-26 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- versions: +Python 3.5 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue22012] struct.unpack('?', '\x02') returns (False,) on Mac OSX

2014-07-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: Does anyone have feedback for my proposed patch (other the bug in test code when sizeof(bool) != 1, the test values for big and little endian are in the wrong order)? -- ___ Python tracker

[issue22077] Improve the error message for various sequences

2014-07-26 Thread Claudiu Popa
New submission from Claudiu Popa: For a couple of sequences (bytes, list, tuple, bytearray), the error when using an invalid sequence index is misleading, because it says that only integers are allowed, while slices are allowed too. >>> a = [] >>> a['python'] Traceback (most recent call last):

[issue22076] csv module bad grammar in exception message

2014-07-26 Thread Martin Matusiak
New submission from Martin Matusiak: The csv module has an exception message with bad grammar: - delimiter" must be an 1-character string "an" should be "a" -- components: Library (Lib) files: csv_grammar_fix.diff keywords: patch messages: 224028 nosy: haypo, numerodix, serhiy.storchak

  1   2   >