[issue22047] argparse improperly prints mutually exclusive options when they are in a group

2014-07-26 Thread paul j3
paul j3 added the comment: This patch adds a class TestMutuallyExclusiveGroupErrors test_invalid_add_group() test, closely modeled on test_invalid_add_argument() I'm using ValueError in group add methods (maintaining the similarity with add_argument errors). I haven't

[issue22068] test_gc fails after test_idle

2014-07-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: ConfigDialog is a good guess as I added a minimal test this month. I will try to revise to not create loops in the first place. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22068

[issue3982] support .format for bytes

2014-07-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: http://legacy.python.org/dev/peps/pep-0461/ adds % formatting for bytes and bytes array. Nick, I have the impression that there was a decision to not add bytes.format. Correct? If so, this issue should be closed. If not, what, if anything, has been decided?

[issue3982] support .format for bytes

2014-07-26 Thread Nick Coghlan
Nick Coghlan added the comment: Right, bytes.format was considered as part of the PEP 461 discussions, and rejected as an operation that only made sense in the text domain: http://www.python.org/dev/peps/pep-0461/#proposed-variations With PEP 461 accepted, and PEP 460 withdrawn, that means we

[issue20284] patch to implement PEP 461 (%-interpolation for bytes)

2014-07-26 Thread Nick Coghlan
Nick Coghlan added the comment: Just noting I'm working on some significant updates to the bytes and bytearray docs in issue 21777. I'll try to get that ready for review and merged relatively soon, so the docs for this can build on top of those changes. -- nosy: +ncoghlan

[issue21777] Separate out documentation of binary sequence methods

2014-07-26 Thread Nick Coghlan
Nick Coghlan added the comment: OK, I've completed the initial pass through all the methods. Remaining items: * add back the guarantees where str will return the same object, add those guarantees for bytes where applicable * address the review comments from Zach and Ezio There are a couple of

[issue17172] Add turtledemo to IDLE menu

2014-07-26 Thread Ned Deily
Ned Deily added the comment: Here are some review comments on turtle_demo_v2.patch. First, the subprocess call to start turtledemo may work ok in your build directory but it will not work in general. Using the standard idiom for invoking a new process running the current instance of python,

[issue19776] Provide expanduser() on Path objects

2014-07-26 Thread Claudiu Popa
Claudiu Popa added the comment: Here's a version of the patch which raises ValueError when the path can't be expanded. Hopefully, the used approach is good enough. -- Added file: http://bugs.python.org/file36102/issue19776_4.patch ___ Python tracker

[issue16535] json encoder unable to handle decimal

2014-07-26 Thread Ralph Heinkel
Changes by Ralph Heinkel r...@ralph-heinkel.com: -- nosy: +christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16535 ___ ___

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

2014-07-26 Thread Phil Connell
Changes by Phil Connell pconn...@gmail.com: -- nosy: +pconnell ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1152248 ___ ___ Python-bugs-list

[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.storchaka

[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):

[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 rep...@bugs.python.org

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

2014-07-26 Thread Ronald Oussoren
Changes by Ronald Oussoren ronaldousso...@mac.com: -- versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15730 ___

[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 rep...@bugs.python.org http://bugs.python.org/issue21308 ___

[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

[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+

[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

[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 rep...@bugs.python.org

[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

[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

[issue22076] csv module bad grammar in exception message

2014-07-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: -serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22076 ___ ___

[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

[issue19776] Provide expanduser() on Path objects

2014-07-26 Thread Claudiu Popa
Claudiu Popa added the comment: Looks good. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19776 ___ ___ Python-bugs-list mailing list

[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

[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 rep...@bugs.python.org

[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 rep...@bugs.python.org http://bugs.python.org/issue22068 ___

[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 rep...@bugs.python.org http://bugs.python.org/issue22078 ___

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue22078 ___

[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 stdin, line 1, in module AttributeError:

[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 rep...@bugs.python.org http://bugs.python.org/issue22078 ___

[issue22078] io.BufferedReader hides ResourceWarnings when garbage collected

2014-07-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - not a bug stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22078 ___

[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 rep...@bugs.python.org http://bugs.python.org/issue19875

[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:

[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

[issue21518] Expose RegUnloadKey in winreg

2014-07-26 Thread Claudiu Popa
Changes by Claudiu Popa pcmantic...@gmail.com: -- dependencies: +Add windows_helper module helper ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21518 ___

[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 rep...@bugs.python.org

[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 rep...@bugs.python.org http://bugs.python.org/issue19875

[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));'

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

2014-07-26 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +alex ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22081 ___ ___ Python-bugs-list

[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 victor.stin...@gmail.com date:Sat Jul 26 14:52:55 2014

[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 rep...@bugs.python.org

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

2014-07-26 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +gvanrossum ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22081 ___ ___ Python-bugs-list

[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 rep...@bugs.python.org http://bugs.python.org/issue19838 ___

[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,

[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

[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

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue22081

[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)

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue22081 ___

[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 rep...@bugs.python.org http://bugs.python.org/issue19838

[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 rep...@bugs.python.org http://bugs.python.org/issue19838

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue22074

[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 rep...@bugs.python.org http://bugs.python.org/issue22081

[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': generator object genexpr at ...} repr(element) # doctest: +ELLIPSIS Element 't\\xe4g'

[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 ML

[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 rep...@bugs.python.org

[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

[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 rep...@bugs.python.org wrote: Serhiy Storchaka added the comment: See for example test_generators, test_genexps, test_xml_etree or ctypes.test.test_objects. dict(a = (i

[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 :-) --

[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 rep...@bugs.python.org http://bugs.python.org/issue21308

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

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

[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 tip.

[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

[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

[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
Changes by Serhiy Storchaka storch...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file36115/tkinter_trace_variable.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22085

[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

[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

[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 oreil...@gmail.com: Added file: http://bugs.python.org/file36117/test_loop.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22087 ___

[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 oreil...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22087 ___ ___ Python-bugs-list

[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 oreil...@gmail.com: -- 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

[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 oreil...@gmail.com: Removed file: http://bugs.python.org/file36116/handle_mp_unix.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22087 ___

[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 oreil...@gmail.com: Added file: http://bugs.python.org/file36118/handle_mp_unix.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22087 ___

[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 rep...@bugs.python.org http://bugs.python.org/issue22014

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

2014-07-26 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- resolution: - third party stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15398 ___

[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

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

2014-07-26 Thread Drekin
Changes by Drekin dre...@gmail.com: Removed file: http://bugs.python.org/file27261/win_unicode_console_2.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1602 ___

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

2014-07-26 Thread Drekin
Changes by Drekin dre...@gmail.com: Removed file: http://bugs.python.org/file29563/i.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1602 ___ ___

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

2014-07-26 Thread Drekin
Changes by Drekin dre...@gmail.com: Removed file: http://bugs.python.org/file29564/win_unicode_console_3.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1602 ___

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

2014-07-26 Thread Drekin
Changes by Drekin dre...@gmail.com: Removed file: http://bugs.python.org/file31756/streams.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1602 ___ ___

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

2014-07-26 Thread Drekin
Changes by Drekin dre...@gmail.com: Removed file: http://bugs.python.org/file31770/win_unicode_console.zip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1602 ___

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

2014-07-26 Thread Drekin
Changes by Drekin dre...@gmail.com: Removed file: http://bugs.python.org/file35990/win_unicode_console.zip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1602 ___

[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

[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

[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

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

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

[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 rep...@bugs.python.org http://bugs.python.org/issue21901 ___ ___ Python-bugs-list

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue1466065 ___

[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 rep...@bugs.python.org http://bugs.python.org/issue17172

[issue22068] test_gc fails after test_idle

2014-07-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: F:\Python\dev2\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... ,

[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 rep...@bugs.python.org

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue1602 ___

[issue22082] Clear interned strings listed in slotdefs

2014-07-26 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22082 ___

  1   2   >