[issue45902] Bytes and bytesarrays can be sorted with a much faster count sort.

2021-11-26 Thread Ruben Vorderman
Ruben Vorderman added the comment: Also I didn't know if this should be in Component C-API or Interpreter Core. But I guess this will be implemented as C-API calls PyBytes_Sort and PyByteArray_SortInplace so I figured C-API is the correct component here. --

[issue39026] Include/cpython/pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2021-11-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 92631a4144fba041a5fb6578620db784821dfdc5 by Victor Stinner in branch '3.9': bpo-39026: Fix Python.h when building with Xcode (GH-29488) (GH-29776) https://github.com/python/cpython/commit/92631a4144fba041a5fb6578620db784821dfdc5 --

[issue45866] Out of tree build of Python 3.11.0a2+ breaks regen-frozen

2021-11-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +28027 pull_request: https://github.com/python/cpython/pull/29792 ___ Python tracker ___

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-11-26 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +28025 pull_request: https://github.com/python/cpython/pull/29789 ___ Python tracker ___

[issue45902] Bytes and bytesarrays can be sorted with a much faster count sort.

2021-11-26 Thread Ruben Vorderman
Ruben Vorderman added the comment: I changed the cython script a bit to use a more naive implementation without memset. Now it is always significantly faster than bytes(sorted(my_bytes)). $ python -m timeit -c "from bytes_sort import bytes_sort" "bytes_sort(b'')" 50 loops, best of 5: 495

[issue45902] Bytes and bytesarrays can be sorted with a much faster count sort.

2021-11-26 Thread Ruben Vorderman
Ruben Vorderman added the comment: Sorry for the spam. I see I made a typo in the timeit script. Next time I will be more dilligent when making these kinds of reports and triple checking it before hand, and sending it once. I used -c instead of -s and now all the setup time is also

[issue45898] ctypes cfield.c defines duplicate ffi_type_* symbols

2021-11-26 Thread Christian Heimes
Christian Heimes added the comment: Windows tests are failing without ffi_type_ symbols: cfield.obj : error LNK2001: unresolved external symbol _ffi_type_double [D:\a\cpython\cpython\PCbuild\_ctypes.vcxproj] cfield.obj : error LNK2001: unresolved external symbol _ffi_type_float

[issue45902] Bytes and bytesarrays can be sorted with a much faster count sort.

2021-11-26 Thread Mark Dickinson
Mark Dickinson added the comment: Can you give example use-cases for sorting a bytes or bytearray object? I see value in the intermediate object - the frequency table, but the reconstructed sorted bytes object just seems like an inefficient representation of the frequency table, and I'm not

[issue45898] ctypes cfield.c defines duplicate ffi_type_* symbols

2021-11-26 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +28026 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29791 ___ Python tracker

[issue45902] Bytes and bytesarrays can be sorted with a much faster count sort.

2021-11-26 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +Mark.Shannon, brett.cannon, rhettinger, serhiy.storchaka, tim.peters, vstinner, yselivanov ___ Python tracker ___

[issue45876] Improve accuracy of stdev functions in statistics

2021-11-26 Thread Mark Dickinson
Mark Dickinson added the comment: Related: https://stackoverflow.com/questions/32150888/should-ldexp-round-correctly -- ___ Python tracker ___

[issue45902] Bytes and bytesarrays can be sorted with a much faster count sort.

2021-11-26 Thread Ruben Vorderman
New submission from Ruben Vorderman : Python now uses the excellent timsort for most (all?) of its sorting. But this is not the fastest sort available for one particular use case. If the number of possible values in the array is limited, it is possible to perform a counting sort:

[issue39026] Include/cpython/pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2021-11-26 Thread STINNER Victor
STINNER Victor added the comment: Thanks Gaige Paulsen for the bug report, it's now fixed. > I think GH-28612 broke Windows builds: It was related to C++ build, it's now fixed by bpo-45893. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions:

[issue45884] datetime.strptime incorrectly handling hours and minutes with bad format string

2021-11-26 Thread Christian Heimes
Change by Christian Heimes : -- superseder: -> strptime %d handling of single digit day of month ___ Python tracker ___ ___

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-11-26 Thread Christian Heimes
Change by Christian Heimes : -- dependencies: +Cross compiling on Linux is untested, undocumented, and broken, Fix Program/_freeze_module for cross compiling Python, Undefinied _Py_Sigset_Converter function when HAVE_SIGSET_T not set, ctypes cfield.c defines duplicate ffi_type_*

[issue45866] Out of tree build of Python 3.11.0a2+ breaks regen-frozen

2021-11-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 253b7a0a9fef1d72a4cb87b837885576e68e917c by Victor Stinner in branch 'main': bpo-45866: pegen strips directory of "generated from" header (GH-29777) https://github.com/python/cpython/commit/253b7a0a9fef1d72a4cb87b837885576e68e917c --

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-11-26 Thread Roman Yurchak
Roman Yurchak added the comment: Thanks a lot for working on this! > _sys_shutdown is the syscall for shutdown(2) used by the socket module. Yes, the issue with Emscripten is that a number of system calls are either not implemented or implemented but not tested. See a list we are using in

[issue45886] Fix Program/_freeze_module for cross compiling Python

2021-11-26 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +28028 pull_request: https://github.com/python/cpython/pull/29793 ___ Python tracker ___

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-11-26 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +28029 pull_request: https://github.com/python/cpython/pull/29794 ___ Python tracker ___

[issue45795] urllib http client vulnerable to DOS attack

2021-11-26 Thread Muhammad Farhan
Muhammad Farhan added the comment: Hi, Hope all of you are doing good. Looks like you guys are not interested in this issue. Can you please provide me the source code for yhe urllib, I will fix it myself -- ___ Python tracker

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-11-26 Thread Christian Heimes
Christian Heimes added the comment: New changeset d224e769b83a6a027bec8e21ee62db2b96d5af8e by Christian Heimes in branch 'main': bpo-40280: clean and ignore .wasm files (GH-29794) https://github.com/python/cpython/commit/d224e769b83a6a027bec8e21ee62db2b96d5af8e --

[issue13475] Add '--mainpath'/'--nomainpath' command line options to override sys.path[0] initialisation

2021-11-26 Thread Neil Isaac
Change by Neil Isaac : -- nosy: +nisaac ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45898] ctypes cfield.c defines duplicate ffi_type_* symbols

2021-11-26 Thread Roman Yurchak
Change by Roman Yurchak : -- nosy: +Roman Yurchak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45884] datetime.strptime incorrectly handling hours and minutes with bad format string

2021-11-26 Thread Jon Oxtoby
Jon Oxtoby added the comment: I was indeed overlooking the note in the documentation that the leading zero is optional for some formatters when using strptime. Closing. -- stage: -> resolved status: open -> closed ___ Python tracker

[issue45902] Bytes and bytesarrays can be sorted with a much faster count sort.

2021-11-26 Thread Mark Dickinson
Mark Dickinson added the comment: (Changing the issue type: as I understand it, this is a proposal for a new feature, namely new methods bytes.sort and bytearray.sort, rather than a performance improvement to an existing feature.) -- type: performance -> enhancement

[issue45760] Remove "PyNumber_InMatrixMultiply"

2021-11-26 Thread Dong-hee Na
Change by Dong-hee Na : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue45760] Remove "PyNumber_InMatrixMultiply"

2021-11-26 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset db671b010cb4662011c6e6567a1f4fcd509102b8 by Dong-hee Na in branch 'main': bpo-45760: Remove PyNumber_InMatrixMultiply (GH-29751) https://github.com/python/cpython/commit/db671b010cb4662011c6e6567a1f4fcd509102b8 --

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-11-26 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45903] What’s New In Python 3.11: wrong reference to Signature.from_callable

2021-11-26 Thread Jakub Wilk
New submission from Jakub Wilk : says: "Removed from the inspect module: […] the undocumented Signature.from_callable and Signature.from_function functions, deprecated since Python 3.5; use the Signature.from_callable() method

[issue43137] webbrowser to support "gio open "

2021-11-26 Thread Christian Heimes
Christian Heimes added the comment: gio is not available on older distros. For example I could not find it in Xenial with libglib2.0-bin 2.48.2-0ubuntu4.8. I suggest that you keep the fallbacks or seek agreement that we no longer support old distros without gio. -- keywords:

[issue45902] Bytes and bytesarrays can be sorted with a much faster count sort.

2021-11-26 Thread Ruben Vorderman
Ruben Vorderman added the comment: I used it for the median calculation of FASTQ quality scores (https://en.wikipedia.org/wiki/FASTQ_format). But in the end I used the frequency table to calculate the median more quickly. So as you say, the frequency table turned out to be more useful.

[issue27580] CSV Null Byte Error

2021-11-26 Thread Petr Viktorin
Petr Viktorin added the comment: The NUL check was around for a long time, available to be used (XKCD-1172 style) as a simple check against reading binary files. The change did break tests of distutils. Maybe it deserves a What's New entry? -- nosy: +petr.viktorin

[issue44353] PEP 604 NewType

2021-11-26 Thread miss-islington
miss-islington added the comment: New changeset 3f024e27c29a57dd4f805aa2431d713ed0fe57b2 by Miss Islington (bot) in branch '3.10': bpo-44353: Correct docstring for `NewType` (GH-29785) https://github.com/python/cpython/commit/3f024e27c29a57dd4f805aa2431d713ed0fe57b2 --

[issue27580] CSV Null Byte Error

2021-11-26 Thread Petr Viktorin
Petr Viktorin added the comment: *docutils, not distutils -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-11-26 Thread Roman Yurchak
Change by Roman Yurchak : -- nosy: +Roman Yurchak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-11-26 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +28030 pull_request: https://github.com/python/cpython/pull/29795 ___ Python tracker ___

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-11-26 Thread Christian Heimes
Christian Heimes added the comment: Thanks Roman, I replied on the pyodide issue tracker. -- ___ Python tracker ___ ___

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-11-26 Thread Christian Heimes
Christian Heimes added the comment: New changeset 8caceb7a474bf32cddfd25fba25b531ff65f4365 by Christian Heimes in branch 'main': bpo-40280: Add configure check for socket shutdown (GH-29795) https://github.com/python/cpython/commit/8caceb7a474bf32cddfd25fba25b531ff65f4365 --

[issue45558] shutil.copytree: Give the option to disable copystat

2021-11-26 Thread Jason R. Coombs
New submission from Jason R. Coombs : Can you provide a description of what motivated you to change the behavior or what benefits this change would have for you or others? Do you know why others haven’t reported this need previously? -- nosy: +jaraco

[issue44353] PEP 604 NewType

2021-11-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +28031 pull_request: https://github.com/python/cpython/pull/29796 ___ Python tracker ___

[issue45876] Improve accuracy of stdev functions in statistics

2021-11-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: Instead of calling float(), perhaps do an int/int division to match the other code path so that the function depends on only one mechanism for building the float result. -return float(_isqrt_frac_rto(n, m << 2 * q) << q) +(_isqrt_frac_rto(n, m <<

[issue45904] Pasting the U00FF character into Python REPL misinterprets character

2021-11-26 Thread George King
George King added the comment: Edit: `chr(0xff)` -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45905] Provide a C API for introspectable frames for Cython and similar tools

2021-11-26 Thread Mark Shannon
New submission from Mark Shannon : See https://github.com/cython/cython/issues/4484 -- messages: 407069 nosy: Mark.Shannon priority: normal severity: normal status: open title: Provide a C API for introspectable frames for Cython and similar tools

[issue45905] Provide a C API for introspectable frames for Cython and similar tools

2021-11-26 Thread Mark Shannon
Change by Mark Shannon : -- assignee: -> Mark.Shannon type: -> enhancement versions: +Python 3.11 ___ Python tracker ___ ___

[issue22684] message.as_bytes() produces recursion depth exceeded

2021-11-26 Thread Irit Katriel
Irit Katriel added the comment: I am unable to reproduce this on 3.11. -- nosy: +iritkatriel status: open -> pending ___ Python tracker ___

[issue45019] Freezing modules has manual steps but could be automated.

2021-11-26 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset b0b10e146b1cbf9c5dfa44af116a2eeb0f210e8b by Kumar Aditya in branch 'main': bpo-45019: Cleanup module freezing and deepfreeze (#29772) https://github.com/python/cpython/commit/b0b10e146b1cbf9c5dfa44af116a2eeb0f210e8b --

[issue45876] Improve accuracy of stdev functions in statistics

2021-11-26 Thread Mark Dickinson
Mark Dickinson added the comment: Since I've failed to find a coherent statement and proof of the general principle I articulated anywhere online, I've included one below. (To be absolutely clear, the principle is not new - it's very well known, but oddly hard to find written down

[issue26577] inspect.getclosurevars returns incorrect variable when using class member with the same name as other variable

2021-11-26 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.11 -Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue26577] inspect.getclosurevars returns incorrect variable when using class member with the same name as other variable

2021-11-26 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11. -- nosy: +iritkatriel ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue28422] multiprocessing Manager mutable type member access failure

2021-11-26 Thread Irit Katriel
Irit Katriel added the comment: I don't get any errors from the attached script. Is there still a problem here? -- nosy: +iritkatriel resolution: -> works for me status: open -> pending ___ Python tracker

[issue45872] Turtle: invalid example for write doc

2021-11-26 Thread Éric Araujo
Éric Araujo added the comment: The doc for the font parameter is: a triple (fontname, fontsize, fonttype) but the default value in the signature is: font='Arial' I do not know what’s font name vs font type! Do you know if it’s valid to have font='Arial', in which case the doc should be

[issue9436] test_sysconfig failure: build a 32-bit Python a 64-bit OS

2021-11-26 Thread Irit Katriel
Irit Katriel added the comment: This test is disabled when platform == "win32". Does that cover this case or does it need to be disabled for platform == "win64" as well? commit db902ac0b4df295bd90109852c1abd05da831b81 Author: Brian Curtin Date: Thu Jul 22 15:38:28 2010 + Skip

[issue45795] urllib http client vulnerable to DOS attack

2021-11-26 Thread Senthil Kumaran
Senthil Kumaran added the comment: Hi Muhammad, I haven't gotten to this. urllib doesn't maintain a client state during multiple request / response. The code is available here https://github.com/python/cpython/tree/main/Lib/urllib -- ___

[issue45886] Fix Program/_freeze_module for cross compiling Python

2021-11-26 Thread Christian Heimes
Christian Heimes added the comment: New changeset 765b2a3ad2e8abf9a06d5e9b3802b575ec115d76 by Christian Heimes in branch 'main': bpo-45886: Fix OOT build when srcdir has frozen module headers (GH-29793) https://github.com/python/cpython/commit/765b2a3ad2e8abf9a06d5e9b3802b575ec115d76

[issue43137] webbrowser to support "gio open "

2021-11-26 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: The next 3.10 and 3.11 releases are very soon so unfortunately if this is not fixed by then I will need to revert PR29154 -- ___ Python tracker

[issue45866] Out of tree build of Python 3.11.0a2+ breaks regen-frozen

2021-11-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +28033 pull_request: https://github.com/python/cpython/pull/29798 ___ Python tracker ___

[issue44452] Allow paths to be joined without worrying about a leading slash

2021-11-26 Thread lutecki
lutecki added the comment: So how this should work? I'm testing this simple example on Windows: a = Path("/a/b") b = Path("c/d") and b / a gives me WindowsPath('/a/b'). So I'm like "ok, a seems like absolute, I will test for that" but on Windows a.is_absolute() is False. ??? Regards

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-11-26 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Some info regarding _multiprocessing: Modules/_multiprocessing/semaphore.c is currently conditionally included in setup.py (HAVE_SEM_OPEN && !POSIX_SEMAPHORES_NOT_ENABLED), but always included in Modules/Setup. Here's some historical bpo's (more or

[issue27281] unpickling an xmlrpc.client.Fault raises TypeError

2021-11-26 Thread Irit Katriel
Irit Katriel added the comment: Reproduced in 3.11. -- nosy: +iritkatriel versions: +Python 3.11 -Python 3.5, Python 3.6 ___ Python tracker ___

[issue45898] ctypes cfield.c defines duplicate ffi_type_* symbols

2021-11-26 Thread Steve Dower
Steve Dower added the comment: This is because we use libffi as a DLL and you can't statically reference dynamically loaded addresses on Windows. You could change that format table to be initialised on first use, or resolve the FFI type lazily. Or change ctypes to statically link libffi

[issue45889] pathlib: Path.match does not work on paths

2021-11-26 Thread Éric Araujo
Éric Araujo added the comment: FWIW I think in the same way as Ronald. A pattern is not a path, it’s a string expressing rules. If it matches, the results are paths, but that does not make the pattern a path. -- nosy: +eric.araujo ___ Python

[issue45902] Bytes and bytesarrays can be sorted with a much faster count sort.

2021-11-26 Thread Mark Dickinson
Mark Dickinson added the comment: > If there are enough use cases for it. Well, that's the question. :-) *I* can't think of any good use cases, but maybe others can. But if we can't come up with some use cases, then this feels like a solution looking for a problem, and that makes it hard to

[issue45866] Out of tree build of Python 3.11.0a2+ breaks regen-frozen

2021-11-26 Thread STINNER Victor
STINNER Victor added the comment: It seems like all bugs reported in this issue has been fixed, so I close the issue. Thanks for the bug report ;-) > -# @generated by pegen from ./Tools/peg_generator/pegen/metagrammar.gram > +# @generated by pegen from

[issue45901] store app file type ignores command-line arguments

2021-11-26 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +28034 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/29799 ___ Python tracker

[issue45904] Pasting the U00FF character into Python REPL misinterprets character

2021-11-26 Thread George King
New submission from George King : Using macOS 11.6 Terminal.app with Python 3.10.0 installed directly from python.org. I open the REPL. If I enter `char(0xff)` I get back 'ÿ' as expected (U00FF LATIN SMALL LETTER Y WITH DIAERESIS). However, If I copy this character with surrounding quotes,

[issue45902] Bytes and bytesarrays can be sorted with a much faster count sort.

2021-11-26 Thread Eric V. Smith
Eric V. Smith added the comment: Given that the normal sort() machinery wouldn't use this code, I don't think there's any advantage to adding .sort() methods to bytes and bytesarray. The downside to adding these methods is the increased complexity in the stdlib. I think the better approach

[issue32936] RobotFileParser.parse() should raise an exception when the robots.txt file is invalid

2021-11-26 Thread Irit Katriel
Irit Katriel added the comment: Please reopen this or create a new issue if this is still a problem and you can provide the missing information. -- resolution: -> rejected stage: -> resolved status: pending -> closed ___ Python tracker

[issue45876] Improve accuracy of stdev functions in statistics

2021-11-26 Thread Tim Peters
Tim Peters added the comment: Mark, ya, MS's Visual Studio's ldexp() has, far as I know, always worked this way. The code I showed was run under the 2019 edition, which we use to build the Windows CPython. Raymond, x = float(i) is screamingly obvious at first glance. x = i/1

[issue45866] Out of tree build of Python 3.11.0a2+ breaks regen-frozen

2021-11-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset b6defde2afe656db830d6fedf74ca5f6225f5928 by Victor Stinner in branch '3.10': bpo-45866: pegen strips directory of "generated from" header (GH-29777) (GH-29792) https://github.com/python/cpython/commit/b6defde2afe656db830d6fedf74ca5f6225f5928

[issue45866] Out of tree build of Python 3.11.0a2+ breaks regen-frozen

2021-11-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +28032 pull_request: https://github.com/python/cpython/pull/29797 ___ Python tracker ___

[issue45876] Improve accuracy of stdev functions in statistics

2021-11-26 Thread Mark Dickinson
Mark Dickinson added the comment: [Raymond] > [...] perhaps do an int/int division to match the other code path [...] Sure, works for me. -- ___ Python tracker ___

[issue45903] What’s New In Python 3.11: wrong reference to Signature.from_callable

2021-11-26 Thread Alex Waygood
Change by Alex Waygood : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45866] Out of tree build of Python 3.11.0a2+ breaks regen-frozen

2021-11-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 93a540d74c654819ad04d72fcdcf827d0e25 by Victor Stinner in branch '3.9': bpo-45866: pegen strips directory of "generated from" header (GH-29777) (GH-29792) (GH-29797)

[issue4322] function with modified __name__ uses original name when there's an arg error

2021-11-26 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11: >>> def foo(): pass ... >>> foo.__name__ = 'bar' >>> foo(1) Traceback (most recent call last): File "", line 1, in TypeError: foo() takes 0 positional arguments but 1 was given -- nosy: +iritkatriel versions: +Python 3.11

[issue45902] Bytes and bytesarrays can be sorted with a much faster count sort.

2021-11-26 Thread STINNER Victor
STINNER Victor added the comment: There are other byte-like objects like memoryview or array.array (for some array types). I would suggest writing a function rather than a method. -- ___ Python tracker

[issue45902] Bytes and bytesarrays can be sorted with a much faster count sort.

2021-11-26 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45901] store app file type ignores command-line arguments

2021-11-26 Thread Steve Dower
Steve Dower added the comment: For future reference, in case someone stumbles over this issue, here's how I tested this change: * set $env:IncludeUWP="true" * did a regular PCbuild/build.bat * generated a Store layout with "./python.bat PC/layout --preset-appx --copy ./out" * mock-installed

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-11-26 Thread Christian Heimes
Christian Heimes added the comment: New changeset 4ebde73b8e416eeb1fd5d2ca3283f7ddb534c5b1 by Christian Heimes in branch 'main': bpo-40280: Move hard-coded feature checks to configure (GH-29789) https://github.com/python/cpython/commit/4ebde73b8e416eeb1fd5d2ca3283f7ddb534c5b1 --

[issue33381] [doc] Incorrect documentation for strftime()/strptime() format code %f

2021-11-26 Thread Vishal Pandey
Change by Vishal Pandey : -- keywords: +patch nosy: +vishalpandeyvip nosy_count: 5.0 -> 6.0 pull_requests: +28035 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29801 ___ Python tracker

[issue25341] File mode wb+ appears as rb+

2021-11-26 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11. -- nosy: +iritkatriel versions: +Python 3.11 -Python 2.7, Python 3.5, Python 3.6 ___ Python tracker ___

[issue28422] multiprocessing Manager mutable type member access failure

2021-11-26 Thread Vilnis Termanis
Vilnis Termanis added the comment: Apologies, my mistake - it does indeed work with 3.9 & 3.10. Feel free to close. -- resolution: -> works for me status: open -> pending versions: +Python 3.8 ___ Python tracker

[issue28422] multiprocessing Manager mutable type member access failure

2021-11-26 Thread Irit Katriel
Irit Katriel added the comment: Thank you. -- stage: -> resolved status: pending -> closed ___ Python tracker ___ ___

[issue45876] Improve accuracy of stdev functions in statistics

2021-11-26 Thread Tim Peters
Tim Peters added the comment: > Objects/longobject.c::long_true_divide() uses ldexp() internally. > Will it suffer the same issues with subnormals on Windows? Doesn't look like it will. In context, looks like it's ensuring that ldexp can only lose trailing 0 bits, so that _whatever_ ldexp

[issue45876] Improve accuracy of stdev functions in statistics

2021-11-26 Thread Mark Dickinson
Mark Dickinson added the comment: > All the rounding has already happened at the point where ldexp is called, and > the result of the ldexp call is exact. Sketch of proof: [Here](https://github.com/python/cpython/blob/4ebde73b8e416eeb1fd5d2ca3283f7ddb534c5b1/Objects/longobject.c#L3929) we

[issue45866] Out of tree build of Python 3.11.0a2+ breaks regen-frozen

2021-11-26 Thread miss-islington
miss-islington added the comment: New changeset fc16ea9c8b8769af8a4c0c16fed7eba2e8bf4019 by Miss Islington (bot) in branch '3.10': bpo-45866: Fix typo in the NEWS entry (GH-29798) https://github.com/python/cpython/commit/fc16ea9c8b8769af8a4c0c16fed7eba2e8bf4019 --

[issue44359] test_ftplib.test_makeport() fails as "env changes" if a socket operation times out in a thread: TimeoutError is not catched

2021-11-26 Thread Guido van Rossum
Change by Guido van Rossum : -- pull_requests: -26699 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45582] Rewrite getpath.c in Python

2021-11-26 Thread Steve Dower
Steve Dower added the comment: Status update on this: I owe everyone a perf comparison of the before/after with this change. I don't particularly want to block on a regression unless it's significant (honestly still have no idea what to expect), but open to others' thoughts on this point.

[issue45901] store app file type ignores command-line arguments

2021-11-26 Thread Steve Dower
Change by Steve Dower : -- assignee: -> steve.dower resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45907] Optimize literal comparisons and contains

2021-11-26 Thread theeshallnotknowethme
New submission from theeshallnotknowethme : Most operations with literals are optimized as well, so why shouldn't the comparison/contain operators be? I created a new bug report for it because of this fact and the TODO in the `fold_compare` function in `Python/ast_opt.c`. --

[issue25880] codecs should raise specific UnicodeDecodeError/UnicodeEncodeError rather than just UnicodeError

2021-11-26 Thread Irit Katriel
Change by Irit Katriel : -- title: u'..'.encode('idna') → UnicodeError: label empty or too long -> codecs should raise specific UnicodeDecodeError/UnicodeEncodeError rather than just UnicodeError versions: +Python 3.11 -Python 2.7, Python 3.4 ___

[issue45907] Optimize literal comparisons and contains

2021-11-26 Thread theeshallnotknowethme
Change by theeshallnotknowethme : -- keywords: +patch pull_requests: +28042 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29810 ___ Python tracker

[issue41735] Thread locks in zlib module may go wrong in rare case

2021-11-26 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 86c1265cdc64030c8921e0da5fcae2ac64299c26 by Ma Lin in branch '3.9': [3.9] bpo-41735: Fix thread lock in zlib.Decompress.flush() may go wrong (GH-29588) https://github.com/python/cpython/commit/86c1265cdc64030c8921e0da5fcae2ac64299c26

[issue41735] Thread locks in zlib module may go wrong in rare case

2021-11-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +28044 pull_request: https://github.com/python/cpython/pull/29812 ___ Python tracker ___

[issue28463] Email long headers parsing/serialization

2021-11-26 Thread Irit Katriel
Change by Irit Katriel : -- type: -> behavior versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.4, Python 3.5 ___ Python tracker ___

[issue38497] [doc] Wrong argument name in documentation for pipes.Template.open

2021-11-26 Thread Irit Katriel
Irit Katriel added the comment: It's documented as a positional arg: Template.open(file, mode) https://docs.python.org/3/library/pipes.html#pipes.Template.open but accepts it also as the kwarg "rw". So these are ok: from pipes import Template; Template().open('/tmp/f', rw='r') from pipes

[issue45906] Python github installation issue

2021-11-26 Thread Some User
Change by Some User : -- title: Python github installatiomn issue -> Python github installation issue ___ Python tracker ___ ___

[issue28422] multiprocessing Manager mutable type member access failure

2021-11-26 Thread Vilnis Termanis
Vilnis Termanis added the comment: If you un-comment the print_exc() call, you'll see that it still fails - for queue.Queue: Manager failure (for Queue) Traceback (most recent call last): File "fish.py", line 74, in main add_type_in_own_process(mgr, type_name) File "fish.py", line

[issue45866] Out of tree build of Python 3.11.0a2+ breaks regen-frozen

2021-11-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +28037 pull_request: https://github.com/python/cpython/pull/29804 ___ Python tracker ___

[issue45866] Out of tree build of Python 3.11.0a2+ breaks regen-frozen

2021-11-26 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +28036 pull_request: https://github.com/python/cpython/pull/29803 ___ Python tracker

[issue45866] Out of tree build of Python 3.11.0a2+ breaks regen-frozen

2021-11-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9a7611a7c4da6406383f8ffcea272ded6f890f1e by Victor Stinner in branch 'main': bpo-45866: Fix typo in the NEWS entry (GH-29798) https://github.com/python/cpython/commit/9a7611a7c4da6406383f8ffcea272ded6f890f1e --

  1   2   >