[issue34737] Python upgrade with SYSTEM account uninstalls python

2018-09-20 Thread Steve Dower
Steve Dower added the comment: Looking closer at the logs, it's the usual problem of not being able to upgrade a per-user install into an all-users install. If you look at the logs closely, it's *uninstalling* the Just for Me install, not installing it. The best option in this case is to

[issue34011] Default preference not given to venv DLL's

2018-09-20 Thread Steve Dower
Steve Dower added the comment: New changeset f14c28f39766855420dd58d209da4ad847f3030e by Steve Dower in branch 'master': bpo-34011: Fixes missing venv files and other tests (GH-9458) https://github.com/python/cpython/commit/f14c28f39766855420dd58d209da4ad847f3030e --

[issue19756] test_nntplib: sporadic failures, network isses? server down?

2018-09-20 Thread Berker Peksag
Change by Berker Peksag : -- pull_requests: +8875 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33236] MagicMock().__iter__.return_value is different from MagicMock().__iter__()

2018-09-20 Thread Robert
Robert added the comment: According to this chapter ( https://docs.python.org/3/library/unittest.mock.html#unittest.mock.MagicMock ) the specialmethods in MagicMock are different: .return_value is preinitialized with defaultvalues, which depends on the operator. In the case of .__iter__

[issue34458] No way to alternate options

2018-09-20 Thread paul j3
Change by paul j3 : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34479] ArgumentParser subparser error display at the wrong level

2018-09-20 Thread paul j3
Change by paul j3 : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34670] Add set_post_handshake_auth for TLS 1.3

2018-09-20 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +8874 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue30947] Update embeded copy of libexpat from 2.2.1 to 2.2.3

2018-09-20 Thread STINNER Victor
STINNER Victor added the comment: Christian Heimes added the comment: > Victor, the PR for this BPO has introduced XML_POOR_ENTROPY. Neither the > commit message nor the issue explains why. Which platform failed to compile > without XML_POOR_ENTROPY? And, maybe: "Oh, compilation fails on

[issue30947] Update embeded copy of libexpat from 2.2.1 to 2.2.3

2018-09-20 Thread Christian Heimes
Christian Heimes added the comment: Do you remember which platform failed? It doesn't say on the GH PR either. See #34623 for security bug. We only set good salt for pyexpat based parsers (sax, dom, pure Python etree), but not for the C-accelerated ElementTree implementation. --

[issue34730] aclose() doesn't stop raise StopAsyncIteration / GeneratorExit to __anext__()

2018-09-20 Thread Yury Selivanov
Yury Selivanov added the comment: Interesting. Nathaniel, do you have this problem in Trio (aclose() not cancelling an anext()) or cancel scopes solve this problem somehow? -- nosy: +njs ___ Python tracker

[issue34730] aclose() doesn't stop raise StopAsyncIteration / GeneratorExit to __anext__()

2018-09-20 Thread Nathaniel Smith
Nathaniel Smith added the comment: Part of the issue here is the one discussed in bpo-30773 / bpo-32526: async generators allow themselves to be re-entered while another asend/athrow/aclose call is in progress, and it causes weird and confusing results. So at a minimum, trying to call

[issue34730] aclose() doesn't stop raise StopAsyncIteration / GeneratorExit to __anext__()

2018-09-20 Thread Yury Selivanov
Yury Selivanov added the comment: > So I think we just need to fix ag_running and then recommend people find > other ways to interrupt running async generators. Agree. Speaking of fixing ag_running, could you please review my PR: https://github.com/python/cpython/pull/7468 I can then commit

[issue34756] Few changes in sys.breakpointhook()

2018-09-20 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Hi Serhiy. I'm curious whether this is a pure clean up or if there are actual problems you're trying to fix. * I'm okay with using _PyObject_GetBuiltin() but it does bother me in general to use too many non-public (and thus undocumented) APIs. It makes

[issue34757] Placeholder for discussion on Combined patches for AIX - to resolve failig tests

2018-09-20 Thread Michael Felt
Change by Michael Felt : -- keywords: +patch pull_requests: +8873 stage: -> patch review ___ Python tracker ___ ___

[issue19613] test_nntplib: sporadic failures, test_article_head_body()

2018-09-20 Thread Berker Peksag
Berker Peksag added the comment: The test_article_head_body test is now skipped unconditionally: @unittest.skipIf(True, "FIXME: see bpo-32128") I don't think we should close this issue without re-enabling that test. -- nosy: +berker.peksag

[issue19613] test_nntplib: sporadic failures, test_article_head_body()

2018-09-20 Thread STINNER Victor
STINNER Victor added the comment: > I don't think we should close this issue without re-enabling that test. The fact is that nobody cares of test_nntplib: this issue is open for 5 years. I don't see how leaving the issue open which helps. It's fine to skip a test if nobody is available to

[issue32947] Support OpenSSL 1.1.1

2018-09-20 Thread Christian Heimes
Christian Heimes added the comment: Kurt, see #34670 for PHA for server and client side. -- ___ Python tracker ___ ___

[issue34757] Placeholder for discussion on Combined patches for AIX - to resolve failig tests

2018-09-20 Thread Michael Felt
New submission from Michael Felt : One PR to Rule them all :p -- components: Tests messages: 325918 nosy: Michael.Felt priority: normal severity: normal status: open title: Placeholder for discussion on Combined patches for AIX - to resolve failig tests type: behavior versions: Python

[issue34752] warnings.warn fails silently with unicode input

2018-09-20 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19613] test_nntplib: sporadic failures, test_article_head_body()

2018-09-20 Thread Berker Peksag
Berker Peksag added the comment: Well, no one is going to notice it if we close this issue. I don't see why the age of the issue matters here. We close issues when we fix them. It may take 20 minutes, 5 years or a decade. I understand closing an issue as "out of date" when we couldn't find

[issue19756] test_nntplib: sporadic failures, network isses? server down?

2018-09-20 Thread Berker Peksag
Berker Peksag added the comment: PR 9461 converts Martin's nntp-server.patch. I've made some tweaks and fixed a "threading._dangling was modified by test_nntplib" warning. I will try to convert multi-connect.patch later. I will attribute Martin as the patch author before merging the PR.

[issue34589] Py_Initialize() and Py_Main() should not enable C locale coercion

2018-09-20 Thread Ned Deily
Ned Deily added the comment: Thanks, Victor and Nick, for the work. With the revert merged (GH-9430), this issue is no longer a release blocker for 3.7.1, correct? -- ___ Python tracker

[issue34751] Hash collisions for tuples

2018-09-20 Thread Tim Peters
Tim Peters added the comment: @jdemeyer, please define exactly what you mean by "Bernstein hash". Bernstein has authored many hashes, and none on his current hash page could possibly be called "simple": https://cr.yp.to/hash.html If you're talking about the teensy hash = hash *

[issue34751] Hash collisions for tuples

2018-09-20 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > Since I don't believe we've had other reports of real-life pathologies since You just did in this bug report. Why doesn't that count? -- ___ Python tracker

[issue34751] Hash collisions for tuples

2018-09-20 Thread Tim Peters
Change by Tim Peters : -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34759] Possible regression in ssl module in 3.7.1 and master

2018-09-20 Thread Nathaniel Smith
Nathaniel Smith added the comment: Oh, here it is: https://github.com/python/cpython/commit/1229664f30dd5fd4da32174a19258f8312464d45#diff-e1cc5bf74055e388cda128367a814c8fR2587 -if (err < 0) { +if (err.ssl < 0) { Before in this function, 'err' was the return code from SSL_shutdown,

[issue34759] Possible regression in ssl module in 3.7.1 and master

2018-09-20 Thread Nathaniel Smith
Change by Nathaniel Smith : -- keywords: +patch pull_requests: +8881 stage: -> patch review ___ Python tracker ___ ___

[issue34748] Incorrect HTML link in functools.partial

2018-09-20 Thread Ned Deily
Change by Ned Deily : -- keywords: +easy stage: -> needs patch versions: +Python 2.7, Python 3.6, Python 3.8 ___ Python tracker ___

[issue34751] Hash collisions for tuples

2018-09-20 Thread Tim Peters
Tim Peters added the comment: Ah! I see that the original SourceForge bug report got duplicated on this tracker, as PR #942952. So clicking on that is a lot easier than digging thru the mail archive. One message there noted that replacing xor with addition made collision statistics much

[issue34759] Possible regression in ssl module in 3.7.1 and master

2018-09-20 Thread Ned Deily
Ned Deily added the comment: Steve? Christian? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31146] Docs: On non-public translations, language picker fallback to "English"

2018-09-20 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34751] Hash collisions for tuples

2018-09-20 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > ISTM, you're being somewhat aggressive and condescending. Interestingly, I felt the same with your reply, which explains my rapid reversion of your closing of the ticket. The way I see it: I pointed out a bug in tuple hashing and you just closed that,

[issue34759] Possible regression in ssl module in 3.7.1 and master

2018-09-20 Thread Nathaniel Smith
Nathaniel Smith added the comment: The ssl module's unwrap() method is intended to do a clean shutdown of TLS encryption on a socket (or memory BIO or whatever). The idea is that it sends a "close notify" frame (i.e., tells the peer that we're shutting down), and then it waits for the peer

[issue34751] Hash collisions for tuples

2018-09-20 Thread Ned Deily
Ned Deily added the comment: (FWIW, I believe the Source Forge bug reports were forwarded ported to bugs.python.org. This looks like the issue in question: https://bugs.python.org/issue942952 ) -- nosy: +ned.deily ___ Python tracker

[issue30947] Update embeded copy of libexpat from 2.2.1 to 2.2.3

2018-09-20 Thread STINNER Victor
STINNER Victor added the comment: > Do you remember which platform failed? It doesn't say on the GH PR either. It was the Linux job of Travis CI, something like an old Ubuntu LTS version. Since Travis CI prevented me to merge anything and Python already has access to a safe PRNG, I didn't

[issue34758] http.server module sets incorrect mimetype for WebAssembly files

2018-09-20 Thread Travis O'Neill
New submission from Travis O'Neill : Mimetype is set to application/octet-stream for .wasm files instead of the correct application/wasm. This causes streaming compile feature to fail

[issue34715] timemodule.c fails to compile on BSD

2018-09-20 Thread Benjamin Peterson
Change by Benjamin Peterson : -- pull_requests: +8880 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34730] aclose() doesn't stop raise StopAsyncIteration / GeneratorExit to __anext__()

2018-09-20 Thread Christoph Zwerschke
Change by Christoph Zwerschke : -- nosy: +cito ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34759] Possible regression in ssl module in 3.7.1 and master

2018-09-20 Thread Nathaniel Smith
Nathaniel Smith added the comment: (And Christian, if you know of any risky-sounding recent changes in SSLObject.unwrap, lmk :-)) -- ___ Python tracker ___

[issue34759] Possible regression in ssl module in 3.7.1 and master

2018-09-20 Thread Nathaniel Smith
New submission from Nathaniel Smith : Hey Ned, we just noticed that since a few days ago the trio testsuite is failing on 3.7-dev (but not 3.7.0), in a test checking an obscure feature in the ssl module: https://travis-ci.org/python-trio/trio/builds/431291929 And I just reproduced the issue

[issue34759] Possible regression in ssl module in 3.7.1 and master

2018-09-20 Thread Nathaniel Smith
Nathaniel Smith added the comment: Git bisect says: 1229664f30dd5fd4da32174a19258f8312464d45 is the first bad commit commit 1229664f30dd5fd4da32174a19258f8312464d45 Author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com> Date: Mon Sep 17 12:12:13 2018 -0700

[issue34759] Possible regression in ssl module in 3.7.1 and master

2018-09-20 Thread Nathaniel Smith
Nathaniel Smith added the comment: The test doesn't involve any threads, so it does seem strange that this PR changed its behavior. I haven't checked against master carefully, but the original observation was that our Travis "3.7-dev" and "3.8-dev" tests started failing in the same way

[issue34011] Default preference not given to venv DLL's

2018-09-20 Thread Steve Dower
Steve Dower added the comment: I agree with this only applying to 3.8 - removing the copied files on earlier versions seems like an unnecessary risk to compatibility. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.6, Python 3.7

[issue34758] http.server module sets incorrect mimetype for WebAssembly files

2018-09-20 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +8876 stage: -> patch review ___ Python tracker ___ ___

[issue34751] Hash collisions for tuples

2018-09-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: ISTM, you're being somewhat aggressive and condescending. I'll hand you off to Tim who is far better at wrestling over the details :-) >From my point of view, you've made a bold and unsubstantiated claim that >Python's existing tuple hash has collision

[issue34656] memory exhaustion in Modules/_pickle.c:1393

2018-09-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +8879 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34656] memory exhaustion in Modules/_pickle.c:1393

2018-09-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +8878 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34715] timemodule.c fails to compile on BSD

2018-09-20 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset c510c6b8b60f211793e0b84c317ea6974e8a6153 by Benjamin Peterson in branch 'master': Simplify PyInit_timezone. (GH-9467) https://github.com/python/cpython/commit/c510c6b8b60f211793e0b84c317ea6974e8a6153 --

[issue34656] memory exhaustion in Modules/_pickle.c:1393

2018-09-20 Thread miss-islington
miss-islington added the comment: New changeset 71a9c65e74a70b6ed39adc4ba81d311ac1aa2acc by Miss Islington (bot) in branch '3.6': closes bpo-34656: Avoid relying on signed overflow in _pickle memos. (GH-9261) https://github.com/python/cpython/commit/71a9c65e74a70b6ed39adc4ba81d311ac1aa2acc

[issue34753] Use coroutine object or coroutine function instead of coroutine

2018-09-20 Thread Windson Yang
Windson Yang added the comment: Sure, I found around 7 places may need to change, I can fix some of them right, and I will put the rest links which I'm not sure in the PR comment. -- ___ Python tracker

[issue34656] memory exhaustion in Modules/_pickle.c:1393

2018-09-20 Thread miss-islington
miss-islington added the comment: New changeset ef4306b24c9034d6b37bb034e2ebe82e745d4b77 by Miss Islington (bot) in branch '3.7': closes bpo-34656: Avoid relying on signed overflow in _pickle memos. (GH-9261) https://github.com/python/cpython/commit/ef4306b24c9034d6b37bb034e2ebe82e745d4b77

[issue34656] memory exhaustion in Modules/_pickle.c:1393

2018-09-20 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset a4ae828ee416a66d8c7bf5ee71d653c2cc6a26dd by Benjamin Peterson in branch 'master': closes bpo-34656: Avoid relying on signed overflow in _pickle memos. (GH-9261)

[issue34759] Possible regression in ssl module in 3.7.1 and master

2018-09-20 Thread Steve Dower
Steve Dower added the comment: It should just be gathering SSL error codes before acquiring the GIL, which could switch thread and then get the wrong code. Of course, it's possible it is in the backport. How easily can you test against master? (I'm AFK, so can't easily do anything right

[issue34715] timemodule.c fails to compile on BSD

2018-09-20 Thread Benjamin Peterson
Change by Benjamin Peterson : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34759] Possible regression in ssl module in 3.7.1 and master

2018-09-20 Thread Ned Deily
Ned Deily added the comment: Thanks for the heads-up! If you become convinced it's a post-3.7.0 regression that would affect 3.7.1, please change the priority to "release blocker". -- ___ Python tracker

[issue34732] uuid returns version more than 5

2018-09-20 Thread jophine antony
jophine antony added the comment: I had raised a PR in github when i have created this ticket but forgot to add it here: https://github.com/python/cpython/pull/9413 -- ___ Python tracker

[issue34659] Inconsistency between functools.reduce & itertools.accumulate

2018-09-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: > As for pickling/copying, this task is technically difficult, > it but I don't see principal problems. I've added the pickle/copy support to the PR. > is it worth to add it? Tim was persuasive, so I've agreed to add the feature. It may be little used

[issue34747] SSLSocket.context cannot be changed on non-connected sockets

2018-09-20 Thread Vincent Pelletier
New submission from Vincent Pelletier : >From ssl.py, both on 2.7.15 and 3.6.6: class SSLSocket(...): ... @context.setter def context(self, ctx): self._context = ctx self._sslobj.context = ctx _sslobj is only set when socket is connected. While this is not a big issue

[issue34736] Confusing base64.b64decode output

2018-09-20 Thread Tal Einat
Tal Einat added the comment: Perhaps something such as "number of base64 data characters cannot be 1 more than a multiple of 4"? -- ___ Python tracker ___

[issue34737] Python upgrade with SYSTEM account uninstalls python

2018-09-20 Thread Jatin Goel
Jatin Goel added the comment: Hi Steve, It's not actually an issue with the Tcl/Tk package. This is happening for all the packages. Even with the installAllUsers flag set, the installation for all users fail, and then it tries to do justForMe installation, and that too is failing. Again

[issue34663] Support POSIX_SPAWN_USEVFORK flag in posix_spawn

2018-09-20 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34743] test_database_source_name fails with SQLite 3.7.9

2018-09-20 Thread Berker Peksag
Berker Peksag added the comment: New changeset b10a64d117de6121ea3e79c467c4107f8f399f3d by Berker Peksag in branch 'master': bpo-34743: Fix test_database_source_name under SQLite 3.7.9 (GH-9426) https://github.com/python/cpython/commit/b10a64d117de6121ea3e79c467c4107f8f399f3d --

[issue34743] test_database_source_name fails with SQLite 3.7.9

2018-09-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +8858 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34344] Fix the docstring for AbstractEventLoopPolicy.get_event_loop

2018-09-20 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34748] Incorrect HTML link in functools.partial

2018-09-20 Thread xitop
New submission from xitop : There is a minor issue regarding the page https://docs.python.org/3/library/functools.html The description of functools.partial starts with text "Return a new partial object" which contains a link. This link does not point to the partial object (#partial-objects

[issue34749] improve performance of binascii.a2b_base64()

2018-09-20 Thread Sergey Fedoseev
New submission from Sergey Fedoseev : I reworked implementation of binascii.a2b_base64() and there is significant speedup: $ python -m perf timeit --compare-to ~/tmp/cpython-master-venv/bin/python -s "from binascii import b2a_base64, a2b_base64; s = b2a_base64(1000 * b'b')" "a2b_base64(s)"

[issue34542] [TLS] Update test certs to future proof settings

2018-09-20 Thread miss-islington
miss-islington added the comment: New changeset 49d65958e13db03b9a4240d8bdaff1a4be69a1d7 by Miss Islington (bot) (Christian Heimes) in branch '2.7': [2.7] bpo-34542: Update test certs and keys (GH-8997) (GH-9397)

[issue34542] [TLS] Update test certs to future proof settings

2018-09-20 Thread miss-islington
miss-islington added the comment: New changeset 11485102cb7b3c57a1bc6d04c4ff4b1e25c53530 by Miss Islington (bot) (Christian Heimes) in branch '3.6': [3.6] bpo-34542: Update test certs and keys (GH-8997) (GH-9396)

[issue34742] Add optional argument for exit status in argparse.ArgumentParser.error

2018-09-20 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Seems like a reasonable addition (Customization of writing to sys.stderr too) . It seems to have been inherited from optparse which has pretty much the same code with hardcoded exit code. The solution suggested is to catch SystemExit and provide

[issue34559] multiprocessing AuthenticationError when nesting with non-default authkey

2018-09-20 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32215] sqlite3 400x-600x slower depending on formatting of an UPDATE statement in a string

2018-09-20 Thread Berker Peksag
Berker Peksag added the comment: New changeset 8d1e190fc507a9e304f6817e761e9f628a23cbd8 by Berker Peksag in branch 'master': bpo-32215: Fix performance regression in sqlite3 (GH-8511) https://github.com/python/cpython/commit/8d1e190fc507a9e304f6817e761e9f628a23cbd8 --

[issue32215] sqlite3 400x-600x slower depending on formatting of an UPDATE statement in a string

2018-09-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +8856 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32215] sqlite3 400x-600x slower depending on formatting of an UPDATE statement in a string

2018-09-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +8857 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33813] Update overdue 'Deprecated ... removed in 3.x' messages

2018-09-20 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33545] Docs for uuid don't mention that uuid1 can repeat in some circumstances

2018-09-20 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19756] test_nntplib: sporadic failures, network isses? server down?

2018-09-20 Thread Berker Peksag
Change by Berker Peksag : -- Removed message: https://bugs.python.org/msg325858 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue19756] test_nntplib: sporadic failures, network isses? server down?

2018-09-20 Thread Berker Peksag
Berker Peksag added the comment: == ERROR: setUpClass (test.test_nntplib.NetworkedNNTPTests) -- Traceback (most recent call last): File

[issue33813] Update overdue 'Deprecated ... removed in 3.x' messages

2018-09-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue27032. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list

[issue34749] improve performance of binascii.a2b_base64()

2018-09-20 Thread Sergey Fedoseev
Change by Sergey Fedoseev : -- keywords: +patch pull_requests: +8859 stage: -> patch review ___ Python tracker ___ ___

[issue19756] test_nntplib: sporadic failures, network isses? server down?

2018-09-20 Thread Berker Peksag
Berker Peksag added the comment: I think it would be nice if tweaked support.transient_internet() to catch EADDRNOTAVAIL. See https://github.com/python/cpython/commit/e4dcbbd7f4ac18d01c0ec85f64ae98b8281ed403#diff-7fa374913c0ecbdc621db8ea79a1212bR78 for another example. --

[issue34125] Profiling depends on whether **kwargs is given

2018-09-20 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue25750] tp_descr_get(self, obj, type) is called without owning a reference to "self"

2018-09-20 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34694] Dismiss To Avoid Slave/Master wording cause it easier for non English spoken programmers

2018-09-20 Thread Gabriel Marko
Gabriel Marko added the comment: @Larry and Terry: I want to stay out of this discussion or participation on Python development for the future as I've expressed it elsewhere (https://bugs.python.org/issue34660#msg325515). However, I want to address the unfair treatment of my person and

[issue32892] Remove specific constant AST types in favor of ast.Constant

2018-09-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +8860 stage: -> patch review ___ Python tracker ___ ___

[issue19756] test_nntplib: sporadic failures, network isses? server down?

2018-09-20 Thread Berker Peksag
Change by Berker Peksag : -- pull_requests: +8861 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue32892] Remove specific constant AST types in favor of ast.Constant

2018-09-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 9445 is an implementation of this idea. For simplicity and for reducing affect on tests no deprecation warning is raised, and there is no validation of the type of argument for old classes. Num('123') will just return Constant('123') without errors and

[issue34247] PYTHONOPTIMIZE ignored in 3.7.0 when using custom launcher

2018-09-20 Thread Nick Coghlan
Nick Coghlan added the comment: The "ill-defined" in Python 3.6 relates to the fact that we never actually defined or tested which environment variables were read by Py_Main and which ones were read by Py_Initialize, since the majority of our tests only covered Py_Main (by launching a full

[issue33236] MagicMock().__iter__.return_value is different from MagicMock().__iter__()

2018-09-20 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Can you please link to the relevant documentation that is misleading? As I can see from the source code return value is a Mock object [1] which I believe the docs state as below : https://docs.python.org/3/library/unittest.mock.html#calling >

[issue33110] Adding a done callback to a concurrent.futures Future once it has already completed, may raise an exception, contrary to docs

2018-09-20 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34750] locals().update doesn't work in Enum body, even though direct assignment to locals() does

2018-09-20 Thread Antony Lee
New submission from Antony Lee : A quick check suggests that enum entries can be programmatically created by assigning to locals() in the Enum body: class E(Enum): locals()["a"] = 1 E.a # -> However, using locals().update(...) doesn't, and silently does the wrong thing: class

[issue34589] Py_Initialize() and Py_Main() should not enable C locale coercion

2018-09-20 Thread Nick Coghlan
Nick Coghlan added the comment: (Also, the patch is currently still written on the assumption that it won't be backported to 3.7.1. I haven't checked if it would apply cleanly to 3.7.x, but I suspect not, given the magnitude of the startup changes targeting 3.8.0 since 3.7.0 was released)

[issue33117] asyncio example uses non-existing/documented method

2018-09-20 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I think `asyncio.run_coroutine_threadsafe(coro, loop)` returns a concurrent.futures.Future [1] which supports timeout and not asyncio.Future which doesn't support timeout. Please add in if I am missing anything. Since asyncio docs are being

[issue19431] Document PyFrame_FastToLocals() and PyFrame_FastToLocalsWithError()

2018-09-20 Thread STINNER Victor
STINNER Victor added the comment: I closed the issue because we decided to not document the function, but I'm still interested to mark the API is private. Such change is more sensitive, so I added it my larger "New C API" project which works on finding a way to deprecate functions and

[issue31898] Add a `recommended-packages.txt` file

2018-09-20 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34751] Hash collisions for tuples

2018-09-20 Thread Jeroen Demeyer
New submission from Jeroen Demeyer : It's not hard to come up with a hash collision for tuples: >>> hash( (1,0,0) ) 2528505496374819208 >>> hash( (1,-2,-2) ) 2528505496374819208 The underlying reason is that the hashing code mixes ^ and *. This can create collisions because, for odd x, we

[issue31865] html.unescape does not work as per documentation

2018-09-20 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31628] test_emails failure on FreeBSD

2018-09-20 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34589] Py_Initialize() and Py_Main() should not enable C locale coercion

2018-09-20 Thread Nick Coghlan
Nick Coghlan added the comment: https://github.com/python/cpython/pull/9257 should be complete now, although I may have gone overboard on the documentation updates (as it seems to be unclear, at least to Victor, why PYTHONCOERCECLOCALE exists in the first place) --

[issue33085] *** Error in `python': double free or corruption (out): 0x00007ff5254d50d0 ***

2018-09-20 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. Can you please add a little more description on reproducing this issue along with OS details ? By "the installation of readline (6.2.4.1) [1]" are you referring to a third party package that you have installed with Python

[issue32995] Add a glossary entry for context variables

2018-09-20 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

  1   2   >