[issue30963] xxlimited.c XxoObject_Check should be XxoObject_CheckExact

2020-12-31 Thread hai shi
hai shi added the comment: >The Check code is now commented out, and the issue of type checking is >mentioned in PEP 630. Got it, thanks for your supplement :) -- ___ Python tracker

[issue42756] smtplib.LMTP.connect() raises TypeError if `timeout` is not specified

2020-12-31 Thread Dong-hee Na
Change by Dong-hee Na : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42756] smtplib.LMTP.connect() raises TypeError if `timeout` is not specified

2020-12-31 Thread Dong-hee Na
Dong-hee Na added the comment: This is a regression bug that should be fixed. -- ___ Python tracker ___ ___ Python-bugs-list

[issue42756] smtplib.LMTP.connect() raises TypeError if `timeout` is not specified

2020-12-31 Thread Dong-hee Na
Dong-hee Na added the comment: This -- versions: +Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42752] multiprocessing Queue leaks a file descriptor associated with the pipe writer (#33081 still a problem)

2020-12-31 Thread mattip
mattip added the comment: Just to be clear, here is the code from the test (how do you format a code block here?) that demonstrates the writer is not closed when nothing is put into the queue ``` $ python3 Python 3.8.6 | packaged by conda-forge | (default, Oct 7 2020, 19:08:05) [GCC

[issue42756] smtplib.LMTP.connect() raises TypeError if `timeout` is not specified

2020-12-31 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42756] smtplib.LMTP.connect() raises TypeError if `timeout` is not specified

2020-12-31 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42801] Exception catching function crashes on recursive list

2020-12-31 Thread Steven D'Aprano
New submission from Steven D'Aprano : This function crashes on the following recursive list: def length(x): try: return sum(length(i) for i in x) except Exception: return 1 a = [[1, 2, 3], [4, 5, 6]] a.append(a) length(a) Crashes: Fatal Python error:

[issue42752] multiprocessing Queue leaks a file descriptor associated with the pipe writer (#33081 still a problem)

2020-12-31 Thread Alex Orange
Alex Orange added the comment: Well, having not heard anything I decided to just make a patch and throw it up. Here it is. This includes a test that will fail with the old version and passes once patched as well as the patch to the queue code itself. Worth noting, the CleanExchange class is

[issue33944] Deprecate and remove code execution in pth files

2020-12-31 Thread Nick Coghlan
Nick Coghlan added the comment: PEP 648 has been posted with a proposal to migrate sitecustomize.py, usersitecustomize.py and arbitrary code execution in pth files to a directory based `__sitecustomize__` structure: https://www.python.org/dev/peps/pep-0648/ --

[issue42799] Please document fnmatch LRU cache size (256) and suggest alternatives

2020-12-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: In addition to documenting the cache size, consider a substantial increase to the limit. Compiled regex patterns tend to be very small. We can afford to have a lot of them (tens of thousands seems reasonable to me). Regarding the suggested

[issue42781] functools.cached_property docs should explain that it is non-overriding

2020-12-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 8333d421c0d7b90de3ff92002af9fd2c5d5f373c by Miss Islington (bot) in branch '3.9': bpo-42781: Document the mechanics of cached_property from a user viewpoint (GH-24031) (#24035)

[issue42781] functools.cached_property docs should explain that it is non-overriding

2020-12-31 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: docs@python -> rhettinger resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42781] functools.cached_property docs should explain that it is non-overriding

2020-12-31 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +22876 pull_request: https://github.com/python/cpython/pull/24035 ___ Python tracker

[issue42781] functools.cached_property docs should explain that it is non-overriding

2020-12-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset c8a7b8fa1b5f9a6d3052db792018dc27c5a3a794 by Raymond Hettinger in branch 'master': bpo-42781: Document the mechanics of cached_property from a user viewpoint (GH-24031)

[issue25479] Increase unit test coverage for abc.py

2020-12-31 Thread karl
karl added the comment: @iritkatriel Github PR done. https://github.com/python/cpython/pull/24034 -- ___ Python tracker ___ ___

[issue25479] Increase unit test coverage for abc.py

2020-12-31 Thread karl
Change by karl : -- keywords: +patch nosy: +karlcow nosy_count: 2.0 -> 3.0 pull_requests: +22875 pull_request: https://github.com/python/cpython/pull/24034 ___ Python tracker

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

2020-12-31 Thread miss-islington
Change by miss-islington : -- pull_requests: +22874 pull_request: https://github.com/python/cpython/pull/24033 ___ Python tracker ___

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

2020-12-31 Thread miss-islington
Change by miss-islington : -- pull_requests: +22873 pull_request: https://github.com/python/cpython/pull/24032 ___ Python tracker ___

[issue42800] Traceback objects allow accessing frame objects without triggering audit hooks

2020-12-31 Thread Ammar Askar
New submission from Ammar Askar : It is possible to access all the frame objects in the interpret without triggering any audit hooks through the use of exceptions. Namely, through the traceback's tb_frame property. Ordinarily one would trigger the "sys._current_frames" or "sys._getframe"

[issue42797] Allow doctest to select tests via -m/--match option

2020-12-31 Thread Steven D'Aprano
Steven D'Aprano added the comment: I think that -m is unacceptable as it will clash with Python's -m option. I'm not convinced that this added complexity will provide enough benefit to make it worth while. I can see myself spending an order of magnitude more time trying to work out why my

[issue42799] Please document fnmatch LRU cache size (256) and suggest alternatives

2020-12-31 Thread Josh Triplett
New submission from Josh Triplett : fnmatch translates shell patterns to regexes, using an LRU cache of 256 elements. The documentation doesn't mention the cache size, just "They cache the compiled regular expressions for speed.". Without this knowledge, it's possible to get pathologically

[issue26407] csv.writer.writerows masks exceptions from __iter__

2020-12-31 Thread Terry J. Reedy
Change by Terry J. Reedy : -- stage: patch review -> commit review versions: -Python 3.6, Python 3.7 ___ Python tracker ___ ___

[issue38780] SysLogHandler crash atexit

2020-12-31 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Using a NullSocket fixes the test in commit f0f8ff8f06afd43947e268824aa4381add05ce8f -- ___ Python tracker ___

[issue38780] SysLogHandler crash atexit

2020-12-31 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: I've forked your work, Jason: https://github.com/erlend-aasland/cpython/tree/bpo-38780-test I added the test from msg356475, and I'm able to reproduce it by asserting that the `socket` attribute is present (commit

[issue42781] functools.cached_property docs should explain that it is non-overriding

2020-12-31 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch nosy: +rhettinger nosy_count: 2.0 -> 3.0 pull_requests: +22872 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24031 ___ Python tracker

[issue42728] Typo in documentation: importlib.metadata

2020-12-31 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Thanks for the report and fix! -- stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.8, Python 3.9 ___ Python tracker

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

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

[issue42686] include built-in Math functions in SQLite to 3.35.0 of march 2021

2020-12-31 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: FYI, I've opened a thread on the SQLite Forum: https://sqlite.org/forum/forumpost/721645dc36 -- ___ Python tracker ___

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

2020-12-31 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset b5711c940f70af89f2b4cf081a3fcd83924f3ae7 by Jason R. Coombs in branch 'master': bpo-37193: Remove thread objects which finished process its request (GH-23127)

[issue42728] Typo in documentation: importlib.metadata

2020-12-31 Thread miss-islington
Change by miss-islington : -- pull_requests: +22871 pull_request: https://github.com/python/cpython/pull/24030 ___ Python tracker ___

[issue42728] Typo in documentation: importlib.metadata

2020-12-31 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +22870 pull_request: https://github.com/python/cpython/pull/24029 ___ Python tracker

[issue42454] Move slice creation to the compiler for constants

2020-12-31 Thread Mark Dickinson
Mark Dickinson added the comment: @Batuhan Taskaya: would it be worth starting a discussion on either python-ideas or python-dev? (Or on discuss.python.org.) My concern is that we're discussing a core language change. It's not a major change, but it's not an insignificant one either, and

[issue42728] Typo in documentation: importlib.metadata

2020-12-31 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry, jaraco ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42797] Allow doctest to select tests via -m/--match option

2020-12-31 Thread Costas Basdekis
Change by Costas Basdekis : -- keywords: +patch pull_requests: +22868 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24028 ___ Python tracker ___

[issue42798] pip search fails

2020-12-31 Thread Paul Watson
New submission from Paul Watson : Fresh install of 3.9.1 Created venv Activated venv (py3.9) 13:12:59.52 C:\venv\py3.9\Scripts C:>pip search astronomy ERROR: Exception: Traceback (most recent call last): File "c:\venv\py3.9\lib\site-packages\pip\_internal\cli\base_command.py", line 228, in

[issue42797] Allow doctest to select tests via -m/--match option

2020-12-31 Thread Costas Basdekis
New submission from Costas Basdekis : Most testing frameworks allow for only a subset of tests to be run, and the reason is usually either to focus on a specific test among many failing ones, or for speed purposes if running the whole suite is too slow. With doctests, it's usually the case

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

2020-12-31 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset a6fd0f414c0cb4cd5cc20eb2df3340b31c6f7743 by Jason R. Coombs in branch 'master': bpo-42163, bpo-42189, bpo-42659: Support uname_tuple._replace (for all but processor) (#23010)

[issue42659] Objects of uname_result Class Cannot be Successfully Pickled

2020-12-31 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset a6fd0f414c0cb4cd5cc20eb2df3340b31c6f7743 by Jason R. Coombs in branch 'master': bpo-42163, bpo-42189, bpo-42659: Support uname_tuple._replace (for all but processor) (#23010)

[issue42189] copy.deepcopy() no longer works on platform.uname_result objects

2020-12-31 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset a6fd0f414c0cb4cd5cc20eb2df3340b31c6f7743 by Jason R. Coombs in branch 'master': bpo-42163, bpo-42189, bpo-42659: Support uname_tuple._replace (for all but processor) (#23010)

[issue38780] SysLogHandler crash atexit

2020-12-31 Thread Jason R. Coombs
Change by Jason R. Coombs : -- stage: patch review -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38780] SysLogHandler crash atexit

2020-12-31 Thread Jason R. Coombs
Change by Jason R. Coombs : -- assignee: jaraco -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38780] SysLogHandler crash atexit

2020-12-31 Thread Jason R. Coombs
Jason R. Coombs added the comment: I started work on a test in https://github.com/jaraco/cpython/tree/bugfix/bpo-38780-test, but (a) the test was failing to exhibit the expected failures, and (b) I realized that the fix isn't having the intended effect either, because for unix sockets,

[issue42454] Move slice creation to the compiler for constants

2020-12-31 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: I've given this another shot, but even though I was able to create a patch that preserved slices as (type(slice), start, stop, step) tuples in the consts_cache, this final optimization prevented me to finalize it;

[issue42382] No easy way to get the distribution which provided a importlib.metadata.EntryPoint

2020-12-31 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset dfdca85dfa64e72df385b3a486f85b773fc0f135 by Jason R. Coombs in branch 'master': bpo-42382: In importlib.metadata, `EntryPoint` objects now expose `dist` (#23758)

[issue42796] tempfile doesn't seem to play nicely with os.chdir on Windows

2020-12-31 Thread Gabriele Tornetta
New submission from Gabriele Tornetta : The following script causes havoc on Windows while it works as expected on Linux ~~~ python import os import tempfile def test_chdir(): with tempfile.TemporaryDirectory() as tempdir: os.chdir(tempdir) ~~~ Running the above on Windows

[issue40631] PEG Parser: Cannot used starred expression in parenthesised expr

2020-12-31 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- pull_requests: +22867 pull_request: https://github.com/python/cpython/pull/24027 ___ Python tracker ___

[issue30963] xxlimited.c XxoObject_Check should be XxoObject_CheckExact

2020-12-31 Thread Petr Viktorin
Petr Viktorin added the comment: The Check code is now commented out, and the issue of type checking is mentioned in PEP 630. (The xxlimited_35 module still contains XxoObject_Check, among other historical code.) -- resolution: -> postponed stage: needs patch -> resolved status:

[issue29708] support reproducible Python builds

2020-12-31 Thread Benjamin Peterson
Benjamin Peterson added the comment: PEP 552 was a necessary but not sufficient step on the road towards fully deterministic pycs. The PEP says: "(Note there are other problems [1] [2] we do not address here that can make pycs non-deterministic.)" where [1] and [2] are basically the issues

[issue42794] test_nntplib fails on CI

2020-12-31 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: FWIW, I'm getting the same errors in PR https://github.com/python/cpython/pull/23140 Checking on the server that's being used, the newsgroup description is empty indeed: https://news.aioe.org/index.php?id=statistics-about-groups=comp.lang.python

[issue42257] platform.libc_ver() doesn't consider in case of executable is empty string

2020-12-31 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Thanks for the patch. Merging is currently prevented by an unrelated test for nntplib failing. See e.g. https://github.com/python/cpython/pull/23140/checks?check_run_id=1630509357. This is being tracked in https://bugs.python.org/issue42794 --

[issue12915] Add inspect.locate and inspect.resolve

2020-12-31 Thread Rahul Jha
Change by Rahul Jha : -- nosy: +RJ722 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42257] platform.libc_ver() doesn't consider in case of executable is empty string

2020-12-31 Thread Kurochan
Kurochan added the comment: Also, PR comment processed. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26454] add support string that are not inherited from PyStringObject

2020-12-31 Thread Irit Katriel
Irit Katriel added the comment: If you are still having an issue with this, please create a new ticket and explain better what the problem is. Ideally, attach code that demonstrates the problem (along with what you expected the code to do and what it actually does, and state which system

[issue19206] Support disabling file I/O when doing traceback formatting

2020-12-31 Thread Irit Katriel
Change by Irit Katriel : -- stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42257] platform.libc_ver() doesn't consider in case of executable is empty string

2020-12-31 Thread Kurochan
Kurochan added the comment: > If Python is embedded Yes. It's embedded Python. This issue caused in datadog-agent with embedded Python. https://github.com/DataDog/datadog-agent/ > would it be possible to share the code used to configure Python > initialization? I'm not sure where the

[issue41224] Document is_annotate() in symtable and update doc strings

2020-12-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7 ___ Python tracker ___

[issue42393] Raise overflow errors iso. deprecation warnings in socket.htons and socket.ntohs (was deprecated in 3.7)

2020-12-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42393] Raise overflow errors iso. deprecation warnings in socket.htons and socket.ntohs (was deprecated in 3.7)

2020-12-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset f4936ad1c4d0ae1948e428aeddc7d3096252dae4 by Erlend Egeberg Aasland in branch 'master': bpo-42393: Raise OverflowError iso. DeprecationWarning on overflow in socket.ntohs and socket.htons (GH-23980)

[issue41224] Document is_annotate() in symtable and update doc strings

2020-12-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset bc15cdbc6eb112cb72acf189769ecd539dd45652 by Andre Delfino in branch '3.8': [3.8] bpo-41224: Add versionadded for Symbol.is_annotated (GH-23861). (GH-24016) https://github.com/python/cpython/commit/bc15cdbc6eb112cb72acf189769ecd539dd45652

[issue41224] Document is_annotate() in symtable and update doc strings

2020-12-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 7a7f3e0d6a197c81fff83ad777c74324ceb4198f by Andre Delfino in branch '3.9': [3.9] bpo-41224: Add versionadded for Symbol.is_annotated (GH-23861). (GH-24017) https://github.com/python/cpython/commit/7a7f3e0d6a197c81fff83ad777c74324ceb4198f

[issue42759] Take into acount a Tcl interpreter when compare variables and fonts

2020-12-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +22866 pull_request: https://github.com/python/cpython/pull/24026 ___ Python tracker ___

[issue42794] test_nntplib fails on CI

2020-12-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: On my computer tests are passed. They are only failed on CI. -- ___ Python tracker ___ ___

[issue42425] Possible leak in initialization of errmap for OSError

2020-12-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +22865 pull_request: https://github.com/python/cpython/pull/24025 ___ Python tracker ___

[issue41401] Using non-ascii that require UTF-8 breaks AIX testing

2020-12-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +22864 pull_request: https://github.com/python/cpython/pull/24024 ___ Python tracker ___

[issue15097] Improving wording on the thread-safeness of import

2020-12-31 Thread Irit Katriel
Irit Katriel added the comment: The threading doc no longer mentions import at all. Any objections to closing this issue as out of date? Or is there anything else to look into here? -- nosy: +iritkatriel resolution: -> out of date status: open -> pending

[issue36589] Incorrect error handling in curses.update_lines_cols()

2020-12-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +22863 pull_request: https://github.com/python/cpython/pull/24023 ___ Python tracker ___

[issue39068] Base 85 encoding initialization race condition

2020-12-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +22862 pull_request: https://github.com/python/cpython/pull/24022 ___ Python tracker ___

[issue42794] test_nntplib fails on CI

2020-12-31 Thread STINNER Victor
STINNER Victor added the comment: Right now, it works for me: $ ./python -m test -u all test_nntplib -v -m test_descriptions ... test_descriptions (test.test_nntplib.NNTPv1Tests) ... ok test_descriptions (test.test_nntplib.NNTPv2Tests) ... ok test_descriptions

[issue26407] csv.writer.writerows masks exceptions from __iter__

2020-12-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +22861 pull_request: https://github.com/python/cpython/pull/24021 ___ Python tracker ___

[issue42794] test_nntplib fails on CI

2020-12-31 Thread Ross Rhodes
Ross Rhodes added the comment: Server is returning '215 Newsgroup descriptions in form "group description"', but an empty list of lines, so it's reaching the 'nothing' case in _getdescriptions: https://github.com/python/cpython/blob/master/Lib/nntplib.py#L660 -- nosy: +trrhodes

[issue29708] support reproducible Python builds

2020-12-31 Thread STINNER Victor
STINNER Victor added the comment: > note the optimized .pyc is deterministic. As far as I know only __debug__ is > set to False, or is there something else different? Hum, maybe there is a misunderstanding on the PEP 552 purpose. I understood that the main point of the PEP 552 is to compare

[issue42795] Asyncio loop.create_server doesn't bind to any interface if host is a sequence with just the empty string

2020-12-31 Thread Paolo Lammens
Change by Paolo Lammens : -- title: Asyncio loop.create_server doesn't bind to any interface if host is a sequence with jus the empty string -> Asyncio loop.create_server doesn't bind to any interface if host is a sequence with just the empty string

[issue42795] Asyncio loop.create_server doesn't bind to any interface if host is a sequence with jus the empty string

2020-12-31 Thread Paolo Lammens
New submission from Paolo Lammens : When a sequence containing just the empty string (e.g. `['']`) is passed as the `host` parameter of `loop.create_server`, the server seems not to bind to any network interface. Since, per the

[issue27820] Possible bug in smtplib when initial_response_ok=False

2020-12-31 Thread Pandu E POLUAN
Pandu E POLUAN added the comment: I tried adding the code below to test_smtplib.py: def testAUTH_LOGIN_initial_response_notok(self): self.serv.add_feature("AUTH LOGIN") smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost',

[issue40512] [subinterpreters] Meta issue: per-interpreter GIL

2020-12-31 Thread Alex Garel
Change by Alex Garel : -- nosy: +alex-garel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39068] Base 85 encoding initialization race condition

2020-12-31 Thread miss-islington
Change by miss-islington : -- keywords: +patch nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +22860 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24020 ___ Python tracker

[issue39068] Base 85 encoding initialization race condition

2020-12-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 9655434cca5dfbea97bf6d355aec028e840b289c by Brandon Stansbury in branch 'master': bpo-39068: Fix race condition in base64 (GH-17627) https://github.com/python/cpython/commit/9655434cca5dfbea97bf6d355aec028e840b289c -- nosy:

[issue42794] test_nntplib fails on CI

2020-12-31 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Since yesterday ALL PRs are blocked by failing test_nntplib. For example https://github.com/python/cpython/runs/1629664606?check_suite_focus=true: == ERROR: test_descriptions

[issue37157] shutil: add reflink=False to file copy functions to control clone/CoW copies (use copy_file_range)

2020-12-31 Thread Albert Zeyer
Albert Zeyer added the comment: I did some further research (with all details here: https://stackoverflow.com/a/65518879/133374). See vfs_copy_file_range in the Linux kernel. This first tries to call remap_file_range if possible. FICLONE calls ioctl_file_clone. ioctl_file_clone calls

[issue29708] support reproducible Python builds

2020-12-31 Thread Inada Naoki
Change by Inada Naoki : -- dependencies: +Reproducible pyc: FLAG_REF is not stable. ___ Python tracker ___ ___ Python-bugs-list

[issue29708] support reproducible Python builds

2020-12-31 Thread Inada Naoki
Inada Naoki added the comment: > note the optimized .pyc is deterministic. As far as I know only __debug__ is > set to False, or is there something else different? There is no difference between normal pyc and optimized pyc. * frozenset is deterministic if PYTHONHASHSEED is set * FLAG_REF

[issue42793] Bug of round function

2020-12-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It works as documented. https://docs.python.org/3/library/functions.html#round -- nosy: +serhiy.storchaka resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue42793] Bug of round function

2020-12-31 Thread Dennis Sweeney
Dennis Sweeney added the comment: This is not a bug. See https://stackoverflow.com/a/10825998/11461120 -- nosy: +Dennis Sweeney ___ Python tracker ___

[issue42793] Bug of round function

2020-12-31 Thread Narek
New submission from Narek : The my code is folowing for i in range(1, 5): a = i + 0.5 b = round(a) print(a, "rounded as =>", b) output is 1.5 => 2 2.5 => 2 3.5 => 4 4.5 => 4 the rounding is not correct in output -- files: main.py messages: 384101 nosy: Narek2018

[issue29708] support reproducible Python builds

2020-12-31 Thread Frederik Rietdijk
Frederik Rietdijk added the comment: note the optimized .pyc is deterministic. As far as I know only __debug__ is set to False, or is there something else different? -- ___ Python tracker