[issue11973] kevent does not accept KQ_NOTE_EXIT (and other (f)flags)

2013-08-24 Thread koobs
Changes by koobs : -- nosy: +koobs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailm

[issue14191] argparse doesn't allow optionals within positionals

2013-08-24 Thread paul j3
Changes by paul j3 : Removed file: http://bugs.python.org/file29880/mixed.patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue15112] argparse: nargs='*' positional argument doesn't accept any items if preceded by an option and another positional

2013-08-24 Thread paul j3
paul j3 added the comment: I originally posted this on http://bugs.python.org/issue14191, but I think it belongs here. The patch I proposed is similar to berthard's, popping items off the end of 'args_counts'. I intend to check whether the logic is equivalent. co

[issue18489] IDLE Unit test for SearchEngine.py

2013-08-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Big changes: monkey-patched module so tests of functions not using Text are non-gui; split search tests from other class tests as part of this. Several other little changes. The four lines still not covered are the bodies of if ok: start = last if wrapped and

[issue14191] argparse doesn't allow optionals within positionals

2013-08-24 Thread paul j3
Changes by paul j3 : Added file: http://bugs.python.org/file29880/mixed.patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue14191] argparse doesn't allow optionals within positionals

2013-08-24 Thread paul j3
paul j3 added the comment: Above in http://bugs.python.org/issue14191#msg187051 I proposed a patch that is quite close to bethard's patch in http://bugs.python.org/issue15112#msg166173 Both modify the same place, doing the same (pop items off arg_counts). The logic is a little different. I'd

[issue18826] reversed() requires a sequence - Could work on any iterator?

2013-08-24 Thread Madison May
Madison May added the comment: Reversed doesn't make sense for all iterables. >>> a = set([1, 2, 3]) >>> a = iter(a) # No error >>> a = reversed(a) # Not typically desirable The point is that not all iterables are necessarily ordered. And a reversed function shouldn't operate on unordered ty

[issue16611] Cookie.py does not parse httponly or secure cookie flags

2013-08-24 Thread Julien Phalip
Julien Phalip added the comment: Thanks for the clarification, that makes perfect sense! -- ___ Python tracker ___ ___ Python-bugs-lis

[issue16611] Cookie.py does not parse httponly or secure cookie flags

2013-08-24 Thread R. David Murray
R. David Murray added the comment: I think a fully logical fix could be implemented for 3.4 (after I commit this), because as you say it is *unlikely* that anyone is relying on the behaviors mentioned as "backward compatibility issues" in the added tests. However, it is *possible* someone is

[issue16611] Cookie.py does not parse httponly or secure cookie flags

2013-08-24 Thread Julien Phalip
Julien Phalip added the comment: Thanks for the review and new patch, David! Your approach makes sense and the patch looks good to me. However, regarding backwards-compatibility, is that really a concern? Currently the deserialization process systematically 1) Adds the 'httponly' and 'secure'

[issue17741] event-driven XML parser

2013-08-24 Thread Eli Bendersky
Eli Bendersky added the comment: I like the idea of having .events() in a special target passed to a XMLParser, which already has feed() and close(). I read through Stefan's proposal and there are a couple of issues I wanted to raise: 1. Why have the "event builder" wrap a tree builder? Can't

[issue18807] Allow venv to create copies, even when symlinks are supported

2013-08-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset ffb01a6c0960 by Vinay Sajip in branch 'default': Closes #18807: pyvenv now takes a --copies argument allowing copies instead of symlinks even where symlinks are available and the default. http://hg.python.org/cpython/rev/ffb01a6c0960 -- nos

[issue8106] SSL session management

2013-08-24 Thread Donald Stufft
Changes by Donald Stufft : -- nosy: +dstufft ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue16113] Add SHA-3 (Keccak) support

2013-08-24 Thread Donald Stufft
Changes by Donald Stufft : -- nosy: +dstufft ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue13655] Python SSL stack doesn't have a default CA Store

2013-08-24 Thread Donald Stufft
Changes by Donald Stufft : -- nosy: +dstufft ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue8813] SSLContext doesn't support loading a CRL

2013-08-24 Thread Donald Stufft
Changes by Donald Stufft : -- nosy: +dstufft ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue18643] implement socketpair() on Windows

2013-08-24 Thread Charles-François Natali
Charles-François Natali added the comment: > self.assertEqual(sock.family, socket.AF_UNIX) > AssertionError: 2 != 1 This is normal. == > FAIL: test_sendall_interrupted (test.test_socket.GeneralModuleTests) > ---

[issue18454] distutils crashes when uploading to PyPI having only the username (no pw) defined

2013-08-24 Thread Donald Stufft
Changes by Donald Stufft : -- nosy: +dstufft ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue14518] Add bcrypt $2a$ to crypt.py

2013-08-24 Thread Donald Stufft
Changes by Donald Stufft : -- nosy: +dstufft ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue18233] SSLSocket.getpeercertchain()

2013-08-24 Thread Donald Stufft
Changes by Donald Stufft : -- nosy: +dstufft ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue9146] Segfault in hashlib in OpenSSL FIPS mode using non-FIPS-compliant hashes, if "ssl" imported before "hashlib"

2013-08-24 Thread Donald Stufft
Changes by Donald Stufft : -- nosy: +dstufft ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue17128] OS X system openssl deprecated - installer should build local libssl

2013-08-24 Thread Donald Stufft
Changes by Donald Stufft : -- nosy: +dstufft ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue18827] mistake in the timedelta.total_seconds docstring

2013-08-24 Thread Alexander Schier
Alexander Schier added the comment: Err, sorry my fault. Too late in the evening ;). I saw the division by one million, but not the multiplation by one million before. Additionally i was confused, because i expected that seconds are added to each other in the parenthesis. closing. --

[issue18582] PBKDF2 support

2013-08-24 Thread Donald Stufft
Changes by Donald Stufft : -- nosy: +dstufft ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue17134] Use Windows' certificate store for CA certs

2013-08-24 Thread Donald Stufft
Changes by Donald Stufft : -- nosy: +dstufft ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue18827] mistake in the timedelta.total_seconds docstring

2013-08-24 Thread Tim Peters
Tim Peters added the comment: The docs look correct to me. For example, >>> from datetime import * >>> td = datetime.now() - datetime(1,1,1) >>> td datetime.timedelta(735103, 61756, 484000) >>> td.total_seconds() 63512960956.484 ^

[issue18827] mistake in the timedelta.total_seconds docstring

2013-08-24 Thread Alexander Schier
New submission from Alexander Schier: > Return the total number of seconds contained in the duration. Equivalent to > (td.microseconds + (td.seconds + td.days * 24 * 3600) * 10**6) / 10**6 > computed with true division enabled. Should be > Return the total number of seconds contained in the du

[issue15112] argparse: nargs='*' positional argument doesn't accept any items if preceded by an option and another positional

2013-08-24 Thread paul j3
Changes by paul j3 : -- nosy: +paul.j3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue16853] add a Selector to the select module

2013-08-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > Didn't you forget to upload it? > > I wanted to have answer to my questions first :-): Ah, indeed, sorry! > 1) In the documentation, I don't know how to best refer to files > object registered: is "file descriptor" OK, or is it too low-level? > Otherwise I

[issue16853] add a Selector to the select module

2013-08-24 Thread Charles-François Natali
Charles-François Natali added the comment: > Didn't you forget to upload it? I wanted to have answer to my questions first :-): > Before I post it for final review, I have three more questions: -- ___ Python tracker

[issue18664] occasional test_threading failure

2013-08-24 Thread STINNER Victor
STINNER Victor added the comment: See also issue #18746. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue18746] test_threading.test_finalize_with_trace() fails on FreeBSD buildbot

2013-08-24 Thread STINNER Victor
STINNER Victor added the comment: It may be related to #18408 (changeset 5bd9db528aed) and #18664. -- ___ Python tracker ___ ___ Pytho

[issue18756] os.urandom() fails under high load

2013-08-24 Thread Donald Stufft
Donald Stufft added the comment: Lazily opening urandom and holding it open sounds like a sane thing to do to me +1 -- ___ Python tracker ___ ___

[issue18756] os.urandom() fails under high load

2013-08-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: So, to come back to the original topic, is everyone sold on the idea of caching the urandom fd lazily? -- ___ Python tracker ___ __

[issue18826] reversed() requires a sequence - Could work on any iterator?

2013-08-24 Thread Donald Stufft
Donald Stufft added the comment: As an additional note this works how I would expect it to work if you're using sorted() instead of reversed() which I think is a stronger point in the favor of making reversed() work this way as well. >>> sorted(x for x in [1, 2, 3]) [1, 2, 3] --

[issue16853] add a Selector to the select module

2013-08-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Alright, I've updated the patch to have a distinct selectors module, > and with Guido's comments. Didn't you forget to upload it? -- ___ Python tracker _

[issue18826] reversed() requires a sequence - Could work on any iterator?

2013-08-24 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue18772] Fix gdb plugin for new sets dummy object

2013-08-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, it should be ok now (at least now the test passes here). -- stage: patch review -> committed/rejected status: open -> closed ___ Python tracker __

[issue18826] reversed() requires a sequence - Could work on any iterator?

2013-08-24 Thread Donald Stufft
New submission from Donald Stufft: I noticed today that the builtin reversed() requires an explicit sequence and won't work with an iterator instead it throws a TypeError like: >>> reversed(x for x in [1, 2, 3]) TypeError: argument to reversed() must be a sequence It would be really great if r

[issue18772] Fix gdb plugin for new sets dummy object

2013-08-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2f1bac39565a by Antoine Pitrou in branch 'default': Issue #18772: fix the gdb plugin after the set implementation changes http://hg.python.org/cpython/rev/2f1bac39565a -- ___ Python tracker

[issue18772] Fix gdb plugin for new sets dummy object

2013-08-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Since nobody seems to object to the patch, I'm commit it :) -- ___ Python tracker ___ ___ Python-bug

[issue18756] os.urandom() fails under high load

2013-08-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, the tiger should feel better now :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue18756] os.urandom() fails under high load

2013-08-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset b9e62929460e by Antoine Pitrou in branch '3.3': Issue #18756: make test_urandom_failure more robust by executing its code in a subprocess http://hg.python.org/cpython/rev/b9e62929460e New changeset 68ff013b194c by Antoine Pitrou in branch 'default'

[issue18808] Thread.join returns before PyThreadState is destroyed

2013-08-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch to remove the race condition. The patch is sufficiently delicate that I'd rather reserve this for 3.4, though. -- nosy: +neologix Added file: http://bugs.python.org/file31455/threadstate_join.patch __

[issue18756] os.urandom() fails under high load

2013-08-24 Thread Charles-François Natali
Charles-François Natali added the comment: Or more precisely, just run the test in a subprocess. That should fix the OS X failure if we don't restore the RLIMIT_NOFILE limits, and will make the test more robust (but you can't reuse the new test, since it won't work with lazy-opening). --

[issue18756] os.urandom() fails under high load

2013-08-24 Thread Charles-François Natali
Charles-François Natali added the comment: > New changeset fe949918616c by Antoine Pitrou in branch 'default': > Issue #18756: Improve error reporting in os.urandom() when the failure is due > to something else than /dev/urandom not existing. > http://hg.python.org/cpython/rev/fe949918616c Anto

[issue18803] Fix more typos in .py files

2013-08-24 Thread Févry Thibault
Févry Thibault added the comment: Ezio : Yes, I was just following Reddy's advice from another bug report (issue 18466) Terry : Yes, looks like I was tired while doing that... Should be fixed in the updated patch -- Added file: http://bugs.python.org/file31454/more_typos.diff _

[issue17400] ipaddress should make it easy to identify rfc6598 addresses

2013-08-24 Thread Nick Coghlan
Nick Coghlan added the comment: Reopening this - rewording the issue title to cover the problem to be solved (i.e. accounting for RFC 6598 addresses) rather than a specific solution (which isn't appropriate, since the RFC *explicitly* states that shared addresses and private addresses aren't t

[issue18538] `python -m dis ` should use argparse

2013-08-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 59f98b96607e by Nick Coghlan in branch 'default': Close #18538: ``python -m dis`` now uses argparse. http://hg.python.org/cpython/rev/59f98b96607e -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status: open -> close

[issue17741] event-driven XML parser

2013-08-24 Thread Nick Coghlan
Nick Coghlan added the comment: Reopening this as per discussion on python-dev. I haven't reverted anything at this point, as subsequent changes mean a simple "hg backout" is no longer sufficient. -- resolution: fixed -> stage: committed/rejected -> needs patch status: closed -> open

[issue18643] implement socketpair() on Windows

2013-08-24 Thread STINNER Victor
STINNER Victor added the comment: > Do you see other failures? I applied your patch and I just replace the hasattr with: hasattr(_socket, "Xsocketpair"). test_socket failures: == FAIL: test_sendall_interrupted (test.test_socket

[issue18808] Thread.join returns before PyThreadState is destroyed

2013-08-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, that's a good point. It does bring in line subinterpreters with the main interpreter when it comes to automatically joining non-daemon threads, but it doesn't solve the race condition you talked about. I forgot a bit too fast about it :-) -- __

[issue18808] Thread.join returns before PyThreadState is destroyed

2013-08-24 Thread Tamas K
Tamas K added the comment: After a quick glance, I can't see how this patch would fix the problem. It still depends on threading's Thread.join, which is affected by the race condition in __bootstrap_inner. We already did a Thread.join before calling Py_EndInterpreter and still got bitten by t

[issue16853] add a Selector to the select module

2013-08-24 Thread Charles-François Natali
Charles-François Natali added the comment: Alright, I've updated the patch to have a distinct selectors module, and with Guido's comments. Before I post it for final review, I have three more questions: 1) In the documentation, I don't know how to best refer to files object registered: is "file

[issue14019] Unify tests for str.format and string.Formatter

2013-08-24 Thread Francisco Freire
Francisco Freire added the comment: Thanks for the review. I corrected some issues in my code. Here is the new patch. -- Added file: http://bugs.python.org/file31453/mywork2.patch ___ Python tracker __

[issue18825] Making msg optional on logging.exception() and similar variants

2013-08-24 Thread Sworddragon
New submission from Sworddragon: For logging.exception() and similar variants the msg argument must be passed but on a formation the LogRecord "message" is not mandatory. In this case wouldn't it be better to make the msg argument optional? At default it could be None or ''. -- compon

[issue18824] Adding LogRecord attribute "traceback"

2013-08-24 Thread Sworddragon
New submission from Sworddragon: On configuring a logger with logging.basicConfig() and using logging.exception() the traceback is always written implicitly to the end. This makes it not possible to create a formation that writes something beyond the traceback. For example it could be somethin

[issue18643] implement socketpair() on Windows

2013-08-24 Thread Charles-François Natali
Charles-François Natali added the comment: > On Linux, many tests of test_socket are failing with the pure Python > implementation. The only failing tests I see are due to the fact that the Python implementation uses AF_INET instead of AF_UNIX, which is normal since Windows doesn't have AF_UNIX.

[issue18643] implement socketpair() on Windows

2013-08-24 Thread STINNER Victor
STINNER Victor added the comment: On Linux, many tests of test_socket are failing with the pure Python implementation. -- ___ Python tracker ___

[issue18538] `python -m dis ` should use argparse

2013-08-24 Thread Michele Orrù
Michele Orrù added the comment: Ping. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue18643] implement socketpair() on Windows

2013-08-24 Thread Charles-François Natali
Charles-François Natali added the comment: Here's a patch. Note that I'm still not sure whether it belong to the socket module or test.support. -- keywords: +needs review, patch stage: needs patch -> patch review versions: +Python 3.4 Added file: http://bugs.python.org/file31452/socket

[issue17410] Generator-based HTMLParser

2013-08-24 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +scoder ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue14191] argparse doesn't allow optionals within positionals

2013-08-24 Thread Martin Panter
Martin Panter added the comment: It sounds like this bug might cover Issue 15112, which is only concerned with options between different positional parameters. -- nosy: +vadmium ___ Python tracker

[issue15112] argparse: nargs='*' positional argument doesn't accept any items if preceded by an option and another positional

2013-08-24 Thread Martin Panter
Martin Panter added the comment: I was surprised to discover that “option straddling” doesn’t work this way with nargs="*". It seems to work fine with most other kinds of positional arguments I have tried, and I imagine that this was by design rather than accident. Many Gnu CLI programs also t