[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

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

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

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

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

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

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

[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

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

[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

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

[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

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

[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

[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

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

[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

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

[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

[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

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

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

[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

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

[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

[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

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

[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

[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

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

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

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

[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

[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

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

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

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

[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

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

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

[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

[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

[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

[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

[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

[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

[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

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

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

2018-09-20 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +8872 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2018-09-20 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the reviews, Victor. I'm planning to work on them tonight. I will close this issue and open a new one if I decide to do further work on them. -- ___ Python tracker

[issue34754] test_flush_return_value fails on FreeBSD

2018-09-20 Thread Berker Peksag
Berker Peksag added the comment: >From AMD64 FreeBSD 10.x Shared 3.x: > 0:18:38 load avg: 5.04 [390/419/1] test_mmap passed https://buildbot.python.org/all/#/builders/87/builds/1465/steps/4/logs/stdio -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue34756] Few changes in sys.breakpointhook()

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

[issue34756] Few changes in sys.breakpointhook()

2018-09-20 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The proposed PR makes the following changes in sys.breakpointhook(): * Use _PyObject_GetBuiltin() for getting a builtin. This simplifies the code. * The only effect of using the "from" list is when the imported name is a submodule. But it should be a

[issue34732] uuid returns version more than 5

2018-09-20 Thread Berker Peksag
Berker Peksag 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 Thanks for the PR, Jophine :) I saw your PR yesterday, but I thought fixing this in __init__ would be a better solution. I

[issue34743] test_database_source_name fails with SQLite 3.7.9

2018-09-20 Thread Berker Peksag
Change by Berker Peksag : -- resolution: -> fixed 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 c56bbae5e92828a4c93be3b0e7a5072a31fdc587 by Berker Peksag (Miss Islington (bot)) in branch '3.7': bpo-34743: Fix test_database_source_name under SQLite 3.7.9 (GH-9426)

[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 4fb672ff96ecbb87aaf2ecc4f04aed76aafe63b1 by Berker Peksag (Miss Islington (bot)) in branch '3.6': bpo-32215: Fix performance regression in sqlite3 (GH-8511) https://github.com/python/cpython/commit/4fb672ff96ecbb87aaf2ecc4f04aed76aafe63b1

[issue34648] Confirm the types of parameters of traceback.format_list and traceback.StackSummary.from_list post-3.5

2018-09-20 Thread Berker Peksag
Berker Peksag added the comment: > Why not support Iterable[FrameSummary]? The question that needs to be answered here is "why we should support Iterable[FrameSummary]?" and you're one the one who needs to answer it instead of saying our design decisions were "absurd" and "not wise", without

[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: 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? -- ___ Python tracker

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

2018-09-20 Thread paul j3
paul j3 added the comment: While I don't think this change will cause any backward compatibility issues, I wonder whether it does much good. https://docs.python.org/3/library/argparse.html#exiting-methods already documents the option of customizing `parser.exit` and `parser.error`

[issue34732] uuid returns version more than 5

2018-09-20 Thread Richard Neumann
Richard Neumann added the comment: I updated my pull request. Since "_windll_getnode()" is only returning a (random?) node for a UUID, I circumevented the value checking by introducing a new keyword-only argument "strict" defaulting to "True", there being set to "False". --

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

2018-09-20 Thread Yury Selivanov
Yury Selivanov added the comment: > This will let people confused. IMO we should use `coroutine object` or > `coroutine function` instead of coroutine when it means an object. I'm not sure that it's a good idea to apply this change everywhere, but I think in general this is a good idea. Do

[issue32557] allow shutil.disk_usage to take a file path on Windows also

2018-09-20 Thread Joe Pamer
Joe Pamer added the comment: Awesome - thanks, Steve - this is all super helpful! If you're cool with it I'd like to stick to using _dirnameW for now, and then follow up with another set of PRs for the fixes you've recommended. -- ___ Python

[issue33649] asyncio docs overhaul

2018-09-20 Thread miss-islington
miss-islington added the comment: New changeset 8e5ef58c10a1154f824d5875c2d89794a800eadc by Miss Islington (bot) in branch '3.7': bpo-33649: More improvements (GH-9439) https://github.com/python/cpython/commit/8e5ef58c10a1154f824d5875c2d89794a800eadc --

[issue26119] Windows Installer can sometimes silently fail pip stage

2018-09-20 Thread Steve Dower
Change by Steve Dower : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___

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

2018-09-20 Thread Guido van Rossum
Guido van Rossum added the comment: I don't feel confident reviewing the code, but I'm okay with the change. Can you describe what usages of the old API will continue to work, and what part will break? (It would seem that code that creates a tree using e.g. Num(42) will still work, but code

[issue34754] test_flush_return_value fails on FreeBSD

2018-09-20 Thread Berker Peksag
Berker Peksag added the comment: New changeset bc854750589d4de0fd55693963964e0558b5c8ac by Berker Peksag in branch 'master': bpo-34754: Fix test_flush_return_value on FreeBSD (GH-9451) https://github.com/python/cpython/commit/bc854750589d4de0fd55693963964e0558b5c8ac --

[issue34755] Few minor optimizations in _asynciomodule.c

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

[issue34755] Few minor optimizations in _asynciomodule.c

2018-09-20 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : * Perform cheap comparison with None before expensive checks in task_step_impl(). * Use more efficient private API for getting and setting an optional attribute. * Use PyGen_Check() instead of inspect.isgenerator(). * Use faster and more idiomatic way of

[issue33649] asyncio docs overhaul

2018-09-20 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset e247b46cba4f4d32ea96a15dbc36d73265171106 by Yury Selivanov in branch 'master': bpo-33649: More improvements (GH-9439) https://github.com/python/cpython/commit/e247b46cba4f4d32ea96a15dbc36d73265171106 --

[issue33649] asyncio docs overhaul

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

[issue16438] Numeric operator predecence confusing

2018-09-20 Thread Elliot Edmunds
Elliot Edmunds added the comment: I agree that linking to the precedence table is probably the best solution. A different option would be to add an extra column listing the "priority" and rank the priorities of the different operations. -- nosy: +Elliot Edmunds

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

2018-09-20 Thread Steve Dower
Steve Dower added the comment: This change breaks a number of tests when run on a proper installation, since we still need to copy pythonXY.dll or else python.exe refuses to start. Since I'm fixing these tests today, I'll also fix this issue. -- assignee: -> steve.dower

[issue34320] Creating dict from OrderedDict doesn't preserve order

2018-09-20 Thread Eric Snow
Eric Snow added the comment: FWIW, the PEP 520 example isn't exactly right. PEP 520 is about the class definition namespace, not the namespace object passed to type(). That always does the right thing, since the default class definition namespace is dict (which happens to be ordered in

[issue34320] Creating dict from OrderedDict doesn't preserve order

2018-09-20 Thread Eric Snow
Change by Eric Snow : -- Removed message: https://bugs.python.org/msg325897 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue34320] Creating dict from OrderedDict doesn't preserve order

2018-09-20 Thread Eric Snow
Eric Snow added the comment: FWIW, the PEP 520 example isn't exactly right. PEP 520 is about the class definition namespace, not the namespace object passed to type(). That always does the right thing, since the default class definition namespace is dict (which happens to be ordered in

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

2018-09-20 Thread STINNER Victor
STINNER Victor added the comment: Thanks Berker! Do you want to do something with Martin's patches? If not, can you please close the issue? -- ___ Python tracker ___

[issue34648] Confirm the types of parameters of traceback.format_list and traceback.StackSummary.from_list post-3.5

2018-09-20 Thread Nathaniel Manista
Nathaniel Manista added the comment: > In 3.4, format_list() was documented to accept return values of extract_tb() > > and extract_stack() functions and they both were returned lists: > > def extract_tb(tb, limit=None): > return list(_extract_tb_iter(tb, limit=limit)) > >

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

2018-09-20 Thread Antony Lee
Antony Lee added the comment: I have a personal helper function for writing (Qt) GUIs that generates ComboBoxes from Enums; essentially something like class Choices(Enum): choice1 = "text for choice 1" choice2 = "text for choice 2" def callback(choice: Choices):

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

2018-09-20 Thread miss-islington
miss-islington added the comment: New changeset 170ea8ccd4235d28538ab713041502d07ad1cacd by Miss Islington (bot) in branch '2.7': bpo-19756: Prevent test failures due to EADDRNOTAVAIL (GH-9446) https://github.com/python/cpython/commit/170ea8ccd4235d28538ab713041502d07ad1cacd --

[issue34743] test_database_source_name fails with SQLite 3.7.9

2018-09-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +8868 ___ 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: +8867 ___ 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 015cd0f5cb17b1b208a92e549cd665dc38f2f699 by Berker Peksag (Miss Islington (bot)) in branch '3.7': bpo-32215: Fix performance regression in sqlite3 (GH-8511) https://github.com/python/cpython/commit/015cd0f5cb17b1b208a92e549cd665dc38f2f699

[issue34754] test_flush_return_value fails on FreeBSD

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

[issue34751] Hash collisions for tuples

2018-09-20 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > Nor is it hard to come up with collisions for most simple hash functions. The Bernstein hash algorithm is a simple algorithm for which it can be proven mathematically that collisions cannot be generated if the multiplier is unknown. That is an objective

[issue34754] test_flush_return_value fails on FreeBSD

2018-09-20 Thread Berker Peksag
New submission from Berker Peksag : == FAIL: test_flush_return_value (test.test_mmap.MmapTests) -- Traceback (most recent call last): File

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

2018-09-20 Thread miss-islington
miss-islington added the comment: New changeset 1eabe19c57938dd70b66b97239be337294e15cba by Miss Islington (bot) in branch '3.6': bpo-19756: Prevent test failures due to EADDRNOTAVAIL (GH-9446) https://github.com/python/cpython/commit/1eabe19c57938dd70b66b97239be337294e15cba --

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

2018-09-20 Thread Jose Angel Acosta
Jose Angel Acosta added the comment: I'm so sorry to see my proposal just derived in personal attacks. The problem here is the core who "owns" python, admited a change to the Language documentation on whats should be considered a political or cultural bias w/o considering the broad

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

2018-09-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +8865 ___ 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: +8864 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2018-09-20 Thread Berker Peksag
Berker Peksag added the comment: New changeset 476177005e8c8d4ece3070c8c378f8b8c068e76f by Berker Peksag (Miss Islington (bot)) in branch '3.7': bpo-19756: Prevent test failures due to EADDRNOTAVAIL (GH-9446) https://github.com/python/cpython/commit/476177005e8c8d4ece3070c8c378f8b8c068e76f

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

2018-09-20 Thread Windson Yang
New submission from Windson Yang : A PR https://github.com/python/cpython/pull/9408 solved an ambiguous problem about coroutine. Which led me to https://docs.python.org/3/library/asyncio-task.html#awaitables > Note that in this documentation the term “coroutine” can be used for two > closely

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

2018-09-20 Thread Steve Dower
Change by Steve Dower : -- nosy: -steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

  1   2   >