[issue38753] AsyncMock not cited as new in 3.8

2019-11-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +lisroach, xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38753] AsyncMock not cited as new in 3.8

2019-11-08 Thread John Belmonte
New submission from John Belmonte : AsyncMock appears to be new in Python 3.8, but doc is missing info on when it was introduced. https://docs.python.org/3.8/library/unittest.mock.html#unittest.mock.AsyncMock -- assignee: docs@python components: Documentation messages: 356290 nosy:

[issue38692] add a pidfd child process watcher

2019-11-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: It seems like systemd-nspawn is just breaking everything: https://sourceware.org/ml/libc-alpha/2019-11/msg00277.html -- ___ Python tracker

[issue38692] add a pidfd child process watcher

2019-11-08 Thread Kyle Stanley
Kyle Stanley added the comment: [aeros:~/repos/benjaminp-cpython]$ ./python -m test test_posix -F (asyncio-pidfd) ... 0:08:52 load avg: 1.89 [1008] test_posix 0:08:52 load avg: 2.22 [1009] test_posix ... 1008 tests OK. Total duration: 8 min 52 sec Tests result: INTERRUPTED --

[issue38692] add a pidfd child process watcher

2019-11-08 Thread Kyle Stanley
Kyle Stanley added the comment: > [aeros:~/repos/benjaminp-cpython]$ ./python -m test test_pty -F > (asyncio-pidfd) ... 0:01:31 load avg: 1.57 [2506] test_pty 0:01:31 load avg: 1.57 [2507] test_pty Oops, looks like I copied the wrong results of a separate test I was running earlier.

[issue38692] add a pidfd child process watcher

2019-11-08 Thread Kyle Stanley
Kyle Stanley added the comment: > I got a failure in newly added test_pidfd_open: > I'm running kernel 5.3.7-x86_64-linode130 with Arch Linux. > I think you must still be experiencing some sort of sandboxing. I don't know > how else you would get an EPERM out of pidfd_open. I believe

[issue38681] 2to3 Conversion Result using BlankLine() can be Syntactically Incorrect

2019-11-08 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +16602 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17096 ___ Python tracker ___

[issue38747] Slowly introduce a subset of Jupyter console (IPython) features into CPython command line interactive mode

2019-11-08 Thread Steven D'Aprano
Steven D'Aprano added the comment: Marco: there's no need for these to be "slowly" introduced. If the features are worth having in the default REPL, they're worth having as soon as possible, without us artificially slowing the process down. It will be hard enough to get somebody willing and

[issue31542] pth files in site-packages of venvs are executed twice

2019-11-08 Thread wim glenn
Change by wim glenn : -- nosy: +wim.glenn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38747] Slowly introduce a subset of Jupyter console (IPython) features into CPython command line interactive mode

2019-11-08 Thread Steven D'Aprano
Steven D'Aprano added the comment: Terry, I think you were extremely over-eager, almost aggressively so, to close this feature request, especially since your reasons given are rather bogus: IPython isn't based on a GUI, it works in a text mode console too, including on Windows.

[issue38747] Slowly introduce a subset of Jupyter console (IPython) features into CPython command line interactive mode

2019-11-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: In interactive mode, python.exe interacts with a console/(dumb terminal) through the std streams using \n as a special character It gets input from stdin, send output to stdout or errors to stderr. The terminal, not python, handles line editing and

[issue38746] HTML5 named character references not consistent

2019-11-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Questions should usually be asked on python-list or elsewhere. To answer, html5 was created from https://html.spec.whatwg.org/multipage/named-characters.html with these issues and patches. #3 dc44f55cc9dc1d016799362c344958baab328ff4

[issue38740] Line count mismatch between open() vs sys.stdin api calls

2019-11-08 Thread Thamme Gowda
Change by Thamme Gowda : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue16245] Update html.entities.html5 dictionary and parseentities.py

2019-11-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: According to git blame, the html5 dict in https://github.com/python/cpython/blob/master/Lib/html/entities.py has changed in 7 years. On the other hand, the standard on which it is based, https://html.spec.whatwg.org/multipage/named-characters.html, was

[issue38752] __init__ taking out of context variables

2019-11-08 Thread Eric V. Smith
Eric V. Smith added the comment: Also: you're statement that bar was initialized to "some value" isn't true: you didn't use attr1 in your __init__ method, so "some value" was never used. If you're confused, I suggest you ask on the python-list or tutor mailing lists. More info here:

[issue38752] __init__ taking out of context variables

2019-11-08 Thread Eric V. Smith
Eric V. Smith added the comment: This isn't a bug, it's how the language works. You're not forced to use the parameters to a function (in this case __init__), and you can reference any variable, including a global. -- components: -asyncio nosy: +eric.smith

[issue38746] HTML5 named character references not consistent

2019-11-08 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38740] Line count mismatch between open() vs sys.stdin api calls

2019-11-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Should this be closed as 'not a bug'? -- nosy: +terry.reedy title: Line count mis match between open() vs sys.stdin api calls -> Line count mismatch between open() vs sys.stdin api calls ___ Python tracker

[issue38752] __init__ taking out of context variables

2019-11-08 Thread Sebastian Bevc
New submission from Sebastian Bevc : Hello, This is my first bug report. While doing some homework i came to realize that the __init__ of a class was taking out of context variables. class Foo(object): def __init__(self, attr1): self.out_of_context = out_of_context # Raises NameError

[issue38751] Document maximum JSON depth or remove it.

2019-11-08 Thread Борис Верховский
New submission from Борис Верховский : import json foo = {} for i in range(1000): json.dumps(foo) print(i) foo = {'bar': foo} Will error at 994. At a minimum this magic number should be documented, but it would be better if the json library could handle arbitrarily nested JSON

[issue38734] Python 3.7 and 3.8 in Windows Store do not start under git bash

2019-11-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: ['crash' means something like Windows 'your program has quit running' box.] Do other Windows Store 'apps' run from bash? (Or from Command Prompt or Power Shell?) For an immediate solution, install Python normally, as a command-line program, with the

[issue27465] IDLE:Make help source menu entries unique and sorted.

2019-11-08 Thread Zackery Spytz
Zackery Spytz added the comment: I have created a pull request for this issue. Please consider taking a look. -- nosy: +ZackerySpytz ___ Python tracker ___

[issue38688] Python 3.8 regression: endless loop in shutil.copytree

2019-11-08 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +3.8regression stage: -> needs patch type: crash -> behavior ___ Python tracker ___ ___

[issue38681] 2to3 Conversion Result using BlankLine() can be Syntactically Incorrect

2019-11-08 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38678] TypeError for Tutorial 10.3 Example 2

2019-11-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Crash means 'python stopped erroneously without a traceback'. Same exception in 3.8 and 3.9. Argparse uses None for a count of 0. I consider this a bug. If not changed, it should be documented. As argparse is, the example needs to recode None to 0.

[issue38679] Scipy and Scikit learn library installation issues

2019-11-08 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue38673] REPL shows continuation prompt (...) when comment or space entered

2019-11-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Entering 'pass' or a completely blank line results in a new primary prompt, at least on Windows. The Windows REPL otherwise prints ... even for effectively blank lines. IDLE usually prints a new prompt for effectively blank lines. >>> >>> #a >>> # a >>>

[issue38675] Improve scope example in Tutorial, chapter 9

2019-11-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: To me, this is a plausible addition -- nosy: +terry.reedy ___ Python tracker ___ ___

[issue38675] Improve scope example in Tutorial, chapter 9

2019-11-08 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: Sug. for the scope example in TPT Chapter 9 -> Improve scope example in Tutorial, chapter 9 ___ Python tracker ___

[issue38749] sqlite3 driver fails on four byte unicode strings coming from JSON_EXTRACT

2019-11-08 Thread mike bayer
mike bayer added the comment: silly me thinking python devs had better access to SQLite devs :) -- ___ Python tracker ___ ___

[issue38749] sqlite3 driver fails on four byte unicode strings coming from JSON_EXTRACT

2019-11-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It awaits moderator approval. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38749] sqlite3 driver fails on four byte unicode strings coming from JSON_EXTRACT

2019-11-08 Thread mike bayer
mike bayer added the comment: Hi where did you report it?I don't see it on the mailing list or in their fossil tracker. -- ___ Python tracker ___

[issue38750] Solve IPv4 categorisation issues with the ipaddress module

2019-11-08 Thread Pete Wicken
Pete Wicken added the comment: In addition to my previous comment, I think a more generic "is_special" could cover everything in the IANA special purpose address table for ease of checking anything that isn't publicly available IP. -- ___ Python

[issue38749] sqlite3 driver fails on four byte unicode strings coming from JSON_EXTRACT

2019-11-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have reported a bug to SQLite. Will see an answer. It could be possible to implement a workaround in Python if this behavior will not be fixed. -- nosy: +ghaering ___ Python tracker

[issue27465] IDLE:Make help source menu entries unique and sorted.

2019-11-08 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +16601 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/17093 ___ Python tracker

[issue38750] Solve IPv4 categorisation issues with the ipaddress module

2019-11-08 Thread Pete Wicken
Change by Pete Wicken : -- components: +Library (Lib) type: -> behavior versions: +Python 3.9 ___ Python tracker ___ ___

[issue38750] Solve IPv4 categorisation issues with the ipaddress module

2019-11-08 Thread Pete Wicken
New submission from Pete Wicken : As alluded to in issue bpo-38655, the behaviour for getting categorising IPv4 networks is inconsistent with the IANA guideline, which the docs say it follows. I'm proposing we either change the documentation so that it describes the behaviour that should

[issue38723] Pdb._runscript should use io.open_code() instead of open()

2019-11-08 Thread Jason Killen
Jason Killen added the comment: I flipped through PEP 578 (Runtime Audit Hooks) and this seems like the type of situation that PEP 578 was trying to handle. I've got a change that seems to be working and can provide a PR or whatever once I remember/read up on doing that. (I'm a very

[issue38749] sqlite3 driver fails on four byte unicode strings coming from JSON_EXTRACT

2019-11-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Seems this is a bug in JSON_EXTRACT. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue38749] sqlite3 driver fails on four byte unicode strings coming from JSON_EXTRACT

2019-11-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: sqlite> select JSON_EXTRACT('["t\u00e8\u015b\ud835\udd99"]', '$[0]'); tèś�� -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue38672] mimetypes.init() fails if no access to one of known files

2019-11-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: An exception report is a failure to finish but not a crash as meant here. The current code requires all known files and any file explicitly passes to be readable. The proposed simple change would make it OK if none of them are. But is this really OK? Is

[issue32417] fromutc does not respect datetime subclasses

2019-11-08 Thread Jason R. Coombs
Jason R. Coombs added the comment: This issue broke a date subclass in the calendra project (https://github.com/jaraco/calendra/issues/11). I acknowledge this change was a known breakage, but I mention it here and link the downstream issue for your information. -- nosy: +jaraco

[issue38669] patch.object should raise another error when first argument is a str

2019-11-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: This enhancement request (no backports) is about the unittest.mock patch.object. https://docs.python.org/3/library/unittest.mock.html#unittest.mock.patch.object -- nosy: +terry.reedy type: -> enhancement versions: -Python 3.5, Python 3.6, Python

[issue38744] python 3.8 hang in multiprocessing.Pool() locking on FreeBSD

2019-11-08 Thread Ned Deily
Change by Ned Deily : -- nosy: +davin, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38749] sqlite3 driver fails on four byte unicode strings coming from JSON_EXTRACT

2019-11-08 Thread mike bayer
New submission from mike bayer : When using unicode characters inside of JSON strings, values retrieved via the JSON_EXTRACT SQLite function fail to be decoded by the sqlite3 driver if they include four-byte unicode characters. Version information for my build, which is Fedora 30: Python

[issue38707] Multiprocessing: bug with Native ID for threading.mainthread()

2019-11-08 Thread Ned Deily
Change by Ned Deily : -- nosy: +davin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38500] Provide a way to get/set PyInterpreterState.frame_eval without needing to access interpreter internals

2019-11-08 Thread Fabio Zadrozny
Fabio Zadrozny added the comment: @Mark I can think of many use-cases which may break if the function code is changed (users can change the code in real-use cases and when they do that they'd loose debugging). So, as long as the function code is part of the public API of Python, the

[issue38500] Provide a way to get/set PyInterpreterState.frame_eval without needing to access interpreter internals

2019-11-08 Thread Mark Shannon
Mark Shannon added the comment: It sounds to me like `PyInterpreterState.eval_frame` is being used to lazily modify the bytecode to support breakpoints. I can see no reason why changing the bytecode can't be done via `function.__code__`. Suppose the code-object with the breakpoint add is

[issue38738] Fix formatting of True and False

2019-11-08 Thread Vedran Čačić
Vedran Čačić added the comment: Very nice. I aplaud your return to the original Python terminology, of true and false as adjectives, and True and False as names for specific objects. Perlisms such as `truthy` or `that evaluates as True` simply make my head spin. I wrote one comment,

[issue38747] Slowly introduce a subset of Jupyter console (IPython) features into CPython command line interactive mode

2019-11-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +Interpreter Core -Demos and Tools priority: normal -> low type: -> enhancement ___ Python tracker ___

[issue38729] mock.create_autospec generates incorrect signature for some decorated methods

2019-11-08 Thread Ben Reilly
Ben Reilly added the comment: Yes, your description sounds right, and I had zero-ed in on the same park of the mock code when I was doing my investigation. I know that this is a peculiar situation, but one thing to note is that `inspect.signature` gets the signature right on these wrapped

[issue38739] pyperformance html5lib cannot import Mapping (and fails)

2019-11-08 Thread Travis Lazar
Travis Lazar added the comment: Really appreciate all the commentary and references here. Thanks for that. The resolution of disabling html5lib in pyperformance is good. I'll assume no html5lib benchmarking in pyperformance (master) until a version of html5lib is released compatible with

[issue38743] configure: on macOS (darwin) add CoreFoundation to flags before checking for gettext

2019-11-08 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38692] add a pidfd child process watcher

2019-11-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: I think you must still be experiencing some sort of sandboxing. I don't know how else you would get an EPERM out of pidfd_open. -- ___ Python tracker

[issue38740] Line count mis match between open() vs sys.stdin api calls

2019-11-08 Thread Thamme Gowda
Thamme Gowda added the comment: Thanks for the quick response. Yes ``newline="\n"`` fixed it. So it as a known behavior. (I was tempted to consider it as a bug since the behavior differed from sys.stdin) Thank you. -- ___ Python tracker

[issue38748] 32 bit ctypes stdcall callback fails to restore stack pointer

2019-11-08 Thread David Heffernan
New submission from David Heffernan : Starting with Python 3.8 certain ctypes callbacks fail to restore the stack pointer. In the repo below, when the DLL is compiled with MSVC under default debug settings, running the Python script leads to a debug error dialog which says: Run-Time Check

[issue38747] Slowly introduce a subset of Jupyter console (IPython) features into CPython command line interactive mode

2019-11-08 Thread Marco Sulla
New submission from Marco Sulla : Sometimes I’m lazy and I would test code copy - pasted from internet or from other sources directly in the interpreter, in interactive mode. But if the code contains completely blank lines, the copy - paste fails. For example: def f(): print("Marco")

[issue38743] configure: on macOS (darwin) add CoreFoundation to flags before checking for gettext

2019-11-08 Thread Ned Deily
Change by Ned Deily : -- components: +macOS nosy: +ned.deily, ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list mailing

[issue38736] argparse: wrong type from get_default when type is set

2019-11-08 Thread paul j3
paul j3 added the comment: Yes you can set the default to be any object, such as an evaluated string. If it isn't a string it won't be passed through 'type'. The purpose of the delayed evaluation that I described is to avoid unnecessary evaluations. The worse case would be a write

[issue38746] HTML5 named character references not consistent

2019-11-08 Thread Mike Raider
New submission from Mike Raider : In the file cpython/blob/master/Lib/html/entities.py the HTML5 named character references (line 264) do not look consistent. Some references have a semicolon at the end, some not, and some have both variants. Is there a reason for this? --

[issue38745] pygame install error using python 3.8.0

2019-11-08 Thread Christian Heimes
Christian Heimes added the comment: pygame is a third-party component and not developed by the Python core team. This bug tracker is only for issues with Python itself. Please report the problem with pygame. -- nosy: +christian.heimes resolution: -> third party stage: -> resolved

[issue38745] pygame install error using python 3.8.0

2019-11-08 Thread Suresh Murugesan
New submission from Suresh Murugesan : I tried to install pygame, using pip install pygame, on my windows 10 running python 3.8.0. But it fails with the following error messages Can you please help. I read on the internet that 3.8 is not stable yet for pygame. Is it true? ERROR: Command

[issue38744] python 3.8 hang in multiprocessing.Pool() locking on FreeBSD

2019-11-08 Thread Dmitry Marakasov
New submission from Dmitry Marakasov : System: FreeBSD 12.0-RELEASE, amd64. This simple program from multiprocessing import Pool from time import sleep Pool().map(sleep, [0.01] * 10) works fine with python 3.7, but is likely (about 20-50% probability on my 4 core box) to hang

[issue32309] Implement asyncio.run_in_executor shortcut

2019-11-08 Thread Yury Selivanov
Yury Selivanov added the comment: > I think that I'm still not understanding something important though. Even if > we initialize our ThreadPoolExecutor outside of __init__ (in a start() > coroutine method, as your proposing), it seems like the threads will be > spawned throughout the

[issue37784] Compiling Python 3 with sqlite impossible when sqlite installation is in a non standard directory

2019-11-08 Thread Emmanuel C
Emmanuel C added the comment: Sorry guy, I've found my error : I have to use the CPPFLAGS instead of the CFLAGS in order to include sqlite3 into my own Python compiled installation. -- resolution: -> not a bug stage: -> resolved status: open -> closed

[issue36852] Python3.7.2 fails to cross-compile (yocto / openembedded) when target is mips softfloat

2019-11-08 Thread Matthias Klose
Matthias Klose added the comment: I'll get back on this -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36852] Python3.7.2 fails to cross-compile (yocto / openembedded) when target is mips softfloat

2019-11-08 Thread Matthias Schoepfer
Matthias Schoepfer added the comment: Hi! I submitted this patch, it even is now on yocto zeus. Any progress, will someone review it?! Thanks and Regards, Matthias -- ___ Python tracker

[issue38743] configure: on macOS (darwin) add CoreFoundation to flags before checking for gettext

2019-11-08 Thread Jakub Piotr Cłapa
Change by Jakub Piotr Cłapa : -- keywords: +patch pull_requests: +16599 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17090 ___ Python tracker

[issue38743] configure: on macOS (darwin) add CoreFoundation to flags before checking for gettext

2019-11-08 Thread Jakub Piotr Cłapa
New submission from Jakub Piotr Cłapa : macOS needs to link to CoreFoundation for gettext to work. We reorder the autoconf tests so CoreFoundation is added to LIBS earlier and the -lintl test does not fail (which would exclude it from the final set of flags). Btw. the whole test seems fishy:

[issue38736] argparse: wrong type from get_default when type is set

2019-11-08 Thread Erik Ahlén
Erik Ahlén added the comment: So, not a bug since you can just do `default = Path('file.txt')`? -- ___ Python tracker ___ ___

[issue38692] add a pidfd child process watcher

2019-11-08 Thread Chih-Hsuan Yen
Chih-Hsuan Yen added the comment: I got a failure in newly added test_pidfd_open: == FAIL: test_pidfd_open (test.test_posix.PosixTester) -- Traceback (most

[issue38644] Pass explicitly tstate to function calls

2019-11-08 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16598 pull_request: https://github.com/python/cpython/pull/17089 ___ Python tracker ___

[issue38644] Pass explicitly tstate to function calls

2019-11-08 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7e433733175e76627d46ed9bdab543860cd1452d by Victor Stinner in branch 'master': bpo-38644: Add _PyObject_VectorcallTstate() (GH-17052) https://github.com/python/cpython/commit/7e433733175e76627d46ed9bdab543860cd1452d --

[issue38740] Line count mis match between open() vs sys.stdin api calls

2019-11-08 Thread Steven D'Aprano
Steven D'Aprano added the comment: This seems to be the difference between Universal Newlines or not. In Python 2, you have to set it explicitly with a U in the open mode: $ python2.7 -c 'import sys; print("Linecount=", sum(1 for x in open(sys.argv[1], "Ur")))' line_break_err.txt

[issue38276] test_asyncio: test_cancel_make_subprocess_transport_exec() failed on RHEL7 LTO + PGO 3.x

2019-11-08 Thread STINNER Victor
STINNER Victor added the comment: Timeout on the Ubuntu job of Azure Pipelines: https://dev.azure.com/Python/cpython/_build/results?buildId=53629=logs=256d7e09-002a-52d7-8661-29ee3960640e 0:27:55 load avg: 0.11 [419/419/2] test_asyncio crashed (Exit code 1) Timeout (0:20:00)! Thread

[issue38740] Line count mis match between open() vs sys.stdin api calls

2019-11-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Try to add newline="\n" in open(). -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue16575] ctypes: unions as arguments

2019-11-08 Thread STINNER Victor
STINNER Victor added the comment: 3.7 refleaks buildbots pass again (ignoring a few warnings). -- resolution: -> fixed ___ Python tracker ___

[issue38742] ElementTree won't parse comments before root element

2019-11-08 Thread yucheng chen
New submission from yucheng chen : issue8277 It couldn't work for those comments before the root element. It will raise an error that "xml.etree.ElementTree.ParseError: multiple elements on top level". Example: test.xml test.py --- from xml.etree import

[issue38739] pyperformance html5lib cannot import Mapping (and fails)

2019-11-08 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue38739] pyperformance html5lib cannot import Mapping (and fails)

2019-11-08 Thread STINNER Victor
STINNER Victor added the comment: I fixed the issue by disabling temporarily the benchmark, until html5lib is fixed: https://github.com/python/pyperformance/commit/8043c159215836fa733ee0815feecdd359e8852a -- That's Python bug tracker. The pyperformance bug tracker is at: