[issue15577] Real argc and argv in embedded interpreter

2020-06-08 Thread Daniele Varrazzo
Daniele Varrazzo added the comment: Py_GetArgcArgv gone broke setproctitle indeed. https://github.com/dvarrazzo/py-setproctitle/issues/76 Is there a way to get the same feature in 3.9 or should setproctitle become no-op from 3.9 on and Python loses this feature? Thank you. --

[issue40907] cpython/queue.py: put() does not acquire not_empty lock before notifying on it

2020-06-08 Thread r n
Change by r n : -- components: Library (Lib) nosy: r n2 priority: normal severity: normal status: open title: cpython/queue.py: put() does not acquire not_empty lock before notifying on it type: behavior versions: Python 3.8 ___ Python tracker

[issue34916] Add create_window_function() to sqlite3.Connection

2020-06-08 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Berker, are you still working on this? If not, I've got a proof-of-concept version of this w/unit tests ready for review. If you'd like to have a look at it, I can create a draft PR. -- nosy: +erlendaasland

[issue40907] cpython/queue.py: put() does not acquire not_empty before notifying on it

2020-06-08 Thread r n
Change by r n : -- title: cpython/queue.py: put() does not acquire not_empty lock before notifying on it -> cpython/queue.py: put() does not acquire not_empty before notifying on it ___ Python tracker

[issue40907] cpython/queue.py: put() does not acquire not_empty lock before notifying on it

2020-06-08 Thread r n
Change by r n : -- versions: +Python 3.6, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15577] Real argc and argv in embedded interpreter

2020-06-08 Thread Petr Viktorin
Petr Viktorin added the comment: FWIW, another project that needs Py_GetArgcArgv is "setproctitle": https://bugzilla.redhat.com/show_bug.cgi?id=1792059 See also: https://github.com/cherrypy/cherrypy/issues/1506 -- nosy: +petr.viktorin ___ Python

[issue40910] Py_GetArgcArgv() is no longer exported by the C API

2020-06-08 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-29857: Provide `sys.executable_argv` for host application's command line arguments. -- ___ Python tracker ___

[issue29882] Add an efficient popcount method for integers

2020-06-08 Thread STINNER Victor
STINNER Victor added the comment: New changeset c6b292cdeee689f0bfac6c1e2c2d4e4e01fa8d9e by Victor Stinner in branch 'master': bpo-29882: Add _Py_popcount32() function (GH-20518) https://github.com/python/cpython/commit/c6b292cdeee689f0bfac6c1e2c2d4e4e01fa8d9e --

[issue40854] [Patch] Allow overriding sys.platlibdir

2020-06-08 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8f023a2f664f902a3d0b7a6f64d63afc0d1c15ae by Sandro Mani in branch 'master': bpo-40854: Allow overriding sys.platlibdir via PYTHONPLATLIBDIR env-var (GH-20605) https://github.com/python/cpython/commit/8f023a2f664f902a3d0b7a6f64d63afc0d1c15ae

[issue40911] Unexpected behaviour for += assignment to list inside tuple

2020-06-08 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Multiple steps happens at once here, first the list is extended, then the result is written back to the tuple, at which point it raises TypeError because you can't write to a tuple. When TypeError is raised, the list has already be extended. The code is

[issue40854] [Patch] Allow overriding sys.platlibdir

2020-06-08 Thread STINNER Victor
STINNER Victor added the comment: I merged the patch in master, future Python 3.10. I would prefer to leave Python 3.9 unchanged, if possible. Can we close this issue? -- ___ Python tracker

[issue40911] Unexpected behaviour for += assignment to list inside tuple

2020-06-08 Thread Adam Cmiel
Adam Cmiel added the comment: Got it, I didn't realize that the last step of augmented assignment is (in this case) assigning the result of __iadd__ back to the tuple. Thanks for the explanations! -- ___ Python tracker

[issue40903] Segfault in new PEG parser

2020-06-08 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40805] Can no longer patch flask.g

2020-06-08 Thread Rob Taft
Rob Taft added the comment: https://github.com/pallets/flask/issues/3637 I've worked around the issue and accept that this will not work in the future. -- status: open -> closed ___ Python tracker

[issue40910] Py_GetArgcArgv() is no longer exported by the C API

2020-06-08 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +19930 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20721 ___ Python tracker ___

[issue20928] xml.etree.ElementInclude does not include nested xincludes

2020-06-08 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 9.0 -> 10.0 pull_requests: +19932 pull_request: https://github.com/python/cpython/pull/20722 ___ Python tracker

[issue33187] Document ElementInclude (XInclude) support in ElementTree

2020-06-08 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 7.0 -> 8.0 pull_requests: +19931 pull_request: https://github.com/python/cpython/pull/20722 ___ Python tracker

[issue40910] Py_GetArgcArgv() is no longer exported by the C API

2020-06-08 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-23427 "Python should expose command when invoked with -c" -- ___ Python tracker ___

[issue33187] Document ElementInclude (XInclude) support in ElementTree

2020-06-08 Thread miss-islington
miss-islington added the comment: New changeset 1220a4707966679d15a9b5f7596ddd06bb4d5f23 by Miss Islington (bot) in branch '3.9': bpo-33187: Document 3.9 changes to xml.etree.ElementInclude.include (GH-20438) https://github.com/python/cpython/commit/1220a4707966679d15a9b5f7596ddd06bb4d5f23

[issue20928] xml.etree.ElementInclude does not include nested xincludes

2020-06-08 Thread miss-islington
miss-islington added the comment: New changeset 1220a4707966679d15a9b5f7596ddd06bb4d5f23 by Miss Islington (bot) in branch '3.9': bpo-33187: Document 3.9 changes to xml.etree.ElementInclude.include (GH-20438) https://github.com/python/cpython/commit/1220a4707966679d15a9b5f7596ddd06bb4d5f23

[issue40908] datetime strftime with %Y and 2 digit years

2020-06-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +belopolsky, p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40911] Unexpected behaviour for += assignment to list inside tuple

2020-06-08 Thread Adam Cmiel
New submission from Adam Cmiel : Python version: Python 3.8.3 (default, May 15 2020, 00:00:00) [GCC 10.1.1 20200507 (Red Hat 10.1.1-1)] on linux Description: When assigning to a tuple index using +=, if the element at that index is a list, the list is extended and a TypeError is raised. a

[issue40910] Py_GetArgcArgv() is no longer exported by the C API

2020-06-08 Thread Daniele Varrazzo
Daniele Varrazzo added the comment: Thank you for opening this. FYI: > probably the original argv can still be found scanning backwards from environ this is how the module works indeed in Python 3. -- nosy: +piro ___ Python tracker

[issue40854] [Patch] Allow overriding sys.platlibdir

2020-06-08 Thread Sandro Mani
Sandro Mani added the comment: Many thanks! - I'll ask downstream to carry the patch for the 3.9 cycle, so I'm ok with closing. -- ___ Python tracker ___

[issue40903] Segfault in new PEG parser

2020-06-08 Thread STINNER Victor
STINNER Victor added the comment: https://buildbot.python.org/all/#builders/765/builds/51 The new test fails with the old parser: ** File

[issue40903] Segfault in new PEG parser

2020-06-08 Thread STINNER Victor
STINNER Victor added the comment: > The new test fails with the old parser: Oh, it's already fixed by: https://github.com/python/cpython/commit/2b33cc3a2509983c4fa7884fa2722bd2e5781e51 -- ___ Python tracker

[issue40903] Segfault in new PEG parser

2020-06-08 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > The new test fails with the old parser: I fixed it this morning in https://github.com/python/cpython/pull/20717 -- ___ Python tracker

[issue40910] Py_GetArgcArgv() is no longer exported by the C API

2020-06-08 Thread STINNER Victor
New submission from STINNER Victor : Python 3.9 is now built with -fvisibility=hidden. The Py_GetArgcArgv() function is no longer exported. Previously, it was exported because all symbols were exported by default. I'm working on a PR to export it again. Fedora downstream issue, setproctitle

[issue40910] Py_GetArgcArgv() is no longer exported by the C API

2020-06-08 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-15577 "Real argc and argv in embedded interpreter". -- ___ Python tracker ___ ___

[issue40910] Py_GetArgcArgv() is no longer exported by the C API

2020-06-08 Thread STINNER Victor
STINNER Victor added the comment: setproctitle upstream report: https://github.com/dvarrazzo/py-setproctitle/issues/76 -- ___ Python tracker ___

[issue40065] py39: remove deprecation note for xml.etree.cElementTree

2020-06-08 Thread Christian Heimes
Christian Heimes added the comment: No, please don't change the docs yet. I want to re-introduce the cElementTree and go through a proper deprecation phase. -- ___ Python tracker

[issue40841] Provide mimetypes.sniff API as stdlib

2020-06-08 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +19929 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20720 ___ Python tracker ___

[issue40911] Unexpected behaviour for += assignment to list inside tuple

2020-06-08 Thread Steven D'Aprano
Steven D'Aprano added the comment: Alas, this gotcha is the consequence of the way `+=` is defined in Python. Although the behaviour is surprising, there's nothing to fix because everything is working as expected: * addition to a list will extend the list, as expected; * trying to assign

[issue40065] py39: remove deprecation note for xml.etree.cElementTree

2020-06-08 Thread Tal Einat
Tal Einat added the comment: (My mistake! This should be done from/against the master branch, and then back-ported to 3.9, as usual.) -- ___ Python tracker ___

[issue40065] py39: remove deprecation note for xml.etree.cElementTree

2020-06-08 Thread Tal Einat
Tal Einat added the comment: (Also, please note that the "master" branch is now for version 3.10; PRs for version 3.9 should be based on the "3.9" branch, and the pull request made for that branch too.) -- ___ Python tracker

[issue40910] Py_GetArgcArgv() is no longer exported by the C API

2020-06-08 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-5672 "Implement a way to change the python process name", especially this comment: https://bugs.python.org/issue5672#msg108524 """ setproctitle is quite stable, my company uses it in production environment very heavily with python 2.x. Probably

[issue33187] Document ElementInclude (XInclude) support in ElementTree

2020-06-08 Thread Stefan Behnel
Stefan Behnel added the comment: New changeset 301f0d4ff9b6bd60599eea0612904f65a92e6dd9 by Shantanu in branch 'master': bpo-33187: Document 3.9 changes to xml.etree.ElementInclude.include (GH-20438) https://github.com/python/cpython/commit/301f0d4ff9b6bd60599eea0612904f65a92e6dd9

[issue20928] xml.etree.ElementInclude does not include nested xincludes

2020-06-08 Thread Stefan Behnel
Stefan Behnel added the comment: New changeset 301f0d4ff9b6bd60599eea0612904f65a92e6dd9 by Shantanu in branch 'master': bpo-33187: Document 3.9 changes to xml.etree.ElementInclude.include (GH-20438) https://github.com/python/cpython/commit/301f0d4ff9b6bd60599eea0612904f65a92e6dd9

[issue40065] py39: remove deprecation note for xml.etree.cElementTree

2020-06-08 Thread Tal Einat
Tal Einat added the comment: AFAICT from following the discussion, the decision is to hold off on a few deprecations which were causing most of the breakage. However, this does not appear to include xml.etree.cElementTree. Since that has currently been removed in the 3.9 branch, we should

[issue40887] Free lists are still used after being finalized (cleared)

2020-06-08 Thread Stefan Krah
Stefan Krah added the comment: > It's not a regression. It's just that bpo-40521 helped Valgrind to detect > such bug :-) Yes, I suspected that previously reachable global objects were just unreachable after the new free lists. Thanks for the fix! --

[issue40903] Segfault in new PEG parser

2020-06-08 Thread miss-islington
miss-islington added the comment: New changeset 8df4f3942faf05790efeaf62a8f493aabd181d3f by Miss Islington (bot) in branch '3.9': bpo-40903: Handle multiple '=' in invalid assignment rules in the PEG parser (GH-20697)

[issue40521] [subinterpreters] Make free lists and unicode caches per-interpreter

2020-06-08 Thread Mark Shannon
Mark Shannon added the comment: I'd be interested to see if you can get more consistent results. Performance of modern hardware is very sensitive to memory layout, so some sort of address randomization might be needed to remove artifacts of layout. It is possible that the objects on the free

[issue40908] datetime strftime with %Y and 2 digit years

2020-06-08 Thread laurent chriqui
New submission from laurent chriqui : When you use strftime with a 2 digit year i.e. '32' it outputs a '32' instead of '0032'. This prevents parsing the string again with the same format through strftime. Exemple: import datetime datetime_format="%Y" date=datetime.date(32,1,1)

[issue40909] unittest assertCountEqual doesn't filter on values in dict

2020-06-08 Thread Emil Bode
New submission from Emil Bode : Found as a comment on SO (https://stackoverflow.com/questions/12813633/how-to-assert-two-list-contain-the-same-elements-in-python#comment104082703_31832447): In unittest, `self.assertCountEqual({1: [1, 2, 3]}, {1: [5, 6, 7]})` succeeds, even though the two are

[issue22021] shutil.make_archive() root_dir do not work

2020-06-08 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: Since GH-10367 is now merged, should we close this? -- ___ Python tracker ___ ___

[issue40889] Symmetric difference on dict_views is inefficient

2020-06-08 Thread Dennis Sweeney
Dennis Sweeney added the comment: PR 20718 helps somewhat by only creating and hashing the tuples that wind up in the final set. Here's a benchmark: -m pyperf timeit -s "d1 = {i:i for i in range(100_000)}; d2 = {i:i|1 for i in range(100_000)}" "d1.items() ^ d2.items()" Master: 37.9

[issue40889] Symmetric difference on dict_views is inefficient

2020-06-08 Thread Dennis Sweeney
Change by Dennis Sweeney : -- keywords: +patch pull_requests: +19928 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20718 ___ Python tracker ___

[issue40897] Inheriting from Generic causes inspect.signature to always return (*args, **kwargs) for constructor (and all subclasses)

2020-06-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think that inspect.signature() could be made more smart. It should take into account signatures of both __new__ and __init__ and return the most specific compatible signature. -- ___ Python tracker

[issue35885] configparser: indentation

2020-06-08 Thread Tal Einat
Tal Einat added the comment: I'm -1 on making this change. Frankly, I think there are many better modern alternatives to ConfigParser, and I think we should avoid complicating it any further. -- nosy: +taleinat ___ Python tracker

[issue40909] unittest assertCountEqual doesn't filter on values in dict

2020-06-08 Thread Steven D'Aprano
Steven D'Aprano added the comment: This is working as designed. assertCountEqual is documented here: https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertCountEqual It says: "Test that sequence *first* contains the same elements as *second*..." notice that it talks about

[issue40854] [Patch] Allow overriding sys.platlibdir

2020-06-08 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19935 pull_request: https://github.com/python/cpython/pull/20725 ___ Python tracker ___

[issue23427] Add sys.orig_argv: original command line arguments passed to the Python executable

2020-06-08 Thread STINNER Victor
Change by STINNER Victor : -- title: Python should expose command when invoked with -c -> Add sys.orig_argv: original command line arguments passed to the Python executable ___ Python tracker

[issue23427] Python should expose command when invoked with -c

2020-06-08 Thread STINNER Victor
STINNER Victor added the comment: My implementation (PR 20729) is based on bpo-40910 change which added a private PyConfig._orig_argv member to fix Py_GetArgcArgv(). -- ___ Python tracker

[issue40854] Allow overriding sys.platlibdir: add PYTHONPLATLIBDIR env var

2020-06-08 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19942 pull_request: https://github.com/python/cpython/pull/20735 ___ Python tracker ___

[issue24914] Python: Not just OO style but this is not mentioned on python.org or in FAQ

2020-06-08 Thread Brett Cannon
Brett Cannon added the comment: New changeset 14073c509058f8efeb5ea7f7693bf84f410d24b7 by Miss Islington (bot) in branch '3.8': bpo-24914: mention Python supports multiple paradigms in the FAQ (GH-20658) (GH-20738)

[issue40910] Py_GetArgcArgv() is no longer exported by the C API

2020-06-08 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19933 pull_request: https://github.com/python/cpython/pull/20723 ___ Python tracker ___

[issue1294959] Add sys.platlibdir and configure --with-platlibdir to use /usr/lib64 on Fedora and SuSE

2020-06-08 Thread STINNER Victor
STINNER Victor added the comment: Oh, it seems like one of the changes merged in this issue broke the following use case if platlibdir is different than "lib": export PYTHONHOME= export PYTHONPATH=/lib/python3.9 python3.9 See bpo-40854 "Allow overriding sys.platlibdir: add

[issue40854] Allow overriding sys.platlibdir: add PYTHONPLATLIBDIR env var

2020-06-08 Thread STINNER Victor
Change by STINNER Victor : -- title: [Patch] Allow overriding sys.platlibdir: add PYTHONPLATLIBDIR env var -> Allow overriding sys.platlibdir: add PYTHONPLATLIBDIR env var ___ Python tracker

[issue35885] configparser: indentation

2020-06-08 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks for your contribution Ido Michael but I'm also -1 on the feature. .ini is an underspecified format and it's supposed to be interoperable between applications. Indenting keys sounds like a compatibility challenge. -- resolution: -> wont fix

[issue40910] Py_GetArgcArgv() is no longer exported by the C API

2020-06-08 Thread STINNER Victor
STINNER Victor added the comment: Py_GetArgcArgv() is not new at all. It exists since: commit ac56b03f9a931423714ab3a0e8cfae78f81f9b85 Author: Guido van Rossum Date: Sun Jul 21 02:33:38 1996 + New style names for getprogramname and getargcargv Previously, the function was known

[issue23427] Python should expose command when invoked with -c

2020-06-08 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-14208 "No way to recover original argv with python -m". For the specific case of `python -m`, the original argument has been available as `__main__.__spec__.name` since Python 3.4. -- ___ Python

[issue40275] test.support has way too many imports

2020-06-08 Thread hai shi
Change by hai shi : -- pull_requests: +19941 pull_request: https://github.com/python/cpython/pull/20732 ___ Python tracker ___ ___

[issue40854] Allow overriding sys.platlibdir: add PYTHONPLATLIBDIR env var

2020-06-08 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5edb83241f2ff899917e895092aca0216faf42d3 by Victor Stinner in branch 'master': bpo-40854: PYTHONPLATLIBDIR env var added to 3.9 (GH-20735) https://github.com/python/cpython/commit/5edb83241f2ff899917e895092aca0216faf42d3 --

[issue1294959] Add sys.platlibdir and configure --with-platlibdir to use /usr/lib64 on Fedora and SuSE

2020-06-08 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19936 pull_request: https://github.com/python/cpython/pull/20725 ___ Python tracker ___

[issue35228] Index search in CHM help crashes viewer

2020-06-08 Thread Steve Dower
Steve Dower added the comment: We either need someone to contribute a fix to sphinxcontrib\htmlhelp\templates\project.hhp (bearing in mind that this *must* be optional, as it breaks search), or write code to patch the generated file between generation and use (which is probably hard). And

[issue40910] Py_GetArgcArgv() is no longer exported by the C API

2020-06-08 Thread STINNER Victor
STINNER Victor added the comment: New changeset dedaac040fe5b0b88acdec072623bb39ec53687f by Victor Stinner in branch '3.9': bpo-40910: Export Py_GetArgcArgv() function (GH-20721) (GH-20723) https://github.com/python/cpython/commit/dedaac040fe5b0b88acdec072623bb39ec53687f --

[issue40861] On Windows, liblzma is always built without optimization

2020-06-08 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +19937 pull_request: https://github.com/python/cpython/pull/20726 ___ Python tracker

[issue40861] On Windows, liblzma is always built without optimization

2020-06-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +19939 pull_request: https://github.com/python/cpython/pull/20728 ___ Python tracker ___

[issue40861] On Windows, liblzma is always built without optimization

2020-06-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +19938 pull_request: https://github.com/python/cpython/pull/20727 ___ Python tracker ___

[issue40861] On Windows, liblzma is always built without optimization

2020-06-08 Thread Steve Dower
Steve Dower added the comment: New changeset 3a3a30c5a4622e18be9f7e4a239dc9e0d7c8054c by Steve Dower in branch 'master': bpo-40861: Enable optimizations when building liblzma (GH-20724) https://github.com/python/cpython/commit/3a3a30c5a4622e18be9f7e4a239dc9e0d7c8054c --

[issue29857] Provide `sys.executable_argv` for host application's command line arguments

2020-06-08 Thread STINNER Victor
STINNER Victor added the comment: I mark this issue as a duplicate of bpo-23427 which has patch and is older. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Python should expose command when invoked with -c

[issue23427] Python should expose command when invoked with -c

2020-06-08 Thread STINNER Victor
STINNER Victor added the comment: I marked bpo-29857 as a duplicate of this issue. -- ___ Python tracker ___ ___ Python-bugs-list

[issue40861] On Windows, liblzma is always built without optimization

2020-06-08 Thread miss-islington
miss-islington added the comment: New changeset 298c8c895f0d4fdd23a16f959efac83039fa1d19 by Miss Islington (bot) in branch '3.9': bpo-40861: Enable optimizations when building liblzma (GH-20724) https://github.com/python/cpython/commit/298c8c895f0d4fdd23a16f959efac83039fa1d19 --

[issue23427] Python should expose command when invoked with -c

2020-06-08 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19940 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20729 ___ Python tracker ___

[issue23427] Python should expose command when invoked with -c

2020-06-08 Thread STINNER Victor
STINNER Victor added the comment: Many names have been proposed: * sys.__argv__: https://bugs.python.org/issue14208#msg155002 * sys.argv_original: https://bugs.python.org/issue14208#msg155053 * sys.full_argv or sys.executable_argv: https://bugs.python.org/issue14208#msg155102 *

[issue40897] Inheriting from class that defines __new__ causes inspect.signature to always return (*args, **kwargs) for constructor

2020-06-08 Thread Guido van Rossum
Guido van Rossum added the comment: Changing the topic to not point fingers at Generic. -- nosy: -levkivskyi title: Inheriting from Generic causes inspect.signature to always return (*args, **kwargs) for constructor (and all subclasses) -> Inheriting from class that defines __new__

[issue40910] Py_GetArgcArgv() is no longer exported by the C API

2020-06-08 Thread STINNER Victor
STINNER Victor added the comment: Ok, I fixed Python 3.9: Py_GetArgcArgv() function is exported again. Let's continue the discussion in bpo-23427. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue40854] Allow overriding sys.platlibdir: add PYTHONPLATLIBDIR env var

2020-06-08 Thread STINNER Victor
STINNER Victor added the comment: New changeset 817506432dd1908cd154500ef18dc276b8dd7071 by Victor Stinner in branch '3.9': bpo-40854: Allow overriding sys.platlibdir via PYTHONPLATLIBDIR env-var (GH-20605) (GH-20725)

[issue24914] Python: Not just OO style but this is not mentioned on python.org or in FAQ

2020-06-08 Thread Brett Cannon
Brett Cannon added the comment: New changeset 3ab3475c42c8ee5580f4ea1aeda73ebc8e5d5478 by Brett Cannon in branch 'master': bpo-24914: mention Python supports multiple paradigms in the FAQ (#20658) https://github.com/python/cpython/commit/3ab3475c42c8ee5580f4ea1aeda73ebc8e5d5478 --

[issue29782] Use __builtin_clzl for bits_in_digit if available

2020-06-08 Thread STINNER Victor
STINNER Victor added the comment: I reopen the issue since PR 20739 was created. -- resolution: rejected -> status: closed -> open ___ Python tracker ___

[issue40913] time.sleep ignores errors on Windows

2020-06-08 Thread Steve Dower
New submission from Steve Dower : In time.sleep on Windows, if the WaitForSingleObject call fails, the call returns success. It essentially looks like the timeout was 0. Errors should be highly unlikely, as the event object is leaked (see issue40912), but if they _do_ occur, we should raise

[issue40910] Py_GetArgcArgv() is no longer exported by the C API

2020-06-08 Thread STINNER Victor
STINNER Victor added the comment: New changeset e81f6e687d0f04a45f2389d0b43fafd6d8491624 by Victor Stinner in branch 'master': bpo-40910: Export Py_GetArgcArgv() function (GH-20721) https://github.com/python/cpython/commit/e81f6e687d0f04a45f2389d0b43fafd6d8491624 --

[issue40861] On Windows, liblzma is always built without optimization

2020-06-08 Thread miss-islington
miss-islington added the comment: New changeset 62e7f9ab55a6426708d5316da6f07d3fe220b53a by Miss Islington (bot) in branch '3.7': bpo-40861: Enable optimizations when building liblzma (GH-20724) https://github.com/python/cpython/commit/62e7f9ab55a6426708d5316da6f07d3fe220b53a --

[issue40861] On Windows, liblzma is always built without optimization

2020-06-08 Thread miss-islington
miss-islington added the comment: New changeset 30513b62b936e3df8e4b6dd4d6b280a6b765 by Miss Islington (bot) in branch '3.8': bpo-40861: Enable optimizations when building liblzma (GH-20724) https://github.com/python/cpython/commit/30513b62b936e3df8e4b6dd4d6b280a6b765 --

[issue40908] datetime strftime with %Y and 2 digit years

2020-06-08 Thread Paul Ganssle
Paul Ganssle added the comment: This is a duplicate of bpo-13305 and is due to platform-specific implementations of %Y. On Linux, `strftime()` does not zero-pad to 4, and if you need to represent years <1000, you should use "%4Y" to zero-pad the output. I think the ideal resolution would be

[issue40861] On Windows, liblzma is always built without optimization

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

[issue40912] _PyOS_SigintEvent is never closed on Windows

2020-06-08 Thread Steve Dower
New submission from Steve Dower : Currently, it's just stored as global state in signalmodule.c and forgotten about. It probably needs to become module state, and the signal module needs better initialization/shutdown. -- components: Windows messages: 371036 nosy: eric.snow,

[issue27657] urlparse fails if the path is numeric

2020-06-08 Thread Michał Górny
Michał Górny added the comment: I wonder if it would be feasible to support new behavior in earlier versions of Python via __future__. I suppose that could help software avoid having Python version-dependent behavior in the long run. -- ___

[issue36457] functools.singledispatchmethod interacts poorly with subclasses

2020-06-08 Thread Łukasz Langa
Łukasz Langa added the comment: The proposed fix requires using a required base class which I'd like to avoid. -- ___ Python tracker ___

[issue27657] urlparse fails if the path is numeric

2020-06-08 Thread Łukasz Langa
Łukasz Langa added the comment: Michał, this change has been reverted in 3.7 and 3.8. Senthil says this needs further work in 3.9. Senthil, please prioritize this. We're already releasing 3.9.0b2. -- ___ Python tracker

[issue23427] Python should expose command when invoked with -c

2020-06-08 Thread Jakub Wilk
Change by Jakub Wilk : -- nosy: +jwilk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40897] Inheriting from Generic causes inspect.signature to always return (*args, **kwargs) for constructor (and all subclasses)

2020-06-08 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40548] Always run GitHub action jobs, even on documentation-only jobs

2020-06-08 Thread Filipe Laíns
Change by Filipe Laíns : -- pull_requests: +19947 pull_request: https://github.com/python/cpython/pull/20740 ___ Python tracker ___

[issue24914] Python: Not just OO style but this is not mentioned on python.org or in FAQ

2020-06-08 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue24914] Python: Not just OO style but this is not mentioned on python.org or in FAQ

2020-06-08 Thread Brett Cannon
Brett Cannon added the comment: New changeset b155381314c632e7dd452fbade3903e58657cfc7 by Miss Islington (bot) in branch '3.9': bpo-24914: mention Python supports multiple paradigms in the FAQ (GH-20658) (GH-20737)

[issue40065] py39: remove deprecation note for xml.etree.cElementTree

2020-06-08 Thread Tal Einat
Tal Einat added the comment: Ah, thanks for the update Christian, I must have misunderstood your intentions. So should the deprecation note be removed in the "master" branch for 3.10? -- ___ Python tracker

[issue40861] On Windows, liblzma is always built without optimization

2020-06-08 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +19934 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20724 ___ Python tracker ___

[issue40861] On Windows, liblzma is always built without optimization

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

[issue40854] [Patch] Allow overriding sys.platlibdir: add PYTHONPLATLIBDIR env var

2020-06-08 Thread STINNER Victor
Change by STINNER Victor : -- title: [Patch] Allow overriding sys.platlibdir -> [Patch] Allow overriding sys.platlibdir: add PYTHONPLATLIBDIR env var ___ Python tracker ___

[issue40854] [Patch] Allow overriding sys.platlibdir

2020-06-08 Thread STINNER Victor
STINNER Victor added the comment: bpo-1294959 added sys.platlibdir and configure --with-platlibdir to use /usr/lib64 on Fedora and SuSE to Python 3.9. The problem is that msg370655 use case seems to be a regression compared to Python 3.9. I now consider to backport the commit

  1   2   >