[issue37556] Launcher help does not mention configuration options

2019-07-10 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware versions: -Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker

[issue37545] Argparse Tutorial - unreasonable operators

2019-07-10 Thread Aldwin Pollefeyt
Aldwin Pollefeyt added the comment: The >= is unnecessary in this exact example, as is correctly noted by Nathan. I understand using >= for future purposes, after you explained, what is also correct but confusing because you specifically describe why you change the >= 2, but it doesn't make

[issue37555] _CallList.__contains__ doesn't always respect ANY.

2019-07-10 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. Can you please add an example without Django or other dependencies so that I can try reproducing it? I am trying out the below program from the report where Foo has overridden __eq__ to return False if the other object being

[issue37555] _CallList.__contains__ doesn't always respect ANY.

2019-07-10 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +14499 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14700 ___ Python tracker ___

[issue37556] Launcher help does not mention configuration options

2019-07-10 Thread Steve Barnes
New submission from Steve Barnes : py[w] --help on Windows launchers do not currently mention the options to configure versions used - just state latest. This leads some people to struggle with things like testing beta versions, etc. as they end up defaulting to the beta which is

[issue37555] _CallList.__contains__ doesn't always respect ANY.

2019-07-10 Thread Elizabeth Uselton
New submission from Elizabeth Uselton : I have a test that goes something like: ``` @patch('a.place.to.patch') def test_a_thing_calls_what_it_should(self, my_mock): # Set up logic here my_mock.assert_has_calls([ call( ANY, Decimal('20') ),

[issue37545] Argparse Tutorial - unreasonable operators

2019-07-10 Thread Zachary Ware
Zachary Ware added the comment: I don't agree with the proposed change; I think the examples are fine as is. Using `>= 1` means if you later decide that the `-vv` message should actually only happen at `-vvv` and `-vv` should get the same message as `-v`, you only have to change the 2 to a

[issue32381] Python 3.6 cannot reopen .pyc file with non-ASCII path

2019-07-10 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +14498 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/14699 ___ Python tracker

[issue36044] PROFILE_TASK for PGO build is not a good workload

2019-07-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: yeah I pulled a similar looking list of tests for the PROFILE_TASK to suggest to the Docker Python image maintainers - see https://github.com/docker-library/python/pull/404 and https://github.com/docker-library/python/issues/160. I haven't run

[issue37545] Argparse Tutorial - unreasonable operators

2019-07-10 Thread Aldwin Pollefeyt
Change by Aldwin Pollefeyt : -- nosy: +aldwinaldwin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37545] Argparse Tutorial - unreasonable operators

2019-07-10 Thread Aldwin Pollefeyt
Change by Aldwin Pollefeyt : -- keywords: +patch pull_requests: +14497 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14697 ___ Python tracker

[issue36044] PROFILE_TASK for PGO build is not a good workload

2019-07-10 Thread Neil Schemenauer
Neil Schemenauer added the comment: > Decreasing the total wall time for a default --enable-optimizations build > would > be a good thing for everyone, provided the resulting interpreter remains > "effectively similar" in speed. If you somehow manage to find something that > actually

[issue30757] pyinstaller can be added to docs, py2exe ref can be updated

2019-07-10 Thread Zachary Ware
Zachary Ware added the comment: I've just come across the fact that the Windows FAQ is out of date again. Denis, your PR still has some pending change requests; are you interested in updating your PR, or would you rather someone else take this over? -- components: +Windows nosy:

[issue37532] email.header.make_header() doesn't work if any `ascii` code is out of range(128)

2019-07-10 Thread Aldwin Pollefeyt
Change by Aldwin Pollefeyt : -- keywords: +patch pull_requests: +14496 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14696 ___ Python tracker

[issue37554] Typo in os.rename docs

2019-07-10 Thread Mariatta
Change by Mariatta : -- keywords: +patch pull_requests: +14495 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14692 ___ Python tracker ___

[issue37554] Typo in os.rename docs

2019-07-10 Thread Roy Wellington
New submission from Roy Wellington : The documentation for os.rename (e.g., here, https://docs.python.org/3/library/os.html#os.rename but also for 3.8 and 3.9) currently reads, > On Unix, if src is a file and dst is a directory or vice-versa, anq:q > IsADirectoryError or a

[issue33408] Enable AF_UNIX support in Windows

2019-07-10 Thread Ma Lin
Ma Lin added the comment: It would be nice to investigate the habit of using AF_UNIX in Python code on GitHub: https://github.com/search?l=Python=AF_UNIX=Code If adding this flag will break a lot of code, due to lacking supports to datagram, maybe we should not add AF_UNIX at once, and

[issue33408] Enable AF_UNIX support in Windows

2019-07-10 Thread Ma Lin
Ma Lin added the comment: Have you upgraded the building SDK that supports AF_UNIX? And should remove AF_UNIX flag at runtime on systems older than Windows 10 1804, see issue32394. -- nosy: +Ma Lin ___ Python tracker

[issue37549] os.dup() fails for standard streams on Windows 7

2019-07-10 Thread DaveB
DaveB added the comment: Results with Python 3.7.4 on Windows 7 >>> import os, msvcrt >>> msvcrt.get_osfhandle(0) 15 >>> os.set_handle_inheritable(msvcrt.get_osfhandle(0), False) Traceback (most recent call last): File "", line 1, in OSError: [WinError 87] The parameter is incorrect >>>

[issue37553] SendfileUsingSendTest tests timeout too short for Windows ARM32

2019-07-10 Thread Paul Monson
New submission from Paul Monson : 2 seconds doesn't seem to be a long enough timeout for os.sendfile tests on Windows ARM32 -- components: Tests, Windows messages: 347643 nosy: Paul Monson, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open

[issue37549] os.dup() fails for standard streams on Windows 7

2019-07-10 Thread Eryk Sun
Eryk Sun added the comment: > OSError: [WinError 87] The parameter is incorrect This error didn't originate from the C dup() call, since that would be based on errno, like `OSError: [Errno 9] Bad file descriptor`. It must come from _Py_set_inheritable. The only WINAPI call there is

[issue7946] Convoy effect with I/O bound threads and New GIL

2019-07-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: I suggest: (1) turning one of the patches (probably the last BFS one?) into a PR against the github master branch (3.9) and, (2) if none of the existing pyperformance workloads already demonstrates the problems with the existing GIL implementation, adopt

[issue7946] Convoy effect with I/O bound threads and New GIL

2019-07-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: (unassigning as it doesn't make sense to assign to anyone unless they're actually working on it) -- assignee: pitrou -> ___ Python tracker

[issue7946] Convoy effect with I/O bound threads and New GIL

2019-07-10 Thread Gregory P. Smith
Change by Gregory P. Smith : -- priority: low -> normal versions: +Python 3.9 -Python 3.3 ___ Python tracker ___ ___

[issue37521] importlib.util.module_from_spec return value is not the same as in sys.modules

2019-07-10 Thread Brett Cannon
Brett Cannon added the comment: Thanks! I'll try to have a look when I can. -- assignee: -> brett.cannon ___ Python tracker ___

[issue37552] [Windows] strptime/strftime return invalid results with UCRT version 17763.615

2019-07-10 Thread Paul Monson
Change by Paul Monson : -- keywords: +patch pull_requests: +14494 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14460 ___ Python tracker ___

[issue37552] [Windows] strptime/strftime return invalid results with UCRT version 17763.615

2019-07-10 Thread Paul Monson
New submission from Paul Monson : strptime/strftime return invalid results when using UCRT version 17763.615 -- components: Tests, Windows messages: 347638 nosy: Paul Monson, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: [Windows]

[issue37552] [Windows] strptime/strftime return invalid results with UCRT version 17763.615

2019-07-10 Thread Paul Monson
Change by Paul Monson : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37482] Email address display name fails with both encoded words and special chars

2019-07-10 Thread R. David Murray
R. David Murray added the comment: The display name is a phrase, and a phrase is a sequence of words, and a word is either a quoted string or an atom. So it is legal to mix quoted strings and encoded words in a display name. I'd vote to do whichever one is easier to implement :) (I

[issue37551] IDLE: Quitting with a new, unsaved editor window causes an exception

2019-07-10 Thread Tal Einat
New submission from Tal Einat : Observed on macOS 10.14.5 with Python 3.8 from python.org, and with latest master branch. Reproduction: 1. Open IDLE 2. "New File" (Cmd-Shift-n on macOS) 3. Quit using Cmd-q ("Quit Python" from the menu doesn't cause this!) The exception traceback: Exception

[issue37537] Compute allocated blocks in _Py_GetAllocatedBlocks()

2019-07-10 Thread Neil Schemenauer
Neil Schemenauer added the comment: New changeset 5d25f2b70351fc6a56ce5513ccf5f58556c18837 by Neil Schemenauer in branch 'master': bpo-37537: Compute allocated blocks in _Py_GetAllocatedBlocks() (#14680) https://github.com/python/cpython/commit/5d25f2b70351fc6a56ce5513ccf5f58556c18837

[issue37482] Email address display name fails with both encoded words and special chars

2019-07-10 Thread B Siemerink
B Siemerink added the comment: Hello David, thank you for the suggestion. Regarding your comment: > Either the comma should be encoded, or the "Foo Bar," should be in quotes. According to RFC5322 the display name cannot contain both a quoted part and an encoded word, so the only option is

[issue37267] os.dup() creates an inheritable fd when handling a character file on Windows

2019-07-10 Thread Josh Rosenberg
Josh Rosenberg added the comment: This may have caused a regression, see #37549. -- nosy: +josh.r ___ Python tracker ___ ___

[issue37549] os.dup() fails for standard streams on Windows 7

2019-07-10 Thread Josh Rosenberg
Josh Rosenberg added the comment: This seems likely to have been caused by the fixes for #37267, which fixes an issue with os.dup leaving character streams inheritable (when the documentation specifies that the result must be non-inheritable). The code originally didn't try to make the

[issue21478] mock calls don't propagate to parent (autospec)

2019-07-10 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > I think a possible fix is to move the inner mock extraction out to the > attach_mock function as that function contains code to clear the mock's > parent and name attributes. Downside is that that would make it fail on > Dmitry's toy example.

[issue21478] mock calls don't propagate to parent (autospec)

2019-07-10 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: +14493 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14688 ___ Python tracker ___

[issue37550] SSL Pip Error

2019-07-10 Thread Bane Banane
New submission from Bane Banane : Python PIP SSL module is not avaible when i start: pip install -- assignee: christian.heimes components: SSL messages: 347630 nosy: Bane Banane, christian.heimes priority: normal severity: normal status: open title: SSL Pip Error type: compile error

[issue37549] os.dup() fails for standard streams on Windows 7

2019-07-10 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eryksun ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33408] Enable AF_UNIX support in Windows

2019-07-10 Thread Paul Monson
Paul Monson added the comment: I've been asked by my team to investigate what is required to enable AF_UNIX in Python. Is anyone else actively investigating this? I did a prelinary investigation and the impact on test in test_sockets was pretty simple. However there were 26 test

[issue37549] os.dup() fails for standard streams on Windows 7

2019-07-10 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue37482] Email address display name fails with both encoded words and special chars

2019-07-10 Thread R. David Murray
R. David Murray added the comment: FYI, it would have been most helpful if you had posted your example in the issue text instead of as an attached file, as it explains the problem better than your text does :) Here is a minimal reproducer: >>> m = EmailMessage(policy=strict) >>> m['From'] =

[issue37549] os.dup() fails for standard streams on Windows 7

2019-07-10 Thread DaveB
New submission from DaveB : os.dup(fd) generates an OSError for standard streams (0: stdin, 1: stdout, 2: stderr) on Windows 7. Works as expected on Windows 10. Working backwards we found the issue first appears in Python 3.7.4rc1 and 3.8.0b2 on Windows 7. Earlier releases work as

[issue37548] Document range of atan, acos and asin

2019-07-10 Thread Mark Dickinson
Change by Mark Dickinson : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37539] CheckCommitCursorReset regression sqlite3 test fails with old sqlite3

2019-07-10 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37545] Argparse Tutorial - unreasonable operators

2019-07-10 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +paul.j3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37168] Decimal divisions sometimes 10x or 100x too large

2019-07-10 Thread Phil Frost
Phil Frost added the comment: Not yet. I had a hell of a time getting gdb to follow gunicorn forks so it would watch the workers but not also every other thing using popen or os.system(). And the lldb package on Alpine doesn't seem to work. So we're currently in the process of testing a

[issue35021] Assertion failures in datetimemodule.c.

2019-07-10 Thread Ned Deily
Ned Deily added the comment: Assuming answer to previous question is "no" -> closing -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue37500] 3.8.0b2 no longer optimizes away "if 0:" ?

2019-07-10 Thread Ned Deily
Change by Ned Deily : -- keywords: -3.7regression nosy: -ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37544] Multiple test failures during build

2019-07-10 Thread Ned Deily
Ned Deily added the comment: And, if the unoptimized build succeeds, also try running the tests with it: make test -- ___ Python tracker ___

[issue37544] Multiple test failures during build

2019-07-10 Thread Ned Deily
Ned Deily added the comment: Sorry you are having problems. Suggest first trying a clean build without --enable-optimizations. If that works, please supply the output from: ./python -m test.pythoninfo -- nosy: +ned.deily ___ Python tracker

[issue37546] colors in ttk treeview tags are ignored

2019-07-10 Thread Ned Deily
Ned Deily added the comment: Thanks for the report. The problem you are seeing here appears to be a duplicate of that described in Issue36468 which describes this behavior change as a regression in Tk and also suggests a workaround. -- nosy: +ned.deily resolution: -> duplicate

[issue37537] Compute allocated blocks in _Py_GetAllocatedBlocks()

2019-07-10 Thread Tim Peters
Change by Tim Peters : -- nosy: +tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37543] Optimize pymalloc for non PGO build

2019-07-10 Thread Tim Peters
Change by Tim Peters : -- nosy: +tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33408] Enable AF_UNIX support in Windows

2019-07-10 Thread Giampaolo Rodola'
Change by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7946] Convoy effect with I/O bound threads and New GIL

2019-07-10 Thread Omer Katz
Omer Katz added the comment: FYI I can verify that the original benchmark is still valid on Python 3.7.3. I'm running the client on an 8 core CPU. The result is 30.702 seconds (341534.322 bytes/sec). I'll need somebody to decide how we're going to fix this problem. I can do the legwork.

[issue37547] Add _PyObject_CallMethodOneArg()

2019-07-10 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- keywords: +patch pull_requests: +14492 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14685 ___ Python tracker ___

[issue37548] Document range of atan, acos and asin

2019-07-10 Thread Mark Dickinson
New submission from Mark Dickinson : A small nice-to-have: it would be good to document the range of the inverse trigonometric functions `math.atan`, `math.asin` and `math.acos`, in both the docstrings and the built documentation. There are standard "principal values" for each of these

[issue37531] Fix regrtest timeout for subprocesses: regrtest -jN --timeout=SECONDS

2019-07-10 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- keywords: +patch pull_requests: +14491 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/14679 ___ Python tracker

[issue34697] ctypes: Crash if manually-created CField instance is used

2019-07-10 Thread hai shi
Change by hai shi : -- nosy: -shihai1991 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37547] Add _PyObject_CallMethodOneArg()

2019-07-10 Thread Jeroen Demeyer
New submission from Jeroen Demeyer : We already have _PyObject_CallNoArg() _PyObject_CallOneArg() _PyObject_CallMethodNoArgs() so it makes sense to also add _PyObject_CallMethodOneArg() -- components: Interpreter Core messages: 347619 nosy: inada.naoki, jdemeyer, vstinner priority:

[issue37546] colors in ttk treeview tags are ignored

2019-07-10 Thread dave
New submission from dave : The following example code fails in Python 3.7.3 64 bit (both lines are displayed in black). It works correctly in 3.7.2 and earlier. import tkinter as tk import tkinter.ttk as ttk root = tk.Tk() ttk.Label(root, text='This is a RED label', foreground='red').pack()

[issue37151] Calling code cleanup after PEP 590

2019-07-10 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- pull_requests: +14490 pull_request: https://github.com/python/cpython/pull/14684 ___ Python tracker ___

[issue37542] UDP sendto() sends duplicate packets

2019-07-10 Thread Andy Papageorgiou
Change by Andy Papageorgiou : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37545] Argparse Tutorial - unreasonable operators

2019-07-10 Thread Nathan Oyama
New submission from Nathan Oyama : In "Python 3.7 Documentation > Python HOWTOs > Argparse Tutorial" (https://docs.python.org/3.7/howto/argparse.html), search this page for elif args.verbosity >= 1: The operator ">=" should read "==" because args.verbosity cannot be 2 or greater after the

[issue37543] Optimize pymalloc for non PGO build

2019-07-10 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +14489 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14674 ___ Python tracker ___

[issue37544] Multiple test failures during build

2019-07-10 Thread Jarek Zgoda
New submission from Jarek Zgoda : I'm trying to build Python-3.7.4 from release tarball. Configure line: ./configure --prefix=/opt/python-3.7.4 --disable-shared --enable-optimizations System: Ubuntu 18.04.2 amd64, 4.15.0-54-generic #58-Ubuntu SMP Build fails. -- components: Build

[issue29548] Recommend PyObject_Call* APIs over PyEval_Call*() APIs

2019-07-10 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- pull_requests: +14488 pull_request: https://github.com/python/cpython/pull/14683 ___ Python tracker ___

[issue37543] Optimize pymalloc for non PGO build

2019-07-10 Thread Inada Naoki
New submission from Inada Naoki : When PGO is not used, compilers don't know which part is hot. So gcc failed to inline hot code in pymalloc_alloc and pymalloc_free into _PyObject_Malloc and _PyObject_Free. For example, only this code is inlined into _PyObject_Malloc. if (nbytes == 0) {

[issue37484] Use PY_VECTORCALL_ARGUMENTS_OFFSET for __exit__

2019-07-10 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue37483] Add PyObject_CallOneArg()

2019-07-10 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue37542] UDP sendto() sends duplicate packets

2019-07-10 Thread Andy Papageorgiou
New submission from Andy Papageorgiou : Wireshark reports two identical back to back packets sent for each sendto(), timing between packets is between 2 and 10us. Note this is on a point to point ethernet (just 1 cable, no switches, routers or anything else in between) to an embedded platform

[issue37538] Refactor zipfile to ease subclassing and enhancement

2019-07-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I did not read your code yet, but I think it is the right way. If your btanch contains changes which you do not want to commit to CPython, but which makes the purpose of other changes clearer, you can create a PR against the master in your fork

[issue37540] vectorcall: keyword names must be strings

2019-07-10 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- keywords: +patch pull_requests: +14487 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14682 ___ Python tracker ___

[issue37541] get_python_lib() returns incorrect path for site-packages

2019-07-10 Thread Saba Kauser
New submission from Saba Kauser : HI, I am using get_python_lib() to copy certain data files to site-pacakges location while installation of package ibm_db. I am using this function to execute a command as well on one of the shared library @package install location. So far, I have faced

[issue37524] IDLE error on closing 3.8+ debug build

2019-07-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: One time after doing something unusual with IDLE (editing theme?, not sure) I did not get message on exit. But next time, back again. -- ___ Python tracker

[issue37517] Improve error messages for Windows reserved file names

2019-07-10 Thread Eryk Sun
Eryk Sun added the comment: > if the operation succeeds, no error/message is displayed Some errors pass silently and may be confusing later on. For example, CreateDirectoryW calls NtCreateFile with the disposition FILE_CREATE and the option FILE_DIRECTORY_FILE (i.e. the call *must* create a

[issue37538] Refactor zipfile to ease subclassing and enhancement

2019-07-10 Thread Daniel Hillier
Daniel Hillier added the comment: I've started a branch on my github fork if anyone wants to follow along. https://github.com/danifus/cpython/tree/zipfile_refactor Is there a better way to manage this in terms of review and suggestions as I add more commits? --

[issue37540] vectorcall: keyword names must be strings

2019-07-10 Thread Jeroen Demeyer
New submission from Jeroen Demeyer : Keyword names in calls are expected to be strings, however it's currently not clear who should enforce/check this. I suggest to fix this for vectorcall/METH_FASTCALL and specify that it's the caller's job to make sure that keyword names are strings (str

[issue37532] email.header.make_header() doesn't work if any `ascii` code is out of range(128)

2019-07-10 Thread Aldwin Pollefeyt
Aldwin Pollefeyt added the comment: Changing everything to utf-8 breaks a lot of tests, so here a less invasive solution? diff --git a/Lib/email/header.py b/Lib/email/header.py index 4ab0032bc6..1e71eeae7f 100644 --- a/Lib/email/header.py +++ b/Lib/email/header.py @@ -136,7 +136,14 @@ def

[issue37539] CheckCommitCursorReset regression sqlite3 test fails with old sqlite3

2019-07-10 Thread Matej Cepl
New submission from Matej Cepl : When building Python 2.7.16 on very old SUSE Enterprise Linux (SLE-11), with gcc 4.3, sqlite3 3.6.4, CheckCommitCursorReset fails with: test test_sqlite failed -- Traceback (most recent call last): File

[issue36044] PROFILE_TASK for PGO build is not a good workload

2019-07-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: In my experience, people overthink what needs to go into a CPython profiling run. Sure, our default PROFILE_TASK is rather unfortunate because it takes a very long time by including runs of super slow tests that won't meaningfully contribute profile data

[issue37538] Refactor zipfile to ease subclassing and enhancement

2019-07-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37538] Refactor zipfile to ease subclassing and enhancement

2019-07-10 Thread Daniel Hillier
New submission from Daniel Hillier : I've written https://github.com/danifus/pyzipper which incorporates a refactor of zipfile.py in order to support winzip AES encryption. I don't intend to include the crypto code but I would like to incorporate the refactor to help others subclass and extend

[issue37537] Compute allocated blocks in _Py_GetAllocatedBlocks()

2019-07-10 Thread Neil Schemenauer
Neil Schemenauer added the comment: PyPerformance result, using --enable-optimizations +-+-+--+ | Benchmark | base| no-allocated | +=+=+==+

[issue37537] Compute allocated blocks in _Py_GetAllocatedBlocks()

2019-07-10 Thread Neil Schemenauer
Change by Neil Schemenauer : -- keywords: +patch pull_requests: +14486 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14680 ___ Python tracker

[issue37537] Compute allocated blocks in _Py_GetAllocatedBlocks()

2019-07-10 Thread Neil Schemenauer
New submission from Neil Schemenauer : This is a small but measurable optimization for _PyObject_Malloc and _PyObject_Free. It slows down _Py_GetAllocatedBlocks a bit but I think that's a price worth paying. -- components: Interpreter Core messages: 347602 nosy: nascheme priority: