[issue37348] Optimize PyUnicode_GetString for short ASCII strings

2019-06-21 Thread Inada Naoki
Inada Naoki added the comment: > I don't understand how _PyUnicodeWriter could be slow. It does not > overallocate by default. It's just wrapper to implement efficient memory > management. I misunderstood _PyUnicodeWriter. I thought it caused one more allocation, but it doesn't. But

[issue37298] IDLE: Revise html to tkinker converter for help.html

2019-06-21 Thread Cheryl Sabella
Cheryl Sabella added the comment: tl;dr I think it's a difference in the CSS for the HTML5 writer. In the HTMLTranslator class for docutils writer [1], I found the following docstring, specifically the line "The html5_polyglot writer solves this

[issue37345] Add formal support for UDPLITE protococl

2019-06-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: Sorry. Please drop helper methods but keep IPPROTO_UDPLITE, UDPLITE_SEND_CSCOV, UDPLITE_RECV_CSCOV constants. -- ___ Python tracker ___

[issue21822] KeyboardInterrupt during Thread.join hangs that Thread

2019-06-21 Thread Géry
Géry added the comment: I am having the same blocked signal issue on Windows when using Thread.join. This program does not print "interrupted" after pressing Ctrl+C: import threading import time def f(): while True: print("processing") time.sleep(1) if __name__ ==

[issue37357] mbox From line wrongly detected

2019-06-21 Thread Andrew Bernard
New submission from Andrew Bernard : When parsing an mbox file, the Python mailbox library is confused by the presence of lines starting with 'From' in the body of the text. A new fragmentary message item is created, but this is wrong. The following sample code and input demonstrates this.

[issue37358] Use vectorcall for functools.partial

2019-06-21 Thread Jeroen Demeyer
New submission from Jeroen Demeyer : functools.partial already has some optimizations to use vectorcall (formerly known as fastcall) for its onward calls, so it makes a lot of sense to also use vectorcall when being called. -- components: Library (Lib) messages: 346193 nosy:

[issue37250] C files generated by Cython set tp_print to 0: PyTypeObject.tp_print removed

2019-06-21 Thread Petr Viktorin
Petr Viktorin added the comment: > scientific projects that depend on it may lag longer as rebuilds and releases > will need to happen on PyPI, conda, and conda-forge. Keep in mind that binary artifacts (wheels, Conda/distro packages) should not be affected. They need to be re-built for

[issue32252] test_regrtest leaves a test_python_* directory in TEMPDIR

2019-06-21 Thread STINNER Victor
STINNER Victor added the comment: This issue has been fixed in a more generic way: when using -jN, child processes reuse the temporary directory of the main process, and then main process ensures that the temporary directory is always removed: commit 3c93153f7db5dd9b06f229e61978fd9199b3c097

[issue28890] logging.handlers: Document that QueueListener is a daemon thread

2019-06-21 Thread Vinay Sajip
Change by Vinay Sajip : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37357] mbox From line wrongly detected

2019-06-21 Thread Andrew Bernard
Change by Andrew Bernard : -- resolution: -> not a bug ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37357] mbox From line wrongly detected

2019-06-21 Thread Andrew Bernard
Andrew Bernard added the comment: Not really a bug. Results from problems with the loose mbix format and lack of standards. Nothing Python can do about it. -- ___ Python tracker

[issue37360] Building without OpenPTY and without stropts.h

2019-06-21 Thread Nick Papior
Nick Papior added the comment: FYI: The problem arises since Intel adds a library path to: ../clck/2019.2.1/lib/intel64/ which has libutil.so! This means that the Intel compiler *may* not find OpenPTY since that may optionally be placed in libutil.so... Simply removing the path from the

[issue28890] logging.handlers: Document that QueueListener is a daemon thread

2019-06-21 Thread Julien Castiaux
Julien Castiaux added the comment: Hello, The purpose of the QueueListener is to provide a way to get messages sent by QueueHandlers. I was starting the QueueListener in is own mp.Process and was expecting the start() to hang. As it was not, the process was exiting logging a few messages

[issue37349] venv.EnvBuilder environmental variable hooks

2019-06-21 Thread Vinay Sajip
Vinay Sajip added the comment: > I'll take a stab at implementing this [custom_script_path] I'll certainly look at a PR for this functionality. -- ___ Python tracker ___

[issue37354] Write PowerShell Activate.ps1 to be static so it can be signed

2019-06-21 Thread Vinay Sajip
Vinay Sajip added the comment: > It's stored in pyvenv.cfg. Is it? $ python3.8maint -m venv --prompt "foo bar" /tmp/venv $ more /tmp/venv/pyvenv.cfg home = /home/vinay/projects/python/3.8 include-system-site-packages = false version = 3.8.0 prompt = 'foo bar' The source Python location is

[issue37357] mbox From line wrongly detected

2019-06-21 Thread SilentGhost
Change by SilentGhost : -- nosy: +barry, maxking, r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37357] mbox From line wrongly detected

2019-06-21 Thread SilentGhost
Change by SilentGhost : -- components: +email ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37356] Name of 64-bit OpenSSL v1.1.1 DLLs

2019-06-21 Thread Phil Thompson
Phil Thompson added the comment: I think I was incorrect in saying the suffix was the default when building v1.1.1 from source, so any problem I have (trying to share the DLL with different pre-built packages) is not a Python problem. Sorry for the noise. -- resolution: -> not a

[issue37347] Reference-counting problem in sqlite

2019-06-21 Thread Aleksandr Balezin
Aleksandr Balezin added the comment: Because destructor can be registered only for particular functions. For example sqlite3_progress_handler() can't register destructor. -- ___ Python tracker

[issue37359] test_regrtest: test_list_cases() fails on x86 Gentoo Installed with X 3.x

2019-06-21 Thread STINNER Victor
New submission from STINNER Victor : The root issue is likely related to "RuntimeWarning: tests may fail, unable to create temporary directory '/buildbot/tmp/tmpdir/test_python_28144': [Errno 17] File exists". I don't know if a previous buildbot run forgot to remove this directory, or if

[issue37356] Name of 64-bit OpenSSL v1.1.1 DLLs

2019-06-21 Thread Phil Thompson
Phil Thompson added the comment: A clarification... It seems the suffix is added when configured as VC-WIN64A but omitted when configured as VC-WIN64A-masm. ...still not a Python problem. -- ___ Python tracker

[issue37348] Optimize PyUnicode_GetString for short ASCII strings

2019-06-21 Thread Inada Naoki
Inada Naoki added the comment: Another micro benchmark: ``` $ ./python-master -m pyperf timeit -o m1.json 'b=b"foobar"' -- 'b.decode()' . Mean +- std dev: 93.1 ns +- 2.4 ns $ ./python -m pyperf timeit -o m2.json 'b=b"foobar"' -- 'b.decode()' . Mean +-

[issue37250] C files generated by Cython set tp_print to 0: PyTypeObject.tp_print removed

2019-06-21 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > Is four months really an unreasonable timeline? I thought most of these > packages released more frequently than CPython. I'm mostly worried about dependency chains. Right now, any project which depends on numpy cannot even test on 3.8b1 because numpy

[issue37360] Building without OpenPTY and without stropts.h

2019-06-21 Thread Nick Papior
New submission from Nick Papior : When trying to compile Python without OpenPTY and without stropts.h the compilation fails at Modules/posixmodule.c. Apparently there is a failed logic in the def's. It goes something like this: #ifdef HAVE_OPENPTY ... #elif defined(HAVE__GETPTY) ... #else

[issue37348] Optimize PyUnicode_GetString for short ASCII strings

2019-06-21 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +14105 pull_request: https://github.com/python/cpython/pull/14283 ___ Python tracker ___

[issue37298] IDLE: Revise html to tkinker converter for help.html

2019-06-21 Thread Cheryl Sabella
Cheryl Sabella added the comment: Adding on to my last post, it's not in the CSS, but it's that Sphinx 2.0 switches from a default of HTML4 to HTML5. The docutils comments explain the difference between the two.

[issue37071] HTMLParser mistakenly inventing new tags while parsing

2019-06-21 Thread Cheryl Sabella
Cheryl Sabella added the comment: Thank you for the report. Looking at the BeautifulSoup source, there is a comment about this scenario: # Unlike other parsers, html.parser doesn't send separate end tag # events for empty-element tags. (It's handled in #

[issue37250] C files generated by Cython set tp_print to 0: PyTypeObject.tp_print removed

2019-06-21 Thread Steve Dower
Steve Dower added the comment: FWIW, I agree totally with Petr's analysis. Jeroen's analysis ignores some points, has technical inaccuracies (nobody can use a static type compiled for 3.7 with 3.8), and is based on precedents that do not apply to this situation. (All of which I've mentioned

[issue37330] open(): remove 'U' mode, deprecated since Python 3.3

2019-06-21 Thread STINNER Victor
STINNER Victor added the comment: I reported the issue to docutils. In fact, docutils FileInput class was already fixed to prevent the deprecation warning, but there was no release yet: https://sourceforge.net/p/docutils/bugs/363/ -- ___ Python

[issue37250] C files generated by Cython set tp_print to 0: PyTypeObject.tp_print removed

2019-06-21 Thread Nick Coghlan
Nick Coghlan added the comment: It isn't the actively maintained projects that publish wheel files that I'm worried about fixing - it's the sdist only projects that would otherwise only need recompilation to work on the new Python version. With this fixed, and the PyCode_New -> PyCode_New +

[issue37250] C files generated by Cython set tp_print to 0: PyTypeObject.tp_print removed

2019-06-21 Thread Steve Dower
Steve Dower added the comment: > I'm curious what you mean here... msg345409 -- ___ Python tracker ___ ___ Python-bugs-list

[issue37250] C files generated by Cython set tp_print to 0: PyTypeObject.tp_print removed

2019-06-21 Thread Steve Dower
Steve Dower added the comment: > With this fixed, and the PyCode_New -> PyCode_New + PyCode_WithPosArgs fix > from bpo-37221 merged, then that long tail will get another few years of > life, and will start emitting deprecation warnings for the part that's > actually going to go away in

[issue37361] urllib3: TypeError: unsupported operand type(s) for -=: 'Session' and 'int' in Retry class

2019-06-21 Thread Andreas Jung
New submission from Andreas Jung : Python 3.7.3 The following code is support to add a retry to the requests module. "total" is correctly initialized with 5 here but internally self.total becomes an instation of "Session" import requests from requests.adapters import HTTPAdapter from

[issue37335] Add 646 ASCII alias to locale coercion tests.

2019-06-21 Thread Jakub Kulik
Change by Jakub Kulik : -- pull_requests: +14107 pull_request: https://github.com/python/cpython/pull/14285 ___ Python tracker ___

[issue37244] test_multiprocessing_forkserver: test_resource_tracker() failed on x86 Gentoo Refleaks 3.8

2019-06-21 Thread Pierre Glaser
Change by Pierre Glaser : -- keywords: +patch pull_requests: +14110 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14288 ___ Python tracker ___

[issue37358] Use vectorcall for functools.partial

2019-06-21 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- keywords: +patch pull_requests: +14106 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14284 ___ Python tracker ___

[issue37359] test_regrtest: test_list_cases() fails on x86 Gentoo Installed with X 3.x

2019-06-21 Thread STINNER Victor
STINNER Victor added the comment: Related change: commit 3c93153f7db5dd9b06f229e61978fd9199b3c097 Author: Victor Stinner Date: Tue May 14 15:49:16 2019 +0200 bpo-36915: regrtest always remove tempdir of worker processes (GH-13312) -- ___

[issue20443] __code__. co_filename should always be an absolute path

2019-06-21 Thread Nick Coghlan
Nick Coghlan added the comment: Perhaps `os._abspath_for_import`? If importlib finds it, then it can handle making early paths absolute itself, otherwise it will defer doing that until it has the full external import system bootstrapped. (importlib does try to make all paths absolute as it

[issue36888] Create a way to check that the parent process is alive for deamonized processes

2019-06-21 Thread Pierre Glaser
Change by Pierre Glaser : -- pull_requests: +14108 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/14286 ___ Python tracker ___

[issue37362] test_gdb must not fail on "unexpected" messages written into stderr

2019-06-21 Thread STINNER Victor
New submission from STINNER Victor : Currently, test_gdb fails if gdb logs messages on stderr which are "unexpected". I don't understand the rationale for that: Python is not supposed to test gdb. It's only supposed to check that python-gdb.py commands work as expected: stderr should be

[issue37250] C files generated by Cython set tp_print to 0: PyTypeObject.tp_print removed

2019-06-21 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > based on precedents that do not apply to this situation I'm curious what you mean here... -- ___ Python tracker ___

[issue37354] Write PowerShell Activate.ps1 to be static so it can be signed

2019-06-21 Thread Steve Dower
Steve Dower added the comment: One thing to note is that if we sign this file, it'll have to bypass the text substitution step completely to avoid modifying line endings or encoding. So there could be code changes in venv too. This would be a great contribution from a PowerShell expert, and

[issue36210] correct AIX logic in setup.py for (non-existant) optional extensions

2019-06-21 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset 08970cb03c61f62f4f69e7769d0075fa66bb86aa by Nick Coghlan (Michael Felt) in branch 'master': bpo-36210: update optional extension handling for AIX (GH-12202) https://github.com/python/cpython/commit/08970cb03c61f62f4f69e7769d0075fa66bb86aa

[issue37362] test_gdb must not fail on "unexpected" messages written into stderr

2019-06-21 Thread Dave Malcolm
Dave Malcolm added the comment: I think when I wrote this I was over-optimistically thinking that we could just add more patterns, but if it's becoming a pain, then your approach looks good to me. -- nosy: +dmalcolm ___ Python tracker

[issue30905] Embedding should have public API for interactive mode

2019-06-21 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- nosy: +nanjekyejoannah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37361] urllib3: TypeError: unsupported operand type(s) for -=: 'Session' and 'int' in Retry class

2019-06-21 Thread Andreas Jung
Change by Andreas Jung : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37361] urllib3: TypeError: unsupported operand type(s) for -=: 'Session' and 'int' in Retry class

2019-06-21 Thread Andreas Jung
Andreas Jung added the comment: invalid -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37362] test_gdb must not fail on "unexpected" messages written into stderr

2019-06-21 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +14109 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14287 ___ Python tracker ___

[issue37362] test_gdb must not fail on "unexpected" messages written into stderr

2019-06-21 Thread STINNER Victor
STINNER Victor added the comment: > In the past, I was lazy and just added more and more patterns to ignore on > stderr, but this approach doesn't work in the long term: gdb evolves > frequently, and there are always new messages. A recent example: test_gdb fails on Fedora because a warning

[issue37361] urllib3: TypeError: unsupported operand type(s) for -=: 'Session' and 'int' in Retry class

2019-06-21 Thread SilentGhost
Change by SilentGhost : -- resolution: -> not a bug type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37169] test_pyobject_is_freed_free fails with 3.8.0beta1

2019-06-21 Thread Matej Cepl
Matej Cepl added the comment: I don't think this has been really fixed, see attached log,even with the patch applied I am still getting: [ 6220s] == [ 6220s] FAIL: test_pyobject_freed_is_freed

[issue37316] mmap.mmap() passes the wrong variable to PySys_Audit()

2019-06-21 Thread Steve Dower
Steve Dower added the comment: New changeset 08286d52b29de604a4b187bf1f0d4209e39c926c by Steve Dower (Zackery Spytz) in branch 'master': bpo-37316: mmap.mmap() passes the wrong variable to PySys_Audit() (GH-14152)

[issue37316] mmap.mmap() passes the wrong variable to PySys_Audit()

2019-06-21 Thread Steve Dower
Steve Dower added the comment: Thanks! Well spotted. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37364] Use io.open_code for .pth files

2019-06-21 Thread Christian Heimes
Christian Heimes added the comment: +1 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37365] RecursionError not caught explicitly may crash with "Aborted (core dumped)"

2019-06-21 Thread Adrien
New submission from Adrien : This is an issue that I first saw repoted by @remi.lapeyre on issue36272: https://bugs.python.org/issue36272#msg337843 It also be reported some years ago: https://stackoverflow.com/a/54171640/2291710 I searched but I did not find any existing issue, so I open a new

[issue36511] Add Windows ARM32 buildbot

2019-06-21 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +14113 pull_request: https://github.com/python/cpython/pull/14290 ___ Python tracker ___

[issue37316] mmap.mmap() passes the wrong variable to PySys_Audit()

2019-06-21 Thread Eric Snow
Change by Eric Snow : -- nosy: +steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37363] Additional PEP578 hooks

2019-06-21 Thread Steve Dower
New submission from Steve Dower : We should also (see whether we should) add audit hooks for the following modules: * configparser * crypt * ensurepip * ftplib * glob * http * imaplib * nntplib * pdb * poplib * runpy * shutil * smtpd * smtplib * socketserver * sqlite3 * telnetlib * webbrowser

[issue19696] Merge all (non-syntactic) import-related tests into test_importlib

2019-06-21 Thread Brett Cannon
Brett Cannon added the comment: > Would it be appropriate to change the "choose" method to "choice"? Yep, just make sure the tests still pass before and after the change. :) > should the name of "test_pkgimport" instead be "test_pkg_import"? Since things are moving it's fine to rename the

[issue37293] concurrent.futures.InterpreterPoolExecutor

2019-06-21 Thread Eric Snow
Eric Snow added the comment: @Davin, we've spoken before about something similar for multiprocessing, IIRC. :) -- nosy: +davin ___ Python tracker ___

[issue37348] Optimize PyUnicode_GetString for short ASCII strings

2019-06-21 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +14114 pull_request: https://github.com/python/cpython/pull/14291 ___ Python tracker ___

[issue32924] Python 3.7 docs in docs.p.o points to GitHub's master branch

2019-06-21 Thread Mariatta
Change by Mariatta : -- pull_requests: +14115 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/14282 ___ Python tracker ___

[issue37354] Write PowerShell Activate.ps1 to be static so it can be signed

2019-06-21 Thread Brett Cannon
Brett Cannon added the comment: > How will this interact with EnvBuilder.install_scripts() (which explicitly > states that it performs textual substitution)? It won't, so that would have to change as well. As you mentioned, Paul, I don't know who even uses the functionality through a

[issue37221] PyCode_New API change breaks backwards compatibility policy

2019-06-21 Thread Nick Coghlan
Nick Coghlan added the comment: I'm happy with the change in https://github.com/python/cpython/pull/13959, but we need sign-off from Łukasz as release manager on bumping the Py_VERSION_SERIAL a bit early so Cython can reliably detect that this change has been reverted without having to check

[issue37293] concurrent.futures.InterpreterPoolExecutor

2019-06-21 Thread Eric Snow
Eric Snow added the comment: FWIW, performance benefits when subinterpreters stop sharing the GIL are not the only benefit. In fact, PEP 554 is specifically written to avoid that consideration, focusing on the benefits of the concurrency model (i.e. CSP). So I wouldn't call this pointless

[issue36511] Add Windows ARM32 buildbot

2019-06-21 Thread Steve Dower
Steve Dower added the comment: New changeset f8dd77d36067fd7be614edde1e5e9e7467c450dc by Steve Dower (Paul Monson) in branch 'master': bpo-36511: Fix -u parameters for ARM32 tests (GH-14280) https://github.com/python/cpython/commit/f8dd77d36067fd7be614edde1e5e9e7467c450dc --

[issue37316] mmap.mmap() passes the wrong variable to PySys_Audit()

2019-06-21 Thread Steve Dower
Steve Dower added the comment: New changeset 6c7947713a40851e123493ca0fe8f2791d7ed2a6 by Steve Dower in branch '3.8': bpo-37316: mmap.mmap() passes the wrong variable to PySys_Audit() (GH-14152) https://github.com/python/cpython/commit/6c7947713a40851e123493ca0fe8f2791d7ed2a6 --

[issue37316] mmap.mmap() passes the wrong variable to PySys_Audit()

2019-06-21 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue37354] Write PowerShell Activate.ps1 to be static so it can be signed

2019-06-21 Thread Brett Cannon
Change by Brett Cannon : -- versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37348] Optimize PyUnicode_GetString for short ASCII strings

2019-06-21 Thread Inada Naoki
Inada Naoki added the comment: PR 14291 seems simpler than PR 14283. But PR 14283 is faster because _PyUnicodeWriter is a learge struct. master: 3.7sec PR 14283: 2.9sec PR 14291: 3.45sec compiler: gcc (Ubuntu 8.3.0-6ubuntu1) 8.3.0 without LTO, without PGO --

[issue37250] C files generated by Cython set tp_print to 0: PyTypeObject.tp_print removed

2019-06-21 Thread Carol Willing
Carol Willing added the comment: Thanks Petr for the wonderful summary. Of the pros/cons that you mention (if I am understanding correctly), I think that the issue comes down to sdist consumers and regeneration. 1. If sdist consumers will need to regenerate an sdist? 2. How many sdist

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2019-06-21 Thread Zackery Spytz
Change by Zackery Spytz : -- pull_requests: +14111 pull_request: https://github.com/python/cpython/pull/14152 ___ Python tracker ___

[issue37364] Use io.open_code for .pth files

2019-06-21 Thread Steve Dower
New submission from Steve Dower : Since .pth files may contain executable code, we should open them using io.open_code(). -- messages: 346230 nosy: christian.heimes, steve.dower priority: normal severity: normal stage: needs patch status: open title: Use io.open_code for .pth files

[issue37316] mmap.mmap() passes the wrong variable to PySys_Audit()

2019-06-21 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +14112 pull_request: https://github.com/python/cpython/pull/14289 ___ Python tracker ___

[issue37302] Add an "onerror" callback parameter to the tempfile.TemporaryDirectory member functions

2019-06-21 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- keywords: +patch pull_requests: +14116 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14292 ___ Python tracker

[issue37365] RecursionError not caught explicitly may crash with "Aborted (core dumped)"

2019-06-21 Thread Ned Deily
Ned Deily added the comment: Thank you for the report. The issue of the interpreter not being able to gracefully handle a stack overflow error is an old one: see, for example Issue18075 or Issue35542. So far, no one has proposed a solution and, as can be seen in Issue18075, workarounds

[issue37323] test_asyncio: test_debug_mode_interop() fails using -Werror

2019-06-21 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch pull_requests: +14118 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14293 ___ Python tracker

[issue37307] isinstance/issubclass doc isn't clear on whether it's an AND or an OR.

2019-06-21 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37302] Add an "onerror" callback parameter to the tempfile.TemporaryDirectory member functions

2019-06-21 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37348] Optimize PyUnicode_FromString for short ASCII strings

2019-06-21 Thread STINNER Victor
STINNER Victor added the comment: I'm confused by the issue title: PyUnicode_GetString() doesn't exist, it's PyUnicode_FromString() :-) I changed the title. -- title: Optimize PyUnicode_GetString for short ASCII strings -> Optimize PyUnicode_FromString for short ASCII strings

[issue30202] Update test.test_importlib.test_abc to test find_spec()

2019-06-21 Thread Brett Cannon
Brett Cannon added the comment: New changeset a0d73a143af404deecb9c4fcdbd3ddbafd96b41b by Brett Cannon (Joannah Nanjekye) in branch 'master': bpo-30202 : Update test.test_importlib.test_abc to test find_spec() (GH-12847)

[issue37366] Add an "onitem" callback parameter to shutil.rmtree()

2019-06-21 Thread Jeffrey Kintscher
New submission from Jeffrey Kintscher : Add an "onitem" callback paramter to shutil.rmtree() that, if provided, gets called for each directory entry as it is encountered. This allows the caller to perform any required special handling of individual directory entries (e.g. unmounting a mount

[issue37367] octal escapes applied inconsistently throughout the interpreter and lib

2019-06-21 Thread Dan Snider
New submission from Dan Snider : At present, the bytecode compiler can generate 512 different unicode characters, one for each integral from the range [0-511), 512 being the total number of syntactically valid permutations of 3 octal digits preceded by a backslash. However, this does not

[issue24214] UTF-8 incremental decoder doesn't support surrogatepass correctly

2019-06-21 Thread Roufique Hossain
Change by Roufique Hossain : -- nosy: +roufique7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37298] IDLE: Revise html to tkinker converter for help.html

2019-06-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you for the research, including the crucial commit! What I understand from the quotes: 1. Sphinx 2 writes HTML5 by default. The html5 writers always writes paragraphs because they are required by the xhtml used by html5. 2. Firefox, for instance,

[issue36422] tempfile.TemporaryDirectory() removes entire directory tree even if it's a mount-point

2019-06-21 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- keywords: +patch pull_requests: +14117 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14292 ___ Python tracker

[issue37302] Add an "onerror" callback parameter to the tempfile.TemporaryDirectory member functions

2019-06-21 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: The PR is ready for review. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37367] octal escapes applied inconsistently throughout the interpreter and lib

2019-06-21 Thread SilentGhost
Change by SilentGhost : -- components: +Regular Expressions nosy: +ezio.melotti, mrabarnett, serhiy.storchaka versions: +Python 3.9 ___ Python tracker ___

[issue32924] Python 3.7 docs in docs.p.o points to GitHub's master branch

2019-06-21 Thread miss-islington
miss-islington added the comment: New changeset 52c4a4fb816d51a36c02b043d6fd5eeb875411d6 by Miss Islington (bot) (Mariatta) in branch '3.8': [3.8] bpo-32924: Fix the Show Source url in 3.8 documentation. (GH-14282)

[issue37169] test_pyobject_is_freed_free fails with 3.8.0beta1

2019-06-21 Thread STINNER Victor
STINNER Victor added the comment: I have no idea why the test fails on this specific server, whereas it pass on our large fleet of buildbots which test various libc and various compilers and platforms. I cannot investigate if I cannot reproduce the failure. Someone should run the test in a

[issue37366] Add an "onitem" callback parameter to shutil.rmtree()

2019-06-21 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- nosy: +giampaolo.rodola, josh.r, max, paul.moore, riccardomurri, serhiy.storchaka, steve.dower, tarek, tim.golden, zach.ware ___ Python tracker

[issue37366] Add an "onitem" callback parameter to shutil.rmtree()

2019-06-21 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- versions: +Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37302] Add an "onerror" callback parameter to the tempfile.TemporaryDirectory member functions

2019-06-21 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- versions: +Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue24214] UTF-8 incremental decoder doesn't support surrogatepass correctly

2019-06-21 Thread STINNER Victor
STINNER Victor added the comment: > UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf1 in position 1: > invalid continuation byte Python is right: b'f\xf1\xf6rd' is not a valid UTF-8 string: $ python3 Python 3.7.3 (default, May 11 2019, 00:38:04) >>> b'f\xf1\xf6rd'.decode() Traceback

[issue37362] test_gdb must not fail on "unexpected" messages written into stderr

2019-06-21 Thread STINNER Victor
STINNER Victor added the comment: > I think when I wrote this I was over-optimistically thinking that we could > just add more patterns, but if it's becoming a pain, then your approach looks > good to me. Well, I tried hard to fit into this approach: over the years, I added more and more

[issue37351] Drop libpython38.a from Windows release

2019-06-21 Thread Steve Dower
Steve Dower added the comment: New changeset f5690925df897cf45818bf944b28d13f37b9f8ca by Steve Dower in branch 'master': bpo-37351: Removes libpython38.a from standard Windows distribution (#14276) https://github.com/python/cpython/commit/f5690925df897cf45818bf944b28d13f37b9f8ca --

[issue30052] URL Quoting page links to function Bytes instead of defintion

2019-06-21 Thread Cheryl Sabella
Cheryl Sabella added the comment: Hi @wim.glenn, Thanks for the report. It looks like the same issue applies to all the built-in functions that are handled this way, not just bytearray and bytes. So, dict, frozenset, list, memoryview, range, set, str, and tuple too. I'm not sure what

[issue37362] test_gdb must not fail on "unexpected" messages written into stderr

2019-06-21 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +14121 pull_request: https://github.com/python/cpython/pull/14297 ___ Python tracker ___

[issue37351] Drop libpython38.a from Windows release

2019-06-21 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +14122 pull_request: https://github.com/python/cpython/pull/14298 ___ Python tracker ___

[issue37364] Use io.open_code for .pth files

2019-06-21 Thread Steve Dower
Change by Steve Dower : -- assignee: -> steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

  1   2   >