[issue42006] Stop using PyDict_GetItem, PyDict_GetItemString and _PyDict_GetItemId

2020-10-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: My plan is to deprecate PyDict_GetItem() and functions with same design flaw and finally remove them (in 4.0?). We cannot start to ignore exceptions in PyDict_GetItem(). It would not fix the original flaw when the user code does not check an exception afte

[issue42152] Use PyDict_Contains() and PyDict_SetDefault() instead of PyDict_GetItemIdWithError

2020-10-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: serhiy.storchaka priority: normal severity: normal status: open title: Use PyDict_Contains() and PyDict_SetDefault() instead of PyDict_GetItemIdWithError ___ Python tracker

[issue42146] subprocess.Popen() leaks cwd in case of uid/gid overflow

2020-10-26 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: Thanks for merging! I've rebased PR 22970. -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue42152] Use PyDict_Contains() and PyDict_SetDefault() instead of PyDict_GetItemWithError()

2020-10-26 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : It was common to use the code PyDict_GetItem(dict, key) == NULL to check whether the key is in the dict. PyDict_GetItem() returns borrowed reference, so no clean up is needed. And if we need to check only existence of the key, we do not need to store a v

[issue42152] Use PyDict_Contains() and PyDict_SetDefault() instead of PyDict_GetItemWithError()

2020-10-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +21900 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22986 ___ Python tracker ___

[issue42152] Use PyDict_Contains() and PyDict_SetDefault() instead of PyDict_GetItemWithError()

2020-10-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The code uses also _PyDict_ContainsId() added in issue42006 instead of _PyDict_GetItemIdWithError(). Few uses of _PyDict_GetItemStringWithError() are left as is. I do not think it is worth to introduce _PyDict_ContainsString(). They could be rewritten usin

[issue1490929] urllib.retrieve's reporthook called with non-helpful value

2020-10-26 Thread Senthil Kumaran
Senthil Kumaran added the comment: > so was this fixed? Irit, not really. This is adding another hook called "progress hook" in addition to the "report hook". We need to evaluate if this is really required. -- status: pending -> open ___ Python tr

[issue42153] doc: library imaplib a url not available

2020-10-26 Thread Chris Xiao
New submission from Chris Xiao : jump to https://docs.python.org/3/library/imaplib.html#imap4-objects, in the "See also" text, the url(https://www.washington.edu/imap/) of the University of Washington’s IMAP Information Center is not available. -- assignee: docs@python components: Docu

[issue1490929] urllib.retrieve's reporthook called with non-helpful value

2020-10-26 Thread Irit Katriel
Change by Irit Katriel : -- stage: test needed -> versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.2 ___ Python tracker ___ _

[issue42147] Micro optimization for longrange iteration if step is 1

2020-10-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think that In sum(range(1 << 1000, (1 << 1000) + 100)) it is dwarfed by repeated addition of long integers in sum(). I expect the the effect of this optimization is even less that 13% in this case. In any case, for sum(range(a, b)) it is better to use fo

[issue42096] zipfile.is_zipfile incorrectly identifying a gzipped file as a zip archive

2020-10-26 Thread Alex Roussel
Alex Roussel added the comment: OK understood. Thanks for the explanation, I wasn't aware of those and will take a look. -- ___ Python tracker ___ ___

[issue42153] doc: library imaplib a url not available

2020-10-26 Thread Hitansh K Doshi
Hitansh K Doshi added the comment: hello, I am new to python repo, I would like to contribute here. I checked the page to told and it is showing that https://www.washington.edu/imap/ is not found. I tried to find the url to their documentation but I couldn't found one. can you please guide m

[issue42147] Micro optimization for longrange iteration if step is 1

2020-10-26 Thread Dong-hee Na
Dong-hee Na added the comment: > Sometimes the work of the core developer is to say "No" to his own code. Thank you for the careful sentence. For clear the air, I never think that my patch should be accepted. This is why I always get reviews from other core devs and I always accept the review

[issue42147] Micro optimization for longrange iteration if step is 1

2020-10-26 Thread Dong-hee Na
Dong-hee Na added the comment: I will close this issue by tomorrow with rejected ;) -- ___ Python tracker ___ ___ Python-bugs-list

[issue12737] str.title() is overzealous by upcasing combining marks inappropriately

2020-10-26 Thread Irit Katriel
Irit Katriel added the comment: You're right, I see that too when I don't tamper with the test. -- components: +Library (Lib) ___ Python tracker ___ __

[issue42154] Bad proxy returned immediately after BaseManager server restarted

2020-10-26 Thread john ryan
New submission from john ryan : I am building an application that is made up of several separate processes, where each process is a python program. They are all started by the supervisord utility and execute within a venv running Python 3.8.5 (default, Aug 13 2020, 15:42:06) [GCC 7.5.0] on li

[issue4297] Add error_log attribute to optparse.OptionParser

2020-10-26 Thread Irit Katriel
Irit Katriel added the comment: Following issue9938, argparse now offers a convenient way to handle errors. I propose to close this issue as out of date. -- nosy: +iritkatriel status: open -> pending ___ Python tracker

[issue42152] Use PyDict_Contains() and PyDict_SetDefault() instead of PyDict_GetItemWithError()

2020-10-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b510e101f8b5b31276bf97b921ca9247162881d2 by Serhiy Storchaka in branch 'master': bpo-42152: Use PyDict_Contains and PyDict_SetDefault if appropriate. (GH-22986) https://github.com/python/cpython/commit/b510e101f8b5b31276bf97b921ca9247162881d2

[issue42097] Python 3.7.9 logging/threading/fork hang

2020-10-26 Thread Andrew de Quincey
Andrew de Quincey added the comment: Hi, sorry, I was ill on Friday, apologies for the delayed reply. We're not using os.fork() directly, and I'm afraid the multiprocessing thing I mentioned was a bit of a red herring. We're using a capped pool of threads to spawn subprocesses (using subproc

[issue42155] email.utils.parsedate_to_datetime() should return None when date cannot be parsed

2020-10-26 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Documentation says that parsedate_to_datetime() performs the same function as parsedata(), but on success returns a datetime. parsedata() returns None when date cannot be parsed, but parsedate_to_datetime() raises TypeError. >>> email.utils.parsedate("0

[issue21510] fma documentation should provide better example.

2020-10-26 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.9 -Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5 ___ Python tracker ___ _

[issue15339] document the threading "facts of life" in Python

2020-10-26 Thread Irit Katriel
Change by Irit Katriel : -- priority: low -> normal stage: -> needs patch type: -> behavior versions: +Python 3.10, Python 3.9 -Python 2.7, Python 3.2, Python 3.3 ___ Python tracker

[issue26954] Add Guido's rejection notice to the "with" FAQ

2020-10-26 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.9 -Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6 ___ Python tracker ___ _

[issue42156] Currency not correct for all locales

2020-10-26 Thread Stefan Völkl
New submission from Stefan Völkl : I found that the currency formatting does not work correctly for all locales. For example: {{{ import locale amount = 24.99 locale.setlocale(locale.LC_ALL, 'it_IT.UTF-8') price = locale.currency(amount) print(price) }}} returns "€ 24,99". It should return

[issue42147] Micro optimization for longrange iteration if step is 1

2020-10-26 Thread Dong-hee Na
Dong-hee Na added the comment: I close this issue with rejected status. Thank you serhiy, pablogsal and Inada-san for discussion ;) -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue42156] Currency not correct for all locales

2020-10-26 Thread Eric V. Smith
Eric V. Smith added the comment: What does locale.localeconv() return? >>> locale.localeconv() {'int_curr_symbol': '', 'currency_symbol': '', 'mon_decimal_point': '', 'mon_thousands_sep': '', 'mon_grouping': [], 'positive_sign': '', 'negative_sign': '', 'int_frac_digits': 127, 'frac_digits':

[issue42156] Currency not correct for all locales

2020-10-26 Thread Stefan Völkl
Stefan Völkl added the comment: >>> locale.localeconv() {'int_curr_symbol': 'EUR ', 'currency_symbol': '€', 'mon_decimal_point': ',', 'mon_thousands_sep': '.', 'mon_grouping': [3, 3, 0], 'positive_sign': '', 'negative_sign': '-', 'int_frac_digits': 2, 'frac_digits': 2, 'p_cs_precedes': 1, 'p_

[issue42156] Currency not correct for all locales

2020-10-26 Thread Eric V. Smith
Eric V. Smith added the comment: p_cs_precedes == 1 means "the currency_symbol or int_curr_symbol strings should precede the value of a monetary amount", per https://www.gnu.org/software/libc/manual/html_node/Currency-Symbol.html (I couldn't find a more authoritative source, but I think this

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

2020-10-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 47e1afd2a1793b5818a16c41307a4ce976331649 by Victor Stinner in branch 'master': bpo-1635741: _PyUnicode_Name_CAPI moves to internal C API (GH-22713) https://github.com/python/cpython/commit/47e1afd2a1793b5818a16c41307a4ce976331649 -- _

[issue42097] Python 3.7.9 logging/threading/fork hang

2020-10-26 Thread Alexey Izbyshev
Change by Alexey Izbyshev : Added file: https://bugs.python.org/file49531/test.py ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue42097] Python 3.7.9 logging/threading/fork hang

2020-10-26 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: (Restored test.py attachment) The issue happens due to an incorrect usage of `multiprocessing.Pool`. ``` # Set up multiprocessing pool, initialising logging in each subprocess with multiprocessing.Pool(initializer=process_setup, initargs=(get_queue(

[issue42097] Python 3.7.9 logging/threading/fork hang

2020-10-26 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: By the way, I don't see a direct relation between `test.py` (which doesn't use `subprocess` directly) and your comment describing `subprocess` usage with threads. So if you think that the bug in `test.py` is unrelated to the problem you face, feel free to r

[issue42151] Pure Python xml.etree.ElementTree is missing default attribute values

2020-10-26 Thread Felix C. Stegerman
Change by Felix C. Stegerman : -- keywords: +patch pull_requests: +21901 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22987 ___ Python tracker _

[issue39706] unittest.IsolatedAsyncioTestCase hangs on asyncio.CancelledError

2020-10-26 Thread Lisa Roach
Change by Lisa Roach : -- keywords: +patch nosy: +lisroach nosy_count: 3.0 -> 4.0 pull_requests: +21902 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22654 ___ Python tracker __

[issue39101] IsolatedAsyncioTestCase freezes when exception is raised

2020-10-26 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +21903 pull_request: https://github.com/python/cpython/pull/22988 ___ Python tracker _

[issue39706] unittest.IsolatedAsyncioTestCase hangs on asyncio.CancelledError

2020-10-26 Thread Lisa Roach
Change by Lisa Roach : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Py

[issue39101] IsolatedAsyncioTestCase freezes when exception is raised

2020-10-26 Thread Lisa Roach
Lisa Roach added the comment: New changeset 8374d2ee1589791be8892b00f4bbf8121dde24bd by Lisa Roach in branch 'master': bpo-39101: Fixes BaseException hang in IsolatedAsyncioTestCase. (GH-22654) https://github.com/python/cpython/commit/8374d2ee1589791be8892b00f4bbf8121dde24bd -- ___

[issue39101] IsolatedAsyncioTestCase freezes when exception is raised

2020-10-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +21904 pull_request: https://github.com/python/cpython/pull/22989 ___ Python tracker ___ __

[issue39101] IsolatedAsyncioTestCase freezes when exception is raised

2020-10-26 Thread Lisa Roach
Change by Lisa Roach : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Py

[issue42155] email.utils.parsedate_to_datetime() should return None when date cannot be parsed

2020-10-26 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Hi Serhiy. I believe this is a duplicate of bpo-30681 which is active and has a good PR IMHO. The only hold up is whether to backport that PR to 3.9 and 3.8. See the bug and PR for details. -- resolution: -> duplicate superseder: -> email.utils

[issue42151] Pure Python xml.etree.ElementTree is missing default attribute values

2020-10-26 Thread Stefan Behnel
Stefan Behnel added the comment: The patch looks right. I'm not sure if this can still be changed in Py3.8, though, since that has been around for quite a while now. Admittedly, few people will disable the C accelerator module and thus whitness this issue, but for them, this is a breaking ch

[issue42155] email.utils.parsedate_to_datetime() should return None when date cannot be parsed

2020-10-26 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue38865] [subinterpreters] Can Py_Finalize() be called if the current interpreter is not the main interpreter?

2020-10-26 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue42157] Cleanup the unicodedata module

2020-10-26 Thread STINNER Victor
New submission from STINNER Victor : Mohamed Koubaa and me are trying to convert the unicodedata module to the multi-phase initialization API (PEP 489) and to convert the UCD static type to a heap type in bpo-1635741. The unicodedata extension module has some special cases: * It has a C API

[issue42157] Cleanup the unicodedata module

2020-10-26 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 26.10.2020 18:05, STINNER Victor wrote: > > By the way, Unicode 3.2 was released in 2002: 18 years ago. I don't think > that it's still relevant in 2020 to keep backward compatibility with Unicode > 3.2. I propose to deprecate unicodedata.ucd_3_2_0 and

[issue39573] [C API] Make PyObject an opaque structure in the limited C API

2020-10-26 Thread Miro Hrončok
Miro Hrončok added the comment: This also breaks pycurl: https://github.com/pycurl/pycurl/pull/660 And breezy: https://bugzilla.redhat.com/show_bug.cgi?id=1890880 (not yet reported upstream) I don't understand the rationale for this change in depth, but does the benefit outweigh (yet anoth

[issue42158] guess_format() MIME type doesn't guess n-quads, n-triples, notation3 and TriG

2020-10-26 Thread Dylan Van Assche
New submission from Dylan Van Assche : guess_format() from lib/mimetypes.py doesn't guess correctly the following MIME types: - .nq: application/n-quads (specification: https://www.w3.org/TR/n-quads/) - .nt: application/n-triples (specification: https://www.w3.org/TR/n-triples/) - .n3: text/n3

[issue42157] Cleanup the unicodedata module

2020-10-26 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +21905 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22990 ___ Python tracker ___ _

[issue42158] http.server doesn't guess n-quads, n-triples, notation3 and TriG MIME types

2020-10-26 Thread Dylan Van Assche
Change by Dylan Van Assche : -- title: http.server MIME type doesn't guess n-quads, n-triples, notation3 and TriG MIME types -> http.server doesn't guess n-quads, n-triples, notation3 and TriG MIME types ___ Python tracker

[issue42158] http.server MIME type doesn't guess n-quads, n-triples, notation3 and TriG MIME types

2020-10-26 Thread Dylan Van Assche
Change by Dylan Van Assche : -- title: guess_format() MIME type doesn't guess n-quads, n-triples, notation3 and TriG -> http.server MIME type doesn't guess n-quads, n-triples, notation3 and TriG MIME types ___ Python tracker

[issue42158] http.server doesn't guess n-quads, n-triples, notation3 and TriG MIME types

2020-10-26 Thread Dylan Van Assche
Dylan Van Assche added the comment: Adding the MIME types to /etc/mime.types fixes this issue, but I'm not sure if that's the right 'fix' -- ___ Python tracker ___ __

[issue42157] Cleanup the unicodedata module

2020-10-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 920cb647ba23feab7987d0dac1bd63bfc2ffc4c0 by Victor Stinner in branch 'master': bpo-42157: unicodedata avoids references to UCD_Type (GH-22990) https://github.com/python/cpython/commit/920cb647ba23feab7987d0dac1bd63bfc2ffc4c0 -- __

[issue42157] Cleanup the unicodedata module

2020-10-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +21906 pull_request: https://github.com/python/cpython/pull/22991 ___ Python tracker ___ __

[issue39573] [C API] Make PyObject an opaque structure in the limited C API

2020-10-26 Thread Neil Schemenauer
Neil Schemenauer added the comment: > I don't understand the rationale for this change in depth, but > does the benefit outweigh (yet another) backwards incompatibility? I think you can have it both ways. Do you want a C API that is stable over a long period of CPython releases or do you want

[issue39573] [C API] Make PyObject an opaque structure in the limited C API

2020-10-26 Thread Neil Schemenauer
Neil Schemenauer added the comment: Correction: I think you *cannot* have it both ways. -- ___ Python tracker ___ ___ Python-bugs-l

[issue42156] Currency not correct for all locales

2020-10-26 Thread Eric V. Smith
Eric V. Smith added the comment: And just to show that python is doing the right thing, if the locale is set up correctly, I'll show the following hack: >>> import locale >>> locale.setlocale(locale.LC_ALL, 'en_US') 'en_US' >>> locale.currency(24.99) '$24.99' >>> locale._override_localeconv["

[issue41490] Update bundled pip to 20.2.1 and setuptools to 49.2.1

2020-10-26 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue41486] Add _BlocksOutputBuffer for bz2/lzma/zlib module

2020-10-26 Thread STINNER Victor
STINNER Victor added the comment: Ma Lin proposed this approach (PR 21740) for _PyBytesWriter/_PyUnicodeWriter on python-dev: https://mail.python.org/archives/list/python-...@python.org/message/UMB52BEZCX424K5K2ZNPWV7ZTQAGYL53/ -- nosy: +vstinner _

[issue41486] Add _BlocksOutputBuffer for bz2/lzma/zlib module

2020-10-26 Thread STINNER Victor
STINNER Victor added the comment: It would be interested to see if using _PyBytesWriter in bz2, lzma, zlib and _io.FileIO.readall() would speed up the code. I would prefer to centralize the buffer allocation logic in _PyBytesWriter rather than having custom code in each file. _PyBytesWriter

[issue21510] fma documentation should provide better example.

2020-10-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: I suggest using the text and example from the spec: http://speleotrove.com/decimal/daops.html#reffma = fused-multiply-add takes three operands; the first two are multiplied together, using multiply, with

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

2020-10-26 Thread Diogo Dutra
Diogo Dutra added the comment: > Are you suggesting this is a bug, or is it just a suggested code cleanup? It is a suggested code cleanup. My point is that the code creates two sets based on the Sequence `fs`. I think it is better if the code creates the set just one time, instead of two times

[issue42142] FAIL tkinter ttk LabeledScale test_resize, and more

2020-10-26 Thread E. Paine
E. Paine added the comment: This is strange as these only seem to have started occurring recently (though there hasn't been a change to the tests themselves in a long time). There must be something different about how Azure runs the GUI tests because it was on Azure that the tests on PR-2268

[issue42159] AsyncMock restores stopped patch if same object stopped multiple times

2020-10-26 Thread Lisa Roach
New submission from Lisa Roach : Hard to explain in the title, easier to see via a test case: async def async_func(): raise Exception def test_simultaneous_mocks(self): class Test(IsolatedAsyncioTestCase): async def test_test(self): patcher

[issue42160] unnecessary overhead in tempfile

2020-10-26 Thread Eric Wolf
Change by Eric Wolf : -- components: Library (Lib) nosy: Deric-W priority: normal severity: normal status: open title: unnecessary overhead in tempfile type: enhancement versions: Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker

[issue42160] unnecessary overhead in tempfile

2020-10-26 Thread Eric Wolf
New submission from Eric Wolf : The tempfile module contains the class _RandomNameSequence, which has the rng property. This property checks os.getpid() every time and re-initializes a random number generator when it has changed. However, this is only necessary on systems which allow the proce

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

2020-10-26 Thread Justin Arthur
Justin Arthur added the comment: Your change makes perfect sense to me. It would be a backport-only change as the 2nd set creation is actually getting removed for the development version (3.10) to finalize the deprecation of wait's coroutine scheduling. -- nosy: +JustinTArthur _

[issue5906] Risk of confusion in multiprocessing module - daemonic processes

2020-10-26 Thread Pascal Chambon
Pascal Chambon added the comment: The latest doc has a quick mention about the fact that daemon is not used in the Unix sens, so it seems fine now B-) https://docs.python.org/3/library/multiprocessing.html?#multiprocessing.Process.daemon """Additionally, these are not Unix daemons or servic

[issue42161] Remove private _PyLong_Zero and _PyLong_One variables

2020-10-26 Thread STINNER Victor
New submission from STINNER Victor : In bpo-38858, I made the small integer singletons per interpreter: commit 630c8df5cf126594f8c1c4579c1888ca80a29d59. _PyLong_Zero and _PyLong_One variables are still shared by all interpreters, whereas subinterpreters must not share Python objects: see bpo-

[issue42161] Remove private _PyLong_Zero and _PyLong_One variables

2020-10-26 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +21907 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22993 ___ Python tracker ___ _

[issue42162] The license page for Python 3.0 is messed up

2020-10-26 Thread MaT1g3R
New submission from MaT1g3R : Page in question: https://docs.python.org/3.0/license.html The page still shows up in web searches (this is how I found the error) I tracked down the error to this commit, but I couldn't find a relevant branch to fix it: 4ca04b67f00edabe86072446f059adcb70eafcdd

[issue42157] Cleanup the unicodedata module

2020-10-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset c8c4200b65b2159bbb13cee10d67dfb3676fef26 by Victor Stinner in branch 'master': bpo-42157: Convert unicodedata.UCD to heap type (GH-22991) https://github.com/python/cpython/commit/c8c4200b65b2159bbb13cee10d67dfb3676fef26 -- ___

[issue42163] _replace() no longer works on platform.uname_result objects

2020-10-26 Thread Chandan Singh
New submission from Chandan Singh : Starting from Python 3.9, it seems like the `_replace()` method no longer works on `platform.uname_result` objects, that are returned by `platform.uname()`. A simple example can be seen below, which works on Python 3.8, but not on Python 3.9. ``` >>> impor

[issue42142] FAIL tkinter ttk LabeledScale test_resize, and more

2020-10-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Steve, we have a new Pipelines-specific intermittent tkinter test failure. Are you familiar with Pipelines, or do you know who is? -- nosy: +steve.dower ___ Python tracker ___

[issue42157] Cleanup the unicodedata module

2020-10-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +21908 pull_request: https://github.com/python/cpython/pull/22994 ___ Python tracker ___ __

[issue42164] Python fails to compile in the Fedora Stable LTO buildbots

2020-10-26 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : I have been trying to diagnose this failure: https://buildbot.python.org/all/#/builders/271/builds/710/steps/3/logs/stdio it happens on these buildbots: x86_64 fedora stable ppc64le fedora stable (so 32 now) It seems that CPython cannot be compiled

[issue42123] Run parser twice; enable invalid_* rules only on the second run

2020-10-26 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: We do not have a big corpus of SyntaxErrors to test against, but some manual testing of running a file with a SyntaxError after a long complex line 1000 times shows no slowdown. We keep the token stream for the second run, so we don't need to run the to

[issue42123] Run parser twice; enable invalid_* rules only on the second run

2020-10-26 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: New changeset bca701403253379409dece03053dbd739c0bd059 by Lysandros Nikolaou in branch 'master': bpo-42123: Run the parser two times and only enable invalid rules on the second run (GH-22111) https://github.com/python/cpython/commit/bca701403253379409dec

[issue42123] Run parser twice; enable invalid_* rules only on the second run

2020-10-26 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue5906] Risk of confusion in multiprocessing module - daemonic processes

2020-10-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pytho

[issue41659] PEG discrepancy on 'if {x} {a}: pass'

2020-10-26 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- pull_requests: -21195 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue42157] Cleanup the unicodedata module

2020-10-26 Thread STINNER Victor
STINNER Victor added the comment: > By the way, Unicode 3.2 was released in 2002: 18 years ago. I don't think > that it's still relevant in 2020 to keep backward compatibility with Unicode > 3.2. I propose to deprecate unicodedata.ucd_3_2_0 and deprecate the > unicodedate.UCD type. In Python

[issue42161] Remove private _PyLong_Zero and _PyLong_One variables

2020-10-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8e3b9f92835654943bb59d9658bb52e1b0f40a22 by Victor Stinner in branch 'master': bpo-42161: Add _PyLong_GetZero() and _PyLong_GetOne() (GH-22993) https://github.com/python/cpython/commit/8e3b9f92835654943bb59d9658bb52e1b0f40a22 -- _

[issue42161] Remove private _PyLong_Zero and _PyLong_One variables

2020-10-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +21909 pull_request: https://github.com/python/cpython/pull/22995 ___ Python tracker ___ __

[issue41659] PEG discrepancy on 'if {x} {a}: pass'

2020-10-26 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- pull_requests: +21910 pull_request: https://github.com/python/cpython/pull/22996 ___ Python tracker ___ __

[issue42161] Remove private _PyLong_Zero and _PyLong_One variables

2020-10-26 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue42164] Python fails to compile in the Fedora Stable LTO buildbots

2020-10-26 Thread STINNER Victor
STINNER Victor added the comment: > I have been trying to diagnose this failure: > https://buildbot.python.org/all/#/builders/271/builds/710/steps/3/logs/stdio This is the "AMD64 Fedora Stable LTO 3.x" worker. The latest successful build was build 684, finished 6 days ago. test.pythoninfo of

[issue42142] FAIL tkinter ttk LabeledScale test_resize, and more

2020-10-26 Thread Steve Dower
Steve Dower added the comment: I'm as familiar as anyone else that I'll be able to find, but I've really got no way to explain why the window isn't becoming visible. Is it possible that it's trying to default to the process's nShowCmd value instead of a constant "normal" window size? That wo

[issue42164] Python fails to compile in the Fedora Stable LTO buildbots

2020-10-26 Thread STINNER Victor
STINNER Victor added the comment: I reproduced the bug on Fedora 32 with gcc-10.2.1-6.fc32.x86_64 (new) but I failed to reproduce with gcc-10.2.1-1.fc32.x86_64 (old, before I upgraded GCC). So it's a regression of gcc-10.2.1-6.fc32.x86_64 package. The package contains multiple downstream pat

[issue42160] unnecessary overhead in tempfile

2020-10-26 Thread Eric Wolf
Change by Eric Wolf : -- keywords: +patch pull_requests: +21911 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22997 ___ Python tracker ___ __

[issue42164] Python fails to compile in the Fedora Stable LTO buildbots

2020-10-26 Thread STINNER Victor
STINNER Victor added the comment: With LTO, compile.o requires an undefined _Py_Mangle symbol: $ gcc -pthread -c -DNDEBUG -fwrapv -O3 -std=c99 -fvisibility=hidden -flto -I./Include/internal -I. -I./Include -DPy_BUILD_CORE -o Python/compile.o Python/compile.c; nm Python/compile.o | grep _Py_

[issue42164] Python fails to compile in the Fedora Stable LTO buildbots

2020-10-26 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > With LTO, compile.o requires an undefined _Py_Mangle symbol: Yeah, now try to compile with LTO and CFLAGS='-O0' -- ___ Python tracker

[issue30681] email.utils.parsedate_to_datetime() should return None when date cannot be parsed

2020-10-26 Thread miss-islington
miss-islington added the comment: New changeset 303aac8c56609290e122eecc14c038e9b1e4174a by Georges Toth in branch 'master': bpo-30681: Support invalid date format or value in email Date header (GH-22090) https://github.com/python/cpython/commit/303aac8c56609290e122eecc14c038e9b1e4174a

[issue30681] email.utils.parsedate_to_datetime() should return None when date cannot be parsed

2020-10-26 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.8, Python 3.9 ___ Python tracker ___ __

[issue42164] Python fails to compile in the Fedora Stable LTO buildbots

2020-10-26 Thread STINNER Victor
STINNER Victor added the comment: > Yeah, now try to compile with LTO and CFLAGS='-O0' Using LTO: * "-O1 -finline-functions -finline-small-functions -fpartial-inlining" reproduces the issue. * "-O1" does not reproduce the issue. -- ___ Python tra

[issue42164] Python fails to compile in the Fedora Stable LTO buildbots

2020-10-26 Thread STINNER Victor
STINNER Victor added the comment: I reported the issue to Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=1891657 -- ___ Python tracker ___ __

[issue42161] Remove private _PyLong_Zero and _PyLong_One variables

2020-10-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset c9bc290dd6e3994a4ead2a224178bcba86f0c0e4 by Victor Stinner in branch 'master': bpo-42161: Use _PyLong_GetZero() and _PyLong_GetOne() (GH-22995) https://github.com/python/cpython/commit/c9bc290dd6e3994a4ead2a224178bcba86f0c0e4 -- _

[issue42160] unnecessary overhead in tempfile

2020-10-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: Wouldn't it be simpler to use random.SystemRandom instead? -- nosy: +benjamin.peterson ___ Python tracker ___

[issue42161] Remove private _PyLong_Zero and _PyLong_One variables

2020-10-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +21913 pull_request: https://github.com/python/cpython/pull/22998 ___ Python tracker ___ __

[issue35061] Specify libffi.so soname for ctypes

2020-10-26 Thread Yongkwan Kim
Yongkwan Kim added the comment: My solution is creating link of libffi.so.6 as .5 This is for anyone who has same issue with me. But thanks for your kind reply though. -- ___ Python tracker

[issue38980] Compile libpython with -fno-semantic-interposition

2020-10-26 Thread STINNER Victor
STINNER Victor added the comment: Since Fedora and RHEL build Python with -fno-semantic-interposition, we did not get any user bug report about the LD_PRELOAD use case. IMO we can safely consider that no user rely on LD_PRELOAD to override libpython symbols. Thanks for implementing the featu

  1   2   >