[issue27298] redundant iteration over digits in _PyLong_AsUnsignedLongMask

2017-03-02 Thread Oren Milman
Oren Milman added the comment: I created a pull request (https://github.com/python/cpython/pull/392) to fix the mistakes in _testcapimodule, but didn't mention this issue in the pull request's title, as the issue mentioned these mistakes only as a side note. --

[issue27298] redundant iteration over digits in _PyLong_AsUnsignedLongMask

2017-03-02 Thread Oren Milman
Changes by Oren Milman : -- pull_requests: +323 ___ Python tracker ___ ___ Python-bugs-list

[issue24665] CJK support for textwrap

2017-03-02 Thread INADA Naoki
INADA Naoki added the comment: See also http://www.unicode.org/reports/tr29/ http://www.unicode.org/reports/tr14/ -- ___ Python tracker ___

[issue29691] Some tests fail in coverage Travis check

2017-03-02 Thread Jelle Zijlstra
New submission from Jelle Zijlstra: A few tests fail in the coverage Travis target (see e.g. https://travis-ci.org/python/cpython/jobs/206480468): test_traceback and test_xml_etree. I extracted the actual failures by running in verbose mode locally:

[issue28272] a redundant check in maybe_small_long

2017-03-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Try to bench list(range(256)). It should create small ints in tight loop. -- nosy: +serhiy.storchaka ___ Python tracker

Re: Manual parameter substitution in sqlite3

2017-03-02 Thread Christian Gollwitzer
Am 28.02.17 um 18:28 schrieb Skip Montanaro: Most of the time (well, all the time if you're smart), you let the database adapter do parameter substitution for you to avoid SQL injection attacks (or stupid users). So: curs.execute("select * from mumble where key = ?", (key,)) If you want to

[issue28261] wrong error messages when using PyArg_ParseTuple to parse normal tuples

2017-03-02 Thread STINNER Victor
STINNER Victor added the comment: I dislike passing a error message in the function name. I suggest to instead raise a new exception with a better error message and chain it with the previous exception. -- nosy: +haypo ___ Python tracker

[issue27298] redundant iteration over digits in _PyLong_AsUnsignedLongMask

2017-03-02 Thread STINNER Victor
STINNER Victor added the comment: Ok, thanks. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue29666] Issue in enum documentation

2017-03-02 Thread STINNER Victor
Changes by STINNER Victor : -- versions: +Python 3.6 ___ Python tracker ___ ___

[issue29666] Issue in enum documentation

2017-03-02 Thread STINNER Victor
STINNER Victor added the comment: Doc has been fixed in Python 3.6 and 3.7. Thanks! -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue29666] Issue in enum documentation

2017-03-02 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +325 ___ Python tracker ___ ___

[issue28272] a redundant check in maybe_small_long

2017-03-02 Thread STINNER Victor
STINNER Victor added the comment: > Try to bench list(range(256)). It should create small ints in tight loop. This expression doesn't call maybe_small_long(). -- ___ Python tracker

[issue27298] redundant iteration over digits in _PyLong_AsUnsignedLongMask

2017-03-02 Thread STINNER Victor
STINNER Victor added the comment: > To sum it up, my patch degrades performance for ints smaller than > (approximately) 10 ** 150, and improves performance for bigger ints. IMHO Python language mostly handles integers smaller than 1 million, so the optimization is not a good idea :-) I had

[issue29176] /tmp does not exist on Android and is used by curses.window.putwin()

2017-03-02 Thread STINNER Victor
STINNER Victor added the comment: me: "I change the issue type to security" I'm not sure anymore that the change is really related to security. I don't think that replacing mkstemp("/tmp/py.curses.putwin.XX") with tmpfile() has an impact on security. So I don't think that it's worth it to

[issue28272] a redundant check in maybe_small_long

2017-03-02 Thread STINNER Victor
STINNER Victor added the comment: issue28272_ver1.diff LGTM. Mark Dickinson: "The extra check in maybe_small_long does have a value in (...) safety with respect to future maintenance," "assert(v != NULL);" has the same purpose. I think that it's ok to require that maybe_small_long() isn't

[issue29176] /tmp does not exist on Android and is used by curses.window.putwin()

2017-03-02 Thread STINNER Victor
STINNER Victor added the comment: Xavier de Gaye, Chi Hsuan Yen: I just merged Christian Heimes's PR. So the function should now work on Android. Can you double check that it works? Is it worth it to backport the change to Python 3.6? Do you plan to try to have a full Android support in

[issue27298] redundant iteration over digits in _PyLong_AsUnsignedLongMask

2017-03-02 Thread Oren Milman
Oren Milman added the comment: the pull request was merged, so I guess we can close this issue.. -- ___ Python tracker ___

Re: Manual parameter substitution in sqlite3

2017-03-02 Thread Tim Chase
On 2017-03-02 09:55, Christian Gollwitzer wrote: > you could do it "the (theoretical) right way", which is using > another table. Insert your keys into a table, maybe temporary one, > and then do > > select * from mumble where key in (select key from keytable) > > In theory that should also be

[issue29690] no %z directive for strptime in python2, doc says nothing about it

2017-03-02 Thread R. David Murray
R. David Murray added the comment: This almost qualifies as a FAQ :) In 2.7 (and in 3.x, though we've added some additional platform independent stuff there), strptime supports what the platform supports, and this is documented: "The following is a list of all the format codes that the C

Re: asyncio does not always show the full traceback

2017-03-02 Thread Frank Millman
"INADA Naoki" wrote in message news:caefz+tyudwjesyttqzg2_romphmjrxqaga2ulgfqv5qbpii...@mail.gmail.com... I can't reproduce it on Linux. Maybe, it's windows specific bug? import asyncio from itertools import count async def aenumerate(aiterable): counter = count() async for x in

Re: asyncio does not always show the full traceback

2017-03-02 Thread Frank Millman
"Frank Millman" wrote in message news:o994og$84k$1...@blaine.gmane.org... If I place '1/0' in main(), this is the traceback - Traceback (most recent call last): File "test_db1a.py", line 25, in loop.run_until_complete(main()) File "/usr/local/lib/python3.6/asyncio/base_events.py",

[issue29693] DeprecationWarning/SyntaxError in test_import

2017-03-02 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: $ ./python -Wa -m test.regrtest test_import Run tests sequentially 0:00:00 [1/1] test_import /home/serhiy/py/cpython/Lib/test/test_import/__init__.py:88: DeprecationWarning: invalid escape sequence \( self.assertRegex(str(cm.exception), "cannot import

[issue29694] race condition in pathlib mkdir with flags parents=True

2017-03-02 Thread whitespacer
New submission from whitespacer: When pathlib mkdir is called with parents=True and some parent doesn't exists it recursively calls self.parent.mkdir(parents=True) after catching OSError. However after catching of OSError and before call to self.parent.mkdir(parents=True) somebody else can

Re: asyncio does not always show the full traceback

2017-03-02 Thread INADA Naoki
I can't reproduce it on Linux. Maybe, it's windows specific bug? On Wed, Mar 1, 2017 at 11:25 PM, Frank Millman wrote: > "Frank Millman" wrote in message news:o93vs2$smi$1...@blaine.gmane.org... >> >> >> I use asyncio in my project, so most of my functions start with 'async'

Re: asyncio does not always show the full traceback

2017-03-02 Thread INADA Naoki
Could you use 3.6.0 instead of b4? I added 1/0 at: ... async def main(): 1/0 await aenum() ... then: $ pyenv/versions/3.6.0/bin/python3 -VV Python 3.6.0 (default, Jan 16 2017, 19:41:10) [GCC 6.2.0 20161005] $ pyenv/versions/3.6.0/bin/python3 a.py Traceback (most recent call last):

Re: asyncio does not always show the full traceback

2017-03-02 Thread Chris Angelico
On Thu, Mar 2, 2017 at 11:55 PM, Frank Millman wrote: > If I place '1/0' in main(), this is the traceback - > > Traceback (most recent call last): > File "test_db1a.py", line 25, in >loop.run_until_complete(main()) > File

[issue29695] Weird keyword parameter names in builtins

2017-03-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file46685/deprecate-keyword-sequence.patch ___ Python tracker ___

[issue29695] Weird keyword parameter names in builtins

2017-03-02 Thread R. David Murray
R. David Murray added the comment: I don't think we should do it without deprecation, since it could break working code. But it certainly sounds like a marginal case: I doubt there is *much* code that uses the existing keyword names. -- nosy: +r.david.murray

[issue29697] Wrong ECDH configuration with OpenSSL 1.1

2017-03-02 Thread Donald Stufft
Changes by Donald Stufft : -- pull_requests: +330 ___ Python tracker ___ ___

[issue29698] _collectionsmodule.c: Replace `n++; while (--n)` with `for (; n; --n)`

2017-03-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> rhettinger components: +Extension Modules -Interpreter Core nosy: +rhettinger, serhiy.storchaka stage: -> patch review versions: -Python 3.6 ___ Python tracker

[issue29698] _collectionsmodule.c: Replace `n++; while (--n)` with `for (; n; --n)`

2017-03-02 Thread STINNER Victor
STINNER Victor added the comment: Oh, a little bit more context: Raymond Hettinger is the maintainer of _collectionsmodule.c and spent a lot of time to optimize this file! -- ___ Python tracker

[issue29697] Wrong ECDH configuration with OpenSSL 1.1

2017-03-02 Thread Donald Stufft
Changes by Donald Stufft : -- pull_requests: +328 ___ Python tracker ___ ___

[issue29695] Weird keyword parameter names in builtins

2017-03-02 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___

[issue29697] Wrong ECDH configuration with OpenSSL 1.1

2017-03-02 Thread Christian Heimes
New submission from Christian Heimes: I think I made a mistake during the port to OpenSSL 1.1.x. defined(OPENSSL_VERSION_1_1) is on the wrong ifndef block. -- Old code #ifndef OPENSSL_NO_ECDH /* Allow automatic ECDH curve

[issue29678] email.Message.get_params decodes only first one header value

2017-03-02 Thread R. David Murray
R. David Murray added the comment: Thanks for the response, but I do not believe that this is a bug. The python3 email package will decode the headers automatically if you use the new policies, so if you iterate through the headers, you'll get the decoded versions, with access to the parms

[issue29698] _collectionsmodule.c: Replace `n++; while (--n)` with `for (; n; --n)`

2017-03-02 Thread STINNER Victor
STINNER Victor added the comment: > Yes, I have open a PR just to improve the readability, because I was > surprised by this incrementing-decrementing statements like you. Honestly, I don't really care of the exact syntax of C loops in _collectionmodule.c. But if your patch is rejected (right

[issue29697] Wrong ECDH configuration with OpenSSL 1.1

2017-03-02 Thread Christian Heimes
Christian Heimes added the comment: The bug report was too much of a "memo to me" brain dump. Let me clarify. For OpenSSL 1.0.2 we can call SSL_CTX_set_ecdh_auto() to enable ECDH curves. For OpenSSL < 1.0.2 it was necessary to configure a curve with SSL_CTX_set_tmp_ecdh(). OpenSSL >= 1.1.0

[issue29697] Wrong ECDH configuration with OpenSSL 1.1

2017-03-02 Thread Donald Stufft
Changes by Donald Stufft : -- pull_requests: +331 ___ Python tracker ___ ___

Re: asyncio does not always show the full traceback

2017-03-02 Thread INADA Naoki
> For completeness, if I place '1/0' in aenum(), I get exactly the same > traceback as the first one above. > I can't reproduce it too. Did you 3.6.0 this time? Or did you used 3.6b4 again? Please don't use beta when asking question or reporting bug. --

Re: asyncio does not always show the full traceback

2017-03-02 Thread INADA Naoki
FYI, you can easily find this changelog of Python 3.6rc1: - bpo-28843: Fix asyncio C Task to handle exceptions __traceback__. See also: https://bugs.python.org/issue28843 On Fri, Mar 3, 2017 at 1:11 AM, INADA Naoki wrote: >> For completeness, if I place '1/0' in

[issue29697] Wrong ECDH configuration with OpenSSL 1.1

2017-03-02 Thread Donald Stufft
Changes by Donald Stufft : -- pull_requests: +327 ___ Python tracker ___ ___

[issue29698] _collectionsmodule.c: Replace `n++; while (--n)` with `for (; n; --n)`

2017-03-02 Thread Nikita Kniazev
Nikita Kniazev added the comment: > The purpose of the issue is unclear to me. I was asked to open an issue by Serhiy Storchaka on the GitHub PR. > Why do you want to replace while with for? For readability? Yes, I have open a PR just to improve the readability, because I was surprised by

spam issue

2017-03-02 Thread Andrew Zyman
Why is this group have such an obscene number of spam posts ? I'm subscribed to a few other google groups and this is the only one that has this issue. -- https://mail.python.org/mailman/listinfo/python-list

Re: list of the lists - append after search

2017-03-02 Thread Peter Otten
Andrew Zyman wrote: > Hello, > please advise. > > I'd like search and append the internal list in the list-of-the-lists. > > Example: > ll =[ [a,1], [b,2], [c,3], [blah, 1000] ] > > i want to search for the internal [] based on the string field and, if > matches, append that list with a

[issue29698] _collectionsmodule.c: Replace `n++; while (--n)` with `for (; n; --n)`

2017-03-02 Thread Nikita Kniazev
New submission from Nikita Kniazev: I have failed to find previous discussion when `while (n--)` was changed to `n++; while (--n)`. (commits 306d6b1ea6bf2582b9284be2fd27275abbade3e1, 165eee214bc388eb588db33385ca49ddbb305565) It is clear for me that n++; while (--n) and for (; n; --n) are

[issue29698] _collectionsmodule.c: Replace `n++; while (--n)` with `for (; n; --n)`

2017-03-02 Thread STINNER Victor
STINNER Victor added the comment: The purpose of the issue is unclear to me. Why do you want to replace while with for? For readability? I agree that "n++; while (--n) ..." is surprising. It seems strange to start with a "n++" to decrement it in the next instruction :-) It's also unusual to

[issue29693] DeprecationWarning/SyntaxError in test_import

2017-03-02 Thread Brett Cannon
Brett Cannon added the comment: Looks like the 'r' prefix is missing on the regex string. Marking this as "easy" if someone wants to try and solve this. And FYI I double-checked that this is only in 3.7. -- keywords: +easy ___ Python tracker

dnspython update dns record issue

2017-03-02 Thread stamnik
I'm trying to use dnspython to do a TSIG based dynamic DNS update. I've followed the example code : #!/usr/bin/env python import sys import dns.update import dns.query import dns.tsigkeyring keyring = dns.tsigkeyring.from_text({ 'keyname.' : 'VarFF=2Xts7T5Vb/xd&8ir==' }) update =

[issue27200] make doctest in CPython has failures

2017-03-02 Thread Marco Buttu
Changes by Marco Buttu : -- pull_requests: +332 ___ Python tracker ___ ___

[issue29700] readline memory corruption when sys.stdin fd >= FD_SETSIZE for select()

2017-03-02 Thread Martin Panter
Martin Panter added the comment: Be careful, some OSes have limited support for “poll”, “kqueue”, etc with terminals, and I ended up using “select” in the test suite: https://bugs.python.org/issue26870#msg265604 https://github.com/python/cpython/commit/79f561d126d09d6d7ea1457a2a6ef267d93e6448

[issue29683] _PyCode_SetExtra behaviour wrong on allocation failure and after realloc

2017-03-02 Thread Brian Coleman
Changes by Brian Coleman : -- pull_requests: +333 ___ Python tracker ___ ___

[issue29703] Fix asyncio to support instantiation of new event loops in subprocesses

2017-03-02 Thread Yury Selivanov
New submission from Yury Selivanov: Proxy for https://github.com/python/asyncio/pull/497 Ned, this needs to be in 3.6.1, working code from 3.4 doesn't work in 3.6.0: http://stackoverflow.com/questions/42546099/python-asyncio-migrate-from-3-4-to-3-5/42566336#42566336 -- assignee:

[issue29703] Fix asyncio to support instantiation of new event loops in subprocesses

2017-03-02 Thread Yury Selivanov
Yury Selivanov added the comment: > OK. I assume you will make PRs for python/cpython and cherry-pack to the 3.6 > and 3.5 branches? Yes, working on it! -- ___ Python tracker

[issue29703] Fix asyncio to support instantiation of new event loops in subprocesses

2017-03-02 Thread Ned Deily
Ned Deily added the comment: OK. I assume you will make PRs for python/cpython and cherry-pack to the 3.6 and 3.5 branches? -- ___ Python tracker ___

[issue29271] Task.current_task(None) returns unexpected result

2017-03-02 Thread Yury Selivanov
Changes by Yury Selivanov : -- pull_requests: +338 ___ Python tracker ___ ___

[issue29703] Fix asyncio to support instantiation of new event loops in subprocesses

2017-03-02 Thread Yury Selivanov
Changes by Yury Selivanov : -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue29703] Fix asyncio to support instantiation of new event loops in subprocesses

2017-03-02 Thread Yury Selivanov
Changes by Yury Selivanov : -- pull_requests: +336 ___ Python tracker ___ ___

[issue29701] Add close method to queue.Queue

2017-03-02 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___

[issue29703] Fix asyncio to support instantiation of new event loops in subprocesses

2017-03-02 Thread Yury Selivanov
Changes by Yury Selivanov : -- components: +asyncio nosy: +gvanrossum resolution: fixed -> status: closed -> open ___ Python tracker

[issue28129] assertion failures in ctypes

2017-03-02 Thread Christian Heimes
Changes by Christian Heimes : -- pull_requests: +335 ___ Python tracker ___ ___

[issue29698] _collectionsmodule.c: Replace `n++; while (--n)` with `for (; n; --n)`

2017-03-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sorry, but I'm going to keep the code as-is. To mine eyes (the maintainer), the while-loop better expresses my intention (a decrement-skip-on-zero step). On at least one compiler (GCC-6), it allows better code to generated (a sub-and-test instead of a

[issue29703] Fix asyncio to support instantiation of new event loops in subprocesses

2017-03-02 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___

[issue29704] Can't read data from Transport after asyncio.SubprocessStreamProtocol closes

2017-03-02 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___

[issue29683] _PyCode_SetExtra behaviour wrong on allocation failure and after realloc

2017-03-02 Thread Brian Coleman
Brian Coleman added the comment: I have created a pull request to backport the fix onto 3.6 here: https://github.com/python/cpython/pull/402 -- ___ Python tracker

[issue29702] Error 0x80070003: Failed to launch elevated child process

2017-03-02 Thread Armen Levonian
New submission from Armen Levonian: For some reason, after uninstalling Python 3.5.2 on my Windows 10 (64 bit - latest version), I am no longer able to install any new version of Python after version 3.4.3 I keep getting the failure to elevate privileges. I have of course tried to run the

[issue29704] Can't read data from Transport after asyncio.SubprocessStreamProtocol closes

2017-03-02 Thread Seth Michael Larson
New submission from Seth Michael Larson: Copied from https://github.com/python/asyncio/issues/484 """ >From https://bugs.python.org/issue23242#msg284930 The following script is used to reproduce the bug: import asyncio async def execute(): process = await asyncio.create_subprocess_exec(

[issue29704] Can't read data from Transport after asyncio.SubprocessStreamProtocol closes

2017-03-02 Thread Seth Michael Larson
Changes by Seth Michael Larson : -- components: +asyncio nosy: +gvanrossum type: -> behavior ___ Python tracker ___

Re: list of the lists - append after search

2017-03-02 Thread Peter Otten
Andrew Zyman wrote: > On Thursday, March 2, 2017 at 11:27:34 AM UTC-5, Peter Otten wrote: >> Andrew Zyman wrote: >> . >> . >> > End result: >> > ll =[ [a,1], [b,2], [c,3], [blah, 1000, 'new value'] ] >> >> >>> outer = [["a", 1], ["b", 2], ["c", 3], ["blah", 1000]] >> >>> for inner in

[issue29700] readline memory corruption when sys.stdin fd >= FD_SETSIZE for select()

2017-03-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: Bummer. I wish select could die. :) On Thu, Mar 2, 2017, 1:06 PM Martin Panter wrote: > > Martin Panter added the comment: > > Be careful, some OSes have limited support for “poll”, “kqueue”, etc with > terminals, and I ended up

[issue29696] Use namedtuple in string.Formatter.parse iterator response

2017-03-02 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith title: Use namedtuple in Formatter.parse iterator response -> Use namedtuple in string.Formatter.parse iterator response ___ Python tracker

Re: spam issue

2017-03-02 Thread Cholo Lennon
On 02/03/17 13:08, Andrew Zyman wrote: Why is this group have such an obscene number of spam posts ? I'm subscribed to a few other google groups and this is the only one that has this issue. Google groups act like a "web frontend" for nntp protocol (on which this group is based). I suppose

Re: spam issue

2017-03-02 Thread Andrew Zyman
On Thursday, March 2, 2017 at 1:39:54 PM UTC-5, Chris Angelico wrote: > On Fri, Mar 3, 2017 at 5:31 AM, Cholo Lennon wrote: > > Google groups act like a "web frontend" for nntp protocol (on which this > > group is based). I suppose Google doesn't filter spam messages in

[issue22810] tkinter: "alloc: invalid block:" after askopenfilename

2017-03-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks Todd. I ran crash.py on Win10 64 bit, stock PSF 3.6.0 (no anaconda). Put cursor after 2 and hit '0'. Same error, different numbers. alloc: invalid block: 02C8928640D0: 40 93 Followed by Windows' "Python has stopped working" box. Cursor after the

[issue29700] readline memory corruption when sys.stdin fd >= FD_SETSIZE for select()

2017-03-02 Thread Gregory P. Smith
New submission from Gregory P. Smith: The readline module causes memory corruption (sometimes a crash) when the sys.stdin file descriptor is out of bounds for its FD_SET() call within readline.c's readline_until_enter_or_signal() function.

Re: spam issue

2017-03-02 Thread breamoreboy
On Thursday, March 2, 2017 at 4:08:44 PM UTC, Andrew Zyman wrote: > Why is this group have such an obscene number of spam posts ? > I'm subscribed to a few other google groups and this is the only one that has > this issue. The bulk having lots of block capitals and in Italian? Been happening

[issue22810] tkinter: "alloc: invalid block:" after askopenfilename

2017-03-02 Thread Todd Goldfinger
Todd Goldfinger added the comment: >> cursor after the '6' follows by '0' The max is 21. See 'to' parameter. I don't know if my code is correct, but it seems to work more or less. Obviously the crash is an issue with tk or Python. -- ___ Python

[issue29688] Document Path.absolute

2017-03-02 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: docs@python -> brett.cannon nosy: +brett.cannon ___ Python tracker ___

Re: Python3.6 a little conundrum

2017-03-02 Thread Chris Angelico
On Fri, Mar 3, 2017 at 6:01 AM, Gilmeh Serda wrote: > After compiling and NOT installing (need to keep the 2.7 around, > undisturbed). > > Just testing something out: > > $ python36 > Python 3.6.0 (default, Mar 1 2017, 22:11:43) > [GCC 4.6.3] on linux > Type

[issue29677] clarify docs about 'round()' accepting a negative integer for ndigits

2017-03-02 Thread Brett Cannon
Changes by Brett Cannon : -- title: 'round()' accepts a negative integer for ndigits -> clarify docs about 'round()' accepting a negative integer for ndigits ___ Python tracker

Re: list of the lists - append after search

2017-03-02 Thread Andrew Zyman
On Thursday, March 2, 2017 at 11:27:34 AM UTC-5, Peter Otten wrote: > Andrew Zyman wrote: > . > . > > End result: > > ll =[ [a,1], [b,2], [c,3], [blah, 1000, 'new value'] ] > > >>> outer = [["a", 1], ["b", 2], ["c", 3], ["blah", 1000]] > >>> for inner in outer: > ... if inner[0] ==

Re: list of the lists - append after search

2017-03-02 Thread Andrew Zyman
On Thursday, March 2, 2017 at 3:31:36 PM UTC-5, Jussi Piitulainen wrote: > Andrew Zyman writes: > > > On Thursday, March 2, 2017 at 2:57:02 PM UTC-5, Jussi Piitulainen wrote: > >> Peter Otten <__pete...@web.de> writes: > >> > >> > Andrew Zyman wrote: > >> > > >> >> On Thursday, March 2, 2017 at

Re: list of the lists - append after search

2017-03-02 Thread Jussi Piitulainen
Peter Otten <__pete...@web.de> writes: > Andrew Zyman wrote: > >> On Thursday, March 2, 2017 at 11:27:34 AM UTC-5, Peter Otten wrote: >>> Andrew Zyman wrote: >>> . >>> . >>> > End result: >>> > ll =[ [a,1], [b,2], [c,3], [blah, 1000, 'new value'] ] >>> >>> >>> outer = [["a", 1], ["b",

[issue29701] Add close method to queue.Queue

2017-03-02 Thread Mathias Fröjdman
New submission from Mathias Fröjdman: queue.Queue should have a close() method. The result of calling the method would be to raise a new exception - queue.Closed, for any subsequent calls to Queue.put, and after the queue is empty, also for Queue.get. Why: To allow producers (callers of

Re: spam issue

2017-03-02 Thread Andrew Zyman
On Thursday, March 2, 2017 at 2:28:04 PM UTC-5, bream...@gmail.com wrote: > On Thursday, March 2, 2017 at 4:08:44 PM UTC, Andrew Zyman wrote: > > Why is this group have such an obscene number of spam posts ? > > I'm subscribed to a few other google groups and this is the only one that > > has

[issue28261] wrong error messages when using PyArg_ParseTuple to parse normal tuples

2017-03-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oren, could you write reproducers for all affected cases? I don't think we need to add them as regular tests, but we should be able to check changes manually. There are conflicts in Modules/itertoolsmodule.c. --

[issue28298] can't set big int-like objects to items in array 'Q', 'L' and 'I'

2017-03-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___

[issue28298] can't set big int-like objects to items in array 'Q', 'L' and 'I'

2017-03-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> patch review ___ Python tracker ___

[issue29571] test_re is failing when local is set for `en_IN`

2017-03-02 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- pull_requests: +352 ___ Python tracker ___ ___

[issue27645] Supporting native backup facility of SQLite

2017-03-02 Thread Anish Shah
Changes by Anish Shah : -- nosy: +anish.shah ___ Python tracker ___ ___

[issue26389] Expand traceback module API to accept just an exception as an argument

2017-03-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Matthias, I will try to respond tomorrow. -- ___ Python tracker ___ ___

[issue20087] Mismatch between glibc and X11 locale.alias

2017-03-02 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- pull_requests: +351 ___ Python tracker ___ ___

Re: list of the lists - append after search

2017-03-02 Thread Jussi Piitulainen
Andrew Zyman writes: > On Thursday, March 2, 2017 at 2:57:02 PM UTC-5, Jussi Piitulainen wrote: >> Peter Otten <__pete...@web.de> writes: >> >> > Andrew Zyman wrote: >> > >> >> On Thursday, March 2, 2017 at 11:27:34 AM UTC-5, Peter Otten wrote: >> >>> Andrew Zyman wrote: >> >>> . >> >>>

[issue28728] test_host_resolution in test_socket fails

2017-03-02 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +343 ___ Python tracker ___ ___ Python-bugs-list

[issue29702] Error 0x80070003: Failed to launch elevated child process

2017-03-02 Thread Eryk Sun
Eryk Sun added the comment: The error message is misleading. It happens that WiX is trying to run an elevated process (see the WiX functions CoreLaunchApprovedExe, CoreElevate, ElevationElevate, and PipeLaunchChildProcess). However, the actual error code has nothing to do with elevation.

[issue29271] Task.current_task(None) returns unexpected result

2017-03-02 Thread Yury Selivanov
Changes by Yury Selivanov : -- pull_requests: +344 ___ Python tracker ___ ___

[issue28893] Make sure exceptions raised in __aiter__ are properly chained in ceval

2017-03-02 Thread Yury Selivanov
Changes by Yury Selivanov : -- pull_requests: +345 ___ Python tracker ___ ___

[issue29706] IDLE needs syntax highlighting for async and await

2017-03-02 Thread David E. Franco G.
New submission from David E. Franco G.: Well, this is pretty self explanatory, when playing with this new features of async and await (https://docs.python.org/3.5/whatsnew/3.5.html#new-features) I found to me surprise that there is no syntax highlighting for it in the IDLE for py3.5 and also

[issue29679] Add @contextlib.asynccontextmanager

2017-03-02 Thread Nick Coghlan
Nick Coghlan added the comment: Something that occurred to me as being a bit tricky to handle here is the backport to contextlib2: that maintains compatibility with 2.6+, so it would need to split any code using "async def" and "await" out to a separate file that only gets imported on 3.5+

[issue29679] Add @contextlib.asynccontextmanager

2017-03-02 Thread Yury Selivanov
Yury Selivanov added the comment: > so it would need to split any code using "async def" and "await" out to a > separate file that only gets imported on 3.5+ (and similarly only run the > corresponding test cases on 3.5+). This seems doable. I'd only vote to keep contextlib.py as one file in

[issue29701] Add close method to queue.Queue

2017-03-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'll mull this one over for a while and take a look at what other languages are doing. My first impression is the close() is the wrong word because in other contexts it means that a resource has been freed and that no more calls are allowed. In this

  1   2   >