[issue42227] Unexpected sharing of list/set/dict between instances of the same class, when the list/set/dict is a default parameter value of the constructor

2020-11-01 Thread Steven D'Aprano
Steven D'Aprano added the comment: See also my comment here: https://bugs.python.org/msg361451 -- ___ Python tracker ___ ___

[issue42227] Unexpected sharing of list/set/dict between instances of the same class, when the list/set/dict is a default parameter value of the constructor

2020-11-01 Thread Steven D'Aprano
Steven D'Aprano added the comment: Sorry, this is not a bug, but working as designed. Default values for functions and methods are only created once, when the function is created, not on every call. This is a FAQ:

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I get a crash for chr(128516) ("") in Tk. $ wish % label .l -text  .l % X Error of failed request: BadLength (poly request too large or internal Xlib length error) Major opcode of failed request: 139 (RENDER) Minor opcode of failed request: 20

[issue13501] Make libedit support more generic; port readline / libedit to FreeBSD

2020-11-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: at a glance, it looks like the PR needs updating. -- ___ Python tracker ___ ___

[issue29566] binhex() creates files with mixed line endings

2020-11-01 Thread Ronald Oussoren
Change by Ronald Oussoren : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue24380] Got warning when compiling _scproxy.c on Mac

2020-11-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm closing this as out of date because the code the compiler warns about is no longer present in the master branch. -- resolution: -> out of date stage: -> resolved status: open -> closed type: -> compile error

[issue42207] Python 3.9 testing fails when building with clang and optimizations are enabled

2020-11-01 Thread STINNER Victor
STINNER Victor added the comment: > This bug no longer happens on master branch because it's related to > test_peg_generator. test_peg_generator exists in 3.9 and master branches. configure.ac doesn't seem to be different in 3.9 and master branches for PGO_PROF_USE_FLAG and

[issue24165] Free list for single-digits ints

2020-11-01 Thread STINNER Victor
STINNER Victor added the comment: > Inada-san, how do you interpret the results? Looks like it's > performance-neutral. You should give a try to the development branch of pyperf which computes the geometric mean of all results and says if it's faster or slower overall :-D

[issue42115] Caching infrastructure for the evaluation loop: specialised opcodes

2020-11-01 Thread STINNER Victor
STINNER Victor added the comment: > because you'd cache a pointer to the specific `+` operator implementation You should have a look at "INCA: Inline Caching meets Quickening in Python 3.3": https://bugs.python.org/issue14757 Stefan Brunthaler wrote a paper on his work: "Inline Caching Meets

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-01 Thread STINNER Victor
STINNER Victor added the comment: > Victor, do you see a color smiling face in my example or monochromatic or > just a bar? See attached screenshot: fedora32.png. -- Added file: https://bugs.python.org/file49556/fedora32.png ___ Python tracker

[issue42233] GenericAlias does not support union type expressions

2020-11-01 Thread Ken Jin
New submission from Ken Jin : Union type expressions added in PEP 604 throw an error when both operands are GenericAlias objects. Eg the following works:: int | list[str] The following throws TypeError:: list[int] | dict[float, str] Traceback (most recent call last): File "", line 1, in

[issue42235] [macOS] Use --enable-optimizations in build-installer.py

2020-11-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm working on a PR. The current version of build-installer.py doesn't use LTO/PGO because installers are build on macOS 10.9 where the compiler doesn't reliably support this. Recent compilers should work a lot better. The upcoming PR enables

[issue42140] asyncio.wait function creates futures set two times

2020-11-01 Thread Jakub Stasiak
Change by Jakub Stasiak : -- nosy: +jstasiak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42229] Fix SQLite warnings on macOS

2020-11-01 Thread Samuel Marks
New submission from Samuel Marks : Planned to fix all the compiler warnings on macOS. Ended up just fixing this SQLite one: ``` Python-3.9.0/Modules/_sqlite/connection.c:1066:9: warning: 'sqlite3_trace' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]

[issue41835] Speed up dict vectorcall creation using keywords

2020-11-01 Thread Marco Sulla
Marco Sulla added the comment: I did PGO+LTO... --enable-optimizations --with-lto -- ___ Python tracker ___ ___ Python-bugs-list

[issue30053] Problems building with --enable-profiling on macOS

2020-11-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: The system compiler on macOS 10.9 or later doesn't support "-pg" (profile generation) at all: $ clang -o t -pg t.c clang: error: the clang compiler does not support -pg option on versions of OS X 10.9 and later This means that its unlikely I'll look into

[issue42160] unnecessary overhead in tempfile

2020-11-01 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42231] test_zipimport failure

2020-11-01 Thread STINNER Victor
STINNER Victor added the comment: The test failed on many 3.x buildbots. Other examples: * PPC64LE Fedora Rawhide 3.x: https://buildbot.python.org/all/#builders/455/builds/226 * AMD64 Windows10 3.x: https://buildbot.python.org/all/#builders/146/builds/295 --

[issue41754] Webbrowser Module Cannot Find xdg-settings on OSX

2020-11-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've created a PR that ignores this exception. -- ___ Python tracker ___ ___ Python-bugs-list

[issue41754] Webbrowser Module Cannot Find xdg-settings on OSX

2020-11-01 Thread Ronald Oussoren
Change by Ronald Oussoren : -- keywords: +patch pull_requests: +21995 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/23075 ___ Python tracker

[issue42173] Drop Solaris support

2020-11-01 Thread Marcel Hofstetter
Change by Marcel Hofstetter : -- nosy: +jomasoftmarcel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It looks different on my computer. I suppose it will crash to you too if you install a color emoji font. -- Added file: https://bugs.python.org/file49557/Ubuntu-2020.04.png ___ Python tracker

[issue42235] [macOS] Use --enable-optimizations in build-installer.py

2020-11-01 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-41181 "[macOS] Build macOS installer with LTO and PGO optimizations". -- nosy: +vstinner ___ Python tracker ___

[issue42235] [macOS] Use --enable-optimizations in build-installer.py

2020-11-01 Thread Ronald Oussoren
Change by Ronald Oussoren : -- keywords: +patch pull_requests: +21998 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23079 ___ Python tracker ___

[issue29566] binhex() creates files with mixed line endings

2020-11-01 Thread miss-islington
miss-islington added the comment: New changeset 2165cea548f961b308050f30d1f042a377651d44 by Ronald Oussoren in branch 'master': bpo-29566: binhex.binhex now consitently writes MacOS 9 line endings. (GH-23059) https://github.com/python/cpython/commit/2165cea548f961b308050f30d1f042a377651d44

[issue29566] binhex() creates files with mixed line endings

2020-11-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +21990 pull_request: https://github.com/python/cpython/pull/23070 ___ Python tracker ___

[issue29566] binhex() creates files with mixed line endings

2020-11-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +21991 pull_request: https://github.com/python/cpython/pull/23071 ___ Python tracker ___

[issue42235] [macOS] Use --enable-optimizations in build-installer.py

2020-11-01 Thread Ronald Oussoren
New submission from Ronald Oussoren : With recent enough compilers it is possible to use --enable-optimzations when building the installer. -- messages: 380152 nosy: ronaldoussoren priority: normal severity: normal status: open title: [macOS] Use --enable-optimizations in

[issue42233] GenericAlias does not support union type expressions

2020-11-01 Thread Ken Jin
Change by Ken Jin : -- pull_requests: +21999 pull_request: https://github.com/python/cpython/pull/23081 ___ Python tracker ___ ___

[issue37483] Add PyObject_CallOneArg()

2020-11-01 Thread miss-islington
miss-islington added the comment: New changeset 0312efcd2bb3d7964dbfe2b4cbd5f5b440aed049 by Miss Skeleton (bot) in branch '3.9': bpo-37483: Add PyObject_CallOneArg() in the What's New in Python 3.9 (GH-23062) https://github.com/python/cpython/commit/0312efcd2bb3d7964dbfe2b4cbd5f5b440aed049

[issue37483] Add PyObject_CallOneArg()

2020-11-01 Thread Dong-hee Na
Change by Dong-hee Na : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-01 Thread STINNER Victor
STINNER Victor added the comment: Serhiy: > I get a crash for chr(128516) ("") in Tk. On Linux? What is your Tk version? On my Fedora 32, the character is displayed properly. It seems like Tk is still using X11 whereas my GNOME desktop is using Wayland. $ ./python -m test.pythoninfo|grep

[issue42233] GenericAlias does not support union type expressions

2020-11-01 Thread Ken Jin
Ken Jin added the comment: @Serhiy, wow interesting find, it seems to be typing's repr problem rather than the actual types itself: >>> typing.Union[dict[int, str], list[str]] typing.Union[dict, list] >>> typing.Union[dict[int, str], list[str]].__args__ (dict[int, str], list[str]) The

[issue42231] test_zipimport failure

2020-11-01 Thread STINNER Victor
New submission from STINNER Victor : ARM Raspbian 3.x: https://buildbot.python.org/all/#/builders/424/builds/294 I don't understand why the test started to fail at build 294 which only has one new change: commit 2165cea548f961b308050f30d1f042a377651d44 ("bpo-29566: binhex.binhex now

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, on Linux. Ubuntu 2020.04. Tk 8.6.10. X.Org X Server 1.20.8. I tried to report the bug upstream, but failed. I did not use the Tk bugtracker several years, and it was on different computer, so I have no password to my account, and when I tried to

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: The error on Linux could be related to this issue: https://bugzilla.redhat.com/show_bug.cgi?id=1498269 -- ___ Python tracker ___

[issue42228] Activate.ps1 clears PYTHONHOME

2020-11-01 Thread Ben Boeckel
New submission from Ben Boeckel : On Windows, we are extracting a tarball of a Python installation for CI (to avoid needing to juggle umpteen Python installs on umpteen machines). This requires `PYTHONHOME` to be set to use properly since there is no registry entry for the "installation".

[issue42230] Document that asyncio's wait() and as_completed() accept arbitrary iterables

2020-11-01 Thread Jakub Stasiak
New submission from Jakub Stasiak : The documentation explicitly says "sets" but arbitrary iterables are accepted and various non-sets are passed to those in real world almost certainly. -- components: asyncio messages: 380128 nosy: asvetlov, jstasiak, yselivanov priority: normal

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Victor, do you see a color smiling face in my example or monochromatic or just a bar? -- ___ Python tracker ___

[issue41181] [macOS] Build macOS installer with LTO and PGO optimizations

2020-11-01 Thread STINNER Victor
STINNER Victor added the comment: > Link Time Optimization (LTO) and Profile-Guided Optimization (PGO) have a > major impact on Python performance: they make Python between 10% and 30% > faster (coarse estimation). > > Currently, macOS installers distributed on python.org are built with

[issue29566] binhex() creates files with mixed line endings

2020-11-01 Thread miss-islington
miss-islington added the comment: New changeset 39a56e55231be00d52fa183fcd2b7d88619ced4b by Miss Skeleton (bot) in branch '3.8': [3.8] bpo-29566: binhex.binhex now consitently writes MacOS 9 line endings. (GH-23059) (GH-23070)

[issue29566] binhex() creates files with mixed line endings

2020-11-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: duplicate -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue29566] binhex() creates files with mixed line endings

2020-11-01 Thread miss-islington
miss-islington added the comment: New changeset 3defcbac2c9ff4306ed5b7fb37d12637eb188306 by Miss Skeleton (bot) in branch '3.9': [3.9] bpo-29566: binhex.binhex now consitently writes MacOS 9 line endings. (GH-23059) (GH-23071)

[issue42140] asyncio.wait function creates futures set two times

2020-11-01 Thread Jakub Stasiak
Jakub Stasiak added the comment: I opened https://bugs.python.org/issue42230 to make the documentation reflect the reality in this matter. -- ___ Python tracker ___

[issue42230] Document that asyncio's wait() and as_completed() accept arbitrary iterables

2020-11-01 Thread Jakub Stasiak
Change by Jakub Stasiak : -- keywords: +patch pull_requests: +21993 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23073 ___ Python tracker ___

[issue37483] Add PyObject_CallOneArg()

2020-11-01 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +21994 pull_request: https://github.com/python/cpython/pull/23074 ___ Python tracker

[issue37483] Add PyObject_CallOneArg()

2020-11-01 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 7feb54a6348f6220b2798686c812f110b53d by Dong-hee Na in branch 'master': bpo-37483: Add PyObject_CallOneArg() in the What's New in Python 3.9 (GH-23062) https://github.com/python/cpython/commit/7feb54a6348f6220b2798686c812f110b53d

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I generated a script for testing all characters: with open('withtest.sh', 'w', errors='surrogatepass') as f: for i in range(0x100, 0x11): print(f"echo 'label .l -text \"{chr(i)}\"; exit' | wish 2>/dev/null && echo OK '\\U{i:08x}' {chr(i)!r} || echo

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-01 Thread STINNER Victor
STINNER Victor added the comment: Serhiy's test also work as expected. $ wish % label .l -text  Since the Serhiy's test doesn't use Python, is it worth it to track this Tk crash in the Python bug tracker? -- ___ Python tracker

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-01 Thread STINNER Victor
STINNER Victor added the comment: Hum, I didn't explain well. My test. I ran: ./python -m idlelib In the IDLE shell, I wrote chr(0x1F604) which displays the emoji as expected: >>> chr(0x1F604) '' -- ___ Python tracker

[issue42232] mmap module add Darwin specific madvise options

2020-11-01 Thread David CARLIER
Change by David CARLIER : -- components: macOS nosy: devnexen, ned.deily, ronaldoussoren priority: normal pull_requests: 21996 severity: normal status: open title: mmap module add Darwin specific madvise options type: enhancement ___ Python tracker

[issue42233] GenericAlias does not support union type expressions

2020-11-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is also a problem with typing module. >>> typing.List[int] | dict[float, str] typing.Union[typing.List[int], dict] -- nosy: +serhiy.storchaka ___ Python tracker

[issue42233] GenericAlias does not support union type expressions

2020-11-01 Thread Ken Jin
Change by Ken Jin : -- keywords: +patch pull_requests: +21997 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23077 ___ Python tracker ___

[issue42234] pathlib relative_to behaviour change

2020-11-01 Thread Armins Stepanjans
New submission from Armins Stepanjans : In the docs (https://docs.python.org/3/library/pathlib.html#pathlib.PurePath.relative_to) PurePath.relative_to() is specified to fail for arguments that are not on the original path (e.g. Path('/ham/beans').relative_to(Path('/spam'))). I believe it

[issue42237] test_socket.SendfileUsingSendfileTest fails on illumos

2020-11-01 Thread Sebastian Wiedenroth
Change by Sebastian Wiedenroth : -- keywords: +patch pull_requests: +22002 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23085 ___ Python tracker

[issue42229] Fix SQLite warnings on macOS

2020-11-01 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: FYI, commit 7f331c8 (GH-19581 / bpo-40318) migrates the sqlite3 to the new trace API. There was also a discussion about sqlite3_enable_shared_cache() on bpo, but I think it was closed as "wont-fix", IIRC. -- nosy: +erlendaasland

[issue42229] Fix SQLite warnings on macOS

2020-11-01 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Look at bpo-24464 regarding the shared cache issue. Apparently I did not remember correctly regarding its status. -- ___ Python tracker

[issue42229] Fix SQLite warnings on macOS

2020-11-01 Thread Samuel Marks
Samuel Marks added the comment: @erlendaasland Hmm… just double-checked, and this issue is present on Python 3.8.6 and 3.9.0 but not master [d3b4e068077dd26927ae7485bd0303e09d962c02] as you referenced. Should I close this issue—and PR—then? - Backport from master to these? --

[issue42233] GenericAlias does not support union type expressions

2020-11-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +22000 pull_request: https://github.com/python/cpython/pull/23082 ___ Python tracker ___

[issue42233] GenericAlias does not support union type expressions

2020-11-01 Thread miss-islington
miss-islington added the comment: New changeset 1f7dfb277e5b88cddc13e5024766be787a3e9127 by kj in branch 'master': bpo-42233: Correctly repr GenericAlias when used with typing module (GH-23081) https://github.com/python/cpython/commit/1f7dfb277e5b88cddc13e5024766be787a3e9127 --

[issue42236] os.device_encoding() doesn't respect the UTF-8 Mode

2020-11-01 Thread STINNER Victor
New submission from STINNER Victor : When the UTF-8 Mode is enabled, sys.stdout.encoding is always UTF-8, whereas os.devide_encoding(sys.stdout.fileno()) returns the locale encoding. os.devide_encoding() must return UTF-8 when the UTF-8 Mode is used. -- components: Library (Lib)

[issue42236] os.device_encoding() doesn't respect the UTF-8 Mode

2020-11-01 Thread STINNER Victor
STINNER Victor added the comment: In bpo-42208, I added C _Py_GetLocaleEncoding() function and Python _locale._get_locale_encoding() function. -- ___ Python tracker ___

[issue42236] os.device_encoding() doesn't respect the UTF-8 Mode

2020-11-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset e662c398d87f136497f8ec672e83657ae3a599e0 by Victor Stinner in branch 'master': bpo-42236: Use UTF-8 encoding if nl_langinfo(CODESET) fails (GH-23086) https://github.com/python/cpython/commit/e662c398d87f136497f8ec672e83657ae3a599e0 --

[issue42236] os.device_encoding() doesn't respect the UTF-8 Mode

2020-11-01 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +22001 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23083 ___ Python tracker ___

[issue42237] test_socket.SendfileUsingSendfileTest fails on illumos

2020-11-01 Thread Sebastian Wiedenroth
New submission from Sebastian Wiedenroth : I'm investigating some test failures related to sendfile on illumos: testCount (test.test_socket.SendfileUsingSendfileTest) ... FAIL testCountSmall (test.test_socket.SendfileUsingSendfileTest) ... ok testCountWithOffset

[issue42229] Fix SQLite warnings on macOS

2020-11-01 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- nosy: +ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42236] os.device_encoding() doesn't respect the UTF-8 Mode

2020-11-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +22003 pull_request: https://github.com/python/cpython/pull/23086 ___ Python tracker ___

[issue42238] Deprecate suspicious.py?

2020-11-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: I would love to see this disappear. For me, it has been a recurring time waster. -- nosy: +rhettinger ___ Python tracker ___

[issue42238] Deprecate suspicious.py?

2020-11-01 Thread Ned Deily
Ned Deily added the comment: If it still does useful checks, we could just limit it to running by release managers during the release manufacturing process; it is already run then. It would still allow for problems to be caught and fixed by the RM prior to release tagging. But I don't have

[issue42229] Fix SQLite warnings on macOS

2020-11-01 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Oh, I see now that you're only mentioning 3.9 here. The issue was fixed in master only (that is 3.10 alpha). Perhaps GH-19581 should be backported to 3.9, or even 3.8, but that's not for me to decide. Note: your patch is against 3.10, not 3.9.

[issue42229] Fix SQLite warnings on macOS

2020-11-01 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: > Yes, this commit extends his changes to include macOS support (for some > reason that SQLite version check doesn’t work properly on macOS I can't reproduce this on master on macOS 10.15.7 with the SQLite 3.28.0 that's shipped with the os.

[issue37193] Memory leak while running TCP/UDPServer with socketserver.ThreadingMixIn

2020-11-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +22006 pull_request: https://github.com/python/cpython/pull/23089 ___ Python tracker ___

[issue37193] Memory leak while running TCP/UDPServer with socketserver.ThreadingMixIn

2020-11-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +22005 pull_request: https://github.com/python/cpython/pull/23088 ___ Python tracker ___

[issue42238] Deprecate suspicious.py?

2020-11-01 Thread Julien Palard
New submission from Julien Palard : I was not here 21 years ago when it was introduced [1], but according to the commit message it was introduced to find leftover Latex mardown. It tries to find 4 patterns in Sphinx node text (not in raw rst files): ::(?=[^=])|# two :: (but NOT

[issue37193] Memory leak while running TCP/UDPServer with socketserver.ThreadingMixIn

2020-11-01 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset c41559021213cfc9dc62a83fc63306b3bdc3e64b by MARUYAMA Norihiro in branch 'master': bpo-37193: remove thread objects which finished process its request (GH-13893) https://github.com/python/cpython/commit/c41559021213cfc9dc62a83fc63306b3bdc3e64b

[issue37193] Memory leak while running TCP/UDPServer with socketserver.ThreadingMixIn

2020-11-01 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +22004 pull_request: https://github.com/python/cpython/pull/23087 ___ Python tracker

[issue42229] Fix SQLite warnings on macOS

2020-11-01 Thread Samuel Marks
Samuel Marks added the comment: Yes, this commit extends his changes to include macOS support (for some reason that SQLite version check doesn’t work properly on macOS; so this checks the macOS version, knowing AOT when SQLite trace v1 APIs were deprecated. Curious that

[issue42236] os.device_encoding() doesn't respect the UTF-8 Mode

2020-11-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 82458b6cdbae3b849dc11d0d7dc2ab06ef0451c4 by Victor Stinner in branch 'master': bpo-42236: Enhance _locale._get_locale_encoding() (GH-23083) https://github.com/python/cpython/commit/82458b6cdbae3b849dc11d0d7dc2ab06ef0451c4 --

[issue37193] Memory leak while running TCP/UDPServer with socketserver.ThreadingMixIn

2020-11-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Commit c41559021213cfc9dc62a83fc63306b3bdc3e64b has introduced reference leaks: -- Ran 202 tests in 21.654s OK (skipped=1) .. test_logging leaked [20, 20, 20] references, sum=60

[issue40511] IDLE: properly handle '(' and ')' within calls

2020-11-01 Thread miss-islington
miss-islington added the comment: New changeset 79e9f06149f92798a8e11e3f1c62dad171312ab3 by Miss Skeleton (bot) in branch '3.9': bpo-40511: Stop unwanted flashing of IDLE calltips (GH-20910) https://github.com/python/cpython/commit/79e9f06149f92798a8e11e3f1c62dad171312ab3 --

[issue40511] IDLE: properly handle '(' and ')' within calls

2020-11-01 Thread miss-islington
miss-islington added the comment: New changeset 1341582e165841810e2fbf89e23be0e92b4a9fdd by Miss Skeleton (bot) in branch '3.8': bpo-40511: Stop unwanted flashing of IDLE calltips (GH-20910) https://github.com/python/cpython/commit/1341582e165841810e2fbf89e23be0e92b4a9fdd --

[issue40511] IDLE: properly handle '(' and ')' within calls

2020-11-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: wyz, thank you for the report. It should be fixed now. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue42239] IDLE: Restore or keep calltip when needed

2020-11-01 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: IDLE: Restore calltip when needed -> IDLE: Restore or keep calltip when needed ___ Python tracker ___

[issue42229] Fix SQLite warnings on macOS

2020-11-01 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: > Should I close this issue—and PR—then? - Backport from master to these? If this fix is wanted in 3.9 and 3.8, I think the correct way to proceed would be to close GH-23072 and backport GH-19581. Try checking out 3.9 and cherrypicking 7f331c8 to

[issue42226] imghdr.what is missing docstring, has a logic error, and is overly complex

2020-11-01 Thread Jeremy Howard
Change by Jeremy Howard : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue9499] DOC: C/API Execution namespace undocumented. (patch included)

2020-11-01 Thread Campbell Barton
Campbell Barton added the comment: This patch is still relevant, mentioning this since the patch is from a while ago. -- ___ Python tracker ___

[issue42241] Backport SQLite trace API v2

2020-11-01 Thread Samuel Marks
New submission from Samuel Marks : Backports https://github.com/python/cpython/pull/19581 https://bugs.python.org/issue40318 as per https://bugs.python.org/issue42229 -- components: Build messages: 380185 nosy: samuelmarks priority: normal pull_requests: 22011 severity: normal status:

[issue42229] Fix SQLite warnings on macOS

2020-11-01 Thread Samuel Marks
Samuel Marks added the comment: Opened two issues and two PRs for 3.8 and 3.8: - https://bugs.python.org/issue42241 - https://bugs.python.org/issue42242 -- ___ Python tracker

[issue42242] Backport SQLite trace API v2

2020-11-01 Thread Samuel Marks
New submission from Samuel Marks : Backports https://github.com/python/cpython/pull/19581 https://bugs.python.org/issue40318 as per https://bugs.python.org/issue42229 See also 3.9 backporting: https://bugs.python.org/issue42241 [not sure if this is how you do backporting, a new issue and GH

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: In IDLE on Windows the following prints the first 3 astral planes in a couple of minutes. for i in range(0x1, 0x4, 32): chars = ''.join(chr(i+j) for j in range(32)) print(hex(i), chars) Perhaps half of the assigned chars in the first plane

[issue40511] IDLE: properly handle '(' and ')' within calls

2020-11-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +22009 pull_request: https://github.com/python/cpython/pull/23094 ___ Python tracker ___

[issue42195] Inconsistent __args__ between typing.Callable and collections.abc.Callable

2020-11-01 Thread Guido van Rossum
Guido van Rossum added the comment: Actually you can't really change typing.Callable's __args__, because it must be hashable, and lists aren't. If GenericAlias doesn't cache yet, it might very well do so in the future to gain some speed when e.g. list[int] is used at runtime outside

[issue37751] In codecs, function 'normalizestring' should convert both spaces and hyphens to underscores.

2020-11-01 Thread hai shi
Change by hai shi : -- pull_requests: +22010 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/23096 ___ Python tracker ___

[issue42229] Fix SQLite warnings on macOS

2020-11-01 Thread Samuel Marks
Samuel Marks added the comment:  -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42229] Fix SQLite warnings on macOS

2020-11-01 Thread Samuel Marks
Change by Samuel Marks : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-11-01 Thread mohamed koubaa
Change by mohamed koubaa : -- pull_requests: +22007 pull_request: https://github.com/python/cpython/pull/23091 ___ Python tracker ___

[issue42239] IDLE: Restore calltip when needed

2020-11-01 Thread Terry J. Reedy
New submission from Terry J. Reedy : If one types 'int(' an int calltip is displayed. If one adds 'float(' then the float calltip is displayed instead. If one adds '"3.1")', the int calltip is restored. (Actually a new int calltip.) Finally, if one closes with ')', the int calltip is

[issue42239] IDLE: Restore or keep calltip when needed

2020-11-01 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +22012 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/23098 ___ Python tracker

[issue42239] IDLE: Restore or keep calltip when needed

2020-11-01 Thread Tal Einat
Tal Einat added the comment: We already have a "<>" virtual event which is triggered upon typing a closing parenthesis ')'. We could just have it always call "open_calltip()" rather than only doing so when one is already open. See PR GH-23100. --

[issue42239] IDLE: Restore or keep calltip when needed

2020-11-01 Thread Tal Einat
Change by Tal Einat : -- pull_requests: +22014 pull_request: https://github.com/python/cpython/pull/23100 ___ Python tracker ___

  1   2   >