[issue39432] Distutils generates the wrong export symbol for unicode module names

2020-01-28 Thread Stefan Behnel
Change by Stefan Behnel : -- nosy: +steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue39391] Nondeterministic Pydoc output on functions that have functions as default parameters

2020-01-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: Serhiy is right, I doubt if we can do something here. A function address is a part of its __repr__() output. -- nosy: +asvetlov ___ Python tracker __

[issue39391] Nondeterministic Pydoc output on functions that have functions as default parameters

2020-01-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Even if we change the repr of functions (I like this idea), this will not solve the general problem: many reprs contain an object id. In your case I suggest to post-process the pydoc output and replace parts matching ' at 0x[0-9a-fA-F]+'. --

[issue39474] col_offset for parenthesized expressions looks weird on attribute access

2020-01-28 Thread Batuhan
New submission from Batuhan : Python 3.9.0a2+ (heads/master:65ecc390c1, Jan 26 2020, 15:39:11) [GCC 9.2.1 20191008] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import ast >>> source = "(2+2).source" >>> ast.get_source_segment(source, ast.parse(source).bod

[issue39474] col_offset for parenthesized expressions looks weird

2020-01-28 Thread Batuhan
Change by Batuhan : -- title: col_offset for parenthesized expressions looks weird on attribute access -> col_offset for parenthesized expressions looks weird type: -> behavior ___ Python tracker __

[issue39460] test_zipfile: test_add_file_after_2107() fails on s390x Fedora Rawhide 3.x

2020-01-28 Thread Miro Hrončok
Miro Hrončok added the comment: In Fedora, this has started happening after the update of the following packages: https://koschei.fedoraproject.org/build/7758715 gcc 10.0.1-0.3.fc32 (in fact, there was gcc 9 in there, the report is maybe broken) 10.0.1-0.4.fc32 libuuid 2.35-0.5.fc32 2.35-1

[issue39460] README.md

2020-01-28 Thread CRYSTAL
Change by CRYSTAL : -- assignee: -> docs@python components: +Build, Cross-Build, Documentation, Installation, Interpreter Core, Library (Lib), SSL, Unicode, Windows nosy: +Alex.Willmer, Hinsonlcrystal, docs@python, ezio.melotti, paul.moore, steve.dower, tim.golden, zach.ware -David.E

[issue38883] Path.home() should ignore HOME env var like os.path.expanduser()

2020-01-28 Thread Steve Dower
Steve Dower added the comment: New changeset c45a2aa9e255b5c7c211faa79f6b23895b64ab27 by Steve Dower (Christoph Reiter) in branch 'master': bpo-38883: Don't use POSIX `$HOME` in `pathlib.Path.home/expanduser` on Windows (GH-17961) https://github.com/python/cpython/commit/c45a2aa9e255b5c7c211

[issue36264] os.path.expanduser should not use HOME on windows

2020-01-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +17609 pull_request: https://github.com/python/cpython/pull/18229 ___ Python tracker ___ __

[issue36264] os.path.expanduser should not use HOME on windows

2020-01-28 Thread Steve Dower
Steve Dower added the comment: New changeset c45a2aa9e255b5c7c211faa79f6b23895b64ab27 by Steve Dower (Christoph Reiter) in branch 'master': bpo-38883: Don't use POSIX `$HOME` in `pathlib.Path.home/expanduser` on Windows (GH-17961) https://github.com/python/cpython/commit/c45a2aa9e255b5c7c211

[issue38883] Path.home() should ignore HOME env var like os.path.expanduser()

2020-01-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +17608 pull_request: https://github.com/python/cpython/pull/18229 ___ Python tracker ___ __

[issue39393] Misleading error message upon dependent DLL resolution failure

2020-01-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +17610 pull_request: https://github.com/python/cpython/pull/18230 ___ Python tracker ___ __

[issue39475] window.getmaxyx() doesn't return updated height when window is resized

2020-01-28 Thread nova
New submission from nova : Package : python(v3.6.9) Severity: normal When a window object has been created using curses.newwin(), increasing the terminal size produces the KEY_RESIZE events, but getmaxyx() returns the previous terminal size. Only by decreasing the terminal size does it return t

[issue39393] Misleading error message upon dependent DLL resolution failure

2020-01-28 Thread Steve Dower
Steve Dower added the comment: New changeset 13c1c3556f2c12d0be2af890fabfbf44280b845c by Steve Dower (Zackery Spytz) in branch 'master': bpo-39393: Misleading error message on dependent DLL resolution failure (GH-18093) https://github.com/python/cpython/commit/13c1c3556f2c12d0be2af890fabfbf4

[issue38704] Prevent installation on unsupported Windows versions

2020-01-28 Thread Steve Dower
Steve Dower added the comment: Zackery - I left you a comment on the PR. -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue39401] Unsafe dll loading in getpathp.c on Win7

2020-01-28 Thread Steve Dower
Change by Steve Dower : -- assignee: -> steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue39401] Unsafe dll loading in getpathp.c on Win7

2020-01-28 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +17611 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/18231 ___ Python tracker _

[issue39393] Misleading error message upon dependent DLL resolution failure

2020-01-28 Thread Steve Dower
Steve Dower added the comment: Thanks, Zackery! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue38883] Path.home() should ignore HOME env var like os.path.expanduser()

2020-01-28 Thread Steve Dower
Steve Dower added the comment: Thanks, Christoph! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue36264] os.path.expanduser should not use HOME on windows

2020-01-28 Thread miss-islington
miss-islington added the comment: New changeset 595b516965ee88b817dc1b3d7713e1f3f263634d by Miss Islington (bot) in branch '3.8': bpo-38883: Don't use POSIX `$HOME` in `pathlib.Path.home/expanduser` on Windows (GH-17961) https://github.com/python/cpython/commit/595b516965ee88b817dc1b3d7713e1

[issue39393] Misleading error message upon dependent DLL resolution failure

2020-01-28 Thread miss-islington
miss-islington added the comment: New changeset 46735c7e101753769e31c69a36d0030bb056a162 by Miss Islington (bot) in branch '3.8': bpo-39393: Misleading error message on dependent DLL resolution failure (GH-18093) https://github.com/python/cpython/commit/46735c7e101753769e31c69a36d0030bb056a1

[issue38883] Path.home() should ignore HOME env var like os.path.expanduser()

2020-01-28 Thread miss-islington
miss-islington added the comment: New changeset 595b516965ee88b817dc1b3d7713e1f3f263634d by Miss Islington (bot) in branch '3.8': bpo-38883: Don't use POSIX `$HOME` in `pathlib.Path.home/expanduser` on Windows (GH-17961) https://github.com/python/cpython/commit/595b516965ee88b817dc1b3d7713e1

[issue39401] Unsafe dll loading in getpathp.c on Win7

2020-01-28 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +17612 pull_request: https://github.com/python/cpython/pull/18232 ___ Python tracker ___ _

[issue39401] Unsafe dll loading in getpathp.c on Win7

2020-01-28 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +17613 pull_request: https://github.com/python/cpython/pull/18233 ___ Python tracker ___ _

[issue39401] Unsafe dll loading in getpathp.c on Win7

2020-01-28 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +17614 pull_request: https://github.com/python/cpython/pull/18234 ___ Python tracker ___ _

[issue39287] Document UTF-8 mode in the using/windows.

2020-01-28 Thread Inada Naoki
Inada Naoki added the comment: New changeset 148610d88a2785751ed435a4e60f07a9f1bc50a6 by Inada Naoki in branch 'master': bpo-39287: Doc: Add UTF-8 mode section in using/windows. (GH-17935) https://github.com/python/cpython/commit/148610d88a2785751ed435a4e60f07a9f1bc50a6 --

[issue39287] Document UTF-8 mode in the using/windows.

2020-01-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +17616 pull_request: https://github.com/python/cpython/pull/18236 ___ Python tracker ___ __

[issue39287] Document UTF-8 mode in the using/windows.

2020-01-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +17615 pull_request: https://github.com/python/cpython/pull/18235 ___ Python tracker ___ __

[issue39287] Document UTF-8 mode in the using/windows.

2020-01-28 Thread miss-islington
miss-islington added the comment: New changeset 5a49ccac443ae84b8e142473a659c73032e9fe53 by Miss Islington (bot) in branch '3.7': bpo-39287: Doc: Add UTF-8 mode section in using/windows. (GH-17935) https://github.com/python/cpython/commit/5a49ccac443ae84b8e142473a659c73032e9fe53 --

[issue39401] Unsafe dll loading in getpathp.c on Win7

2020-01-28 Thread Steve Dower
Steve Dower added the comment: For clarity, I'm removing 3.9 from the affected versions. This version does not support Windows 7, and only Windows 7 is vulnerable to this DLL hijack. Also submitting the CVE request. -- versions: -Python 3.9 ___ P

[issue39287] Document UTF-8 mode in the using/windows.

2020-01-28 Thread miss-islington
miss-islington added the comment: New changeset cee5da861091cdaca99f0636af7ab8c4b0274e5f by Miss Islington (bot) in branch '3.8': bpo-39287: Doc: Add UTF-8 mode section in using/windows. (GH-17935) https://github.com/python/cpython/commit/cee5da861091cdaca99f0636af7ab8c4b0274e5f --

[issue39287] Document UTF-8 mode in the using/windows.

2020-01-28 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue38092] environment variables not passed correctly using new virtualenv launching in windows and python3.7+

2020-01-28 Thread Steve Dower
Steve Dower added the comment: New changeset 6990d1b6131873c7f0913908162e4c723d00ea19 by Steve Dower (Adam Meily) in branch '3.7': bpo-38092: Reduce overhead when using multiprocessing in a Windows virtual environment (GH-16098) https://github.com/python/cpython/commit/6990d1b6131873c7f09139

[issue39467] Allow to deprecate CLI arguments in argparse

2020-01-28 Thread hervé
hervé added the comment: First, thanks Raymond for your worth useful comment. * Concerning the usage of the warning module what do you suggest to use then? To use "print"? * Concerning "hook or flag" and the 3 new params in my PR, I think developers would appreciate to give a customized me

[issue39439] Windows Multiprocessing in Virtualenv: sys.prefix is incorrect

2020-01-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +17617 pull_request: https://github.com/python/cpython/pull/18237 ___ Python tracker ___ __

[issue38092] environment variables not passed correctly using new virtualenv launching in windows and python3.7+

2020-01-28 Thread Steve Dower
Steve Dower added the comment: Fixed via issue39439 -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue39460] test_zipfile: test_add_file_after_2107() fails on s390x Fedora Rawhide 3.x

2020-01-28 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- assignee: docs@python -> components: -Build, Cross-Build, Documentation, Installation, Interpreter Core, Library (Lib), SSL, Unicode, Windows nosy: +David.Edelsohn, Dormouse759, hroncok -Alex.Willmer, Hinsonlcrystal, docs@python, ezio.melotti,

[issue39439] Windows Multiprocessing in Virtualenv: sys.prefix is incorrect

2020-01-28 Thread Steve Dower
Steve Dower added the comment: New changeset 0be3246d4f9c8eddcd55491901d95b09fe163f15 by Steve Dower (Adam Meily) in branch 'master': bpo-39439: Fix multiprocessing spawn path in a venv on Windows (GH-18158) https://github.com/python/cpython/commit/0be3246d4f9c8eddcd55491901d95b09fe163f15 -

[issue39439] Windows Multiprocessing in Virtualenv: sys.prefix is incorrect

2020-01-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +17618 pull_request: https://github.com/python/cpython/pull/18238 ___ Python tracker ___ __

[issue39439] Windows Multiprocessing in Virtualenv: sys.prefix is incorrect

2020-01-28 Thread Steve Dower
Change by Steve Dower : -- resolution: duplicate -> fixed versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue39439] Windows Multiprocessing in Virtualenv: sys.prefix is incorrect

2020-01-28 Thread miss-islington
miss-islington added the comment: New changeset dbb37aac1428ddcba784d9ddc77c1708c391aa80 by Miss Islington (bot) in branch '3.8': bpo-39439: Fix multiprocessing spawn path in a venv on Windows (GH-18158) https://github.com/python/cpython/commit/dbb37aac1428ddcba784d9ddc77c1708c391aa80 -

[issue24666] Buffered I/O does not take file position into account when reading blocks

2020-01-28 Thread Kubilay Kocak
Change by Kubilay Kocak : -- nosy: -Alex.Willmer, ezio.melotti, vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue24666] Buffered I/O does not take file position into account when reading blocks

2020-01-28 Thread Kubilay Kocak
Change by Kubilay Kocak : -- assignee: docs@python -> components: -2to3 (2.x to 3.x conversion tool), Build, Cross-Build, Documentation, Extension Modules, FreeBSD, Installation, Interpreter Core, Library (Lib), SSL, Tests, Unicode, ctypes nosy: -docs@python, koobs ___

[issue39476] Not convinced with the dynamic data type assignment

2020-01-28 Thread Sushma
New submission from Sushma : Hi Please find below example and the compiler error, when i'm assigning value dynamically and when we comparing in "if" loop it is throwing compiler error. It should not throw error it should assign and act as int why it is thinking as string. Code Snippet: prin

[issue39460] test_zipfile: test_add_file_after_2107() fails on s390x Fedora Rawhide 3.x

2020-01-28 Thread STINNER Victor
STINNER Victor added the comment: I tried but failed to reproduce the issue on Fedora Rawhide x86-64. I built Python from source and run Python from its source tree: ./python -m test -v test_zipfile Maybe the issue only occurs if Python is installed? Or it depends on the filesystem where th

[issue39472] IDLE: improve handling of int entry in settings dialog

2020-01-28 Thread Cheryl Sabella
Cheryl Sabella added the comment: With keeping it a StringVar, there is an issue where it writes a blank (ie, bad data) to the config file. Steps to reproduce: - Go into config dialog and click 'General' tab. - Delete value from 'Auto squeeze min line' - Click apply or OK. A warning message

[issue36350] inspect.Signature.parameters and inspect.BoundArguments.arguments should be dicts instead of OrderedDicts

2020-01-28 Thread Inada Naoki
Change by Inada Naoki : -- nosy: -inada.naoki resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9 -Python 3.8 ___ Python tracker ___

[issue36350] inspect.Signature.parameters and inspect.BoundArguments.arguments should be dicts instead of OrderedDicts

2020-01-28 Thread Inada Naoki
Inada Naoki added the comment: New changeset 2cca8efe46935c39c445f585bce54954fad2485b by Inada Naoki (Rémi Lapeyre) in branch 'master': bpo-36350: inspect: Replace OrderedDict with dict. (GH-12412) https://github.com/python/cpython/commit/2cca8efe46935c39c445f585bce54954fad2485b -- n

[issue38960] DTrace FreeBSD build fix

2020-01-28 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset aabdeb766b7fa581e7de01f3c953b12792f0736d by Petr Viktorin (David Carlier) in branch 'master': bpo-38960: DTrace build fix for FreeBSD. (GH-17451) https://github.com/python/cpython/commit/aabdeb766b7fa581e7de01f3c953b12792f0736d -- nosy:

[issue39476] Not convinced with the dynamic data type assignment

2020-01-28 Thread Steven D'Aprano
Steven D'Aprano added the comment: The "num" variable is not a number, it *is* a string. Just because you call it "num" doesn't magically turn it into a number. The `input` function returns a string. You might be thinking of Python 2.7 where `input` automatically evaluated the string as Pyt

[issue39468] .python_history write permission improvements

2020-01-28 Thread Steven D'Aprano
Steven D'Aprano added the comment: Reporting a better error message than just "Unknown error -1" is a good idea. Stating "an error occurred..." is hardly any better. The correct error is, I think, "permission denied". Trying to diagnose the *specific* issue (read-only file? file owned by ano

[issue39477] multiprocessing Pool maxtasksperchild=0 raises exception with endless traceback

2020-01-28 Thread Tomáš Jeziorský
New submission from Tomáš Jeziorský : The following code is expected to fail: import multiprocessing def f(x): return x if __name__ == '__main__': with multiprocessing.Pool(2, maxtasksperchild=0) as pool: pool.map(f, range(3)) since it uses a wrong value of t

[issue39478] can we add a median function

2020-01-28 Thread Ananthakrishnan A S
New submission from Ananthakrishnan A S : add a function called 'median' that we can use like: list=[1,2,3,4,5,6,7,8,9] # declaring list median(list) #returns 5 -- components: Library (Lib) messages: 360873 nosy: Ananthakrishnan A S priority: normal severity: normal status: o

[issue39478] can we add a median function

2020-01-28 Thread STINNER Victor
STINNER Victor added the comment: It already exists since Python 3.4: https://docs.python.org/dev/library/statistics.html#statistics.median Enjoy! -- nosy: +vstinner resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracke

[issue39477] multiprocessing Pool maxtasksperchild=0 raises exception with endless traceback

2020-01-28 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +davin, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39479] can we add a lcm and gcd function.

2020-01-28 Thread Ananthakrishnan A S
New submission from Ananthakrishnan A S : can we add an lcm and gcd function that can work as: lcm(4,6) # returns 12 gcd(4,6) # returns 2 -- components: Library (Lib) messages: 360875 nosy: Ananthakrishnan A S priority: normal severity: normal status: open title: can we add a lcm and

[issue39479] [RFE] Add math.lcm() function: Least Common Multiple

2020-01-28 Thread STINNER Victor
STINNER Victor added the comment: There is math.gcd(): https://docs.python.org/dev/library/math.html#math.gcd You can use numpy.lcm(): https://docs.scipy.org/doc/numpy-1.15.0/reference/generated/numpy.lcm.html Is it common to need lcm()? Do you have examples of applications which need lcm()?

[issue39479] [RFE] Add math.lcm() function: Least Common Multiple

2020-01-28 Thread Steven D'Aprano
Steven D'Aprano added the comment: Uses for lcm are common enough that it is provided by Excel and the C++ boost. You can use it for working out problems like: - if event A happens every 14 days, and event B happens every 6 days, then A and B will occur together even lcm(14, 6) days. By th

[issue39479] [RFE] Add math.lcm() function: Least Common Multiple

2020-01-28 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue39245] Public API for Vectorcall (PEP 590)

2020-01-28 Thread STINNER Victor
STINNER Victor added the comment: I put the priority on release blocker to ensure that we don't miss Python 3.9 deadline. It would be great to not miss 3.9 release. -- nosy: +vstinner priority: normal -> release blocker ___ Python tracker

[issue39479] [RFE] Add math.lcm() function: Least Common Multiple

2020-01-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: reduce(gcd, [a, b, c, d, e]) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue39479] [RFE] Add math.lcm() function: Least Common Multiple

2020-01-28 Thread Ananthakrishnan A S
Ananthakrishnan A S added the comment: I created this issue as i came across the following question: There are n students in class A,and m students in class B.each class divides into teams for a competition.What is the biggest possible team size that can be divided,such that each team has s

[issue39460] test_zipfile: test_add_file_after_2107() fails on s390x Fedora Rawhide 3.x

2020-01-28 Thread Marcel Plch
Marcel Plch added the comment: Is currently anybody actively working on this? Please, report what you have found out, if so. I'd like to start digging into this tomorrow and possibly avoid any duplicit work. -- ___ Python tracker

[issue39401] Unsafe dll loading in getpathp.c on Win7

2020-01-28 Thread Eryk Sun
Eryk Sun added the comment: > For clarity, I'm removing 3.9 from the affected versions. This version > does not support Windows 7, and only Windows 7 is vulnerable to this > DLL hijack. I added 3.9 for the related issue to switch to using a static import, since Windows 7 isn't supported in 3

[issue39480] referendum reference is needlessly annoying

2020-01-28 Thread Ian Jackson
New submission from Ian Jackson : The section "Fancier Output Formatting" has the example below. This will remind many UK readers of the 2016 EU referendum. About half of those readers will be quite annoyed. This annoyance seems entirely avoidable; a different example which did not refer t

[issue39440] Use PyNumber_InPlaceAdd in sum() for the second iteration onward

2020-01-28 Thread Brandt Bucher
Change by Brandt Bucher : -- pull_requests: +17619 pull_request: https://github.com/python/cpython/pull/18240 ___ Python tracker ___ ___

[issue39440] Use PyNumber_InPlaceAdd in sum() for the second iteration onward

2020-01-28 Thread Brandt Bucher
Brandt Bucher added the comment: Perhaps. I've opened a PR to update the comment with more info. -- ___ Python tracker ___ ___ Pyth

[issue39481] Implement PEP 585 (Type Hinting Generics In Standard Collections)

2020-01-28 Thread Guido van Rossum
New submission from Guido van Rossum : See PEP 585, which is still under review and may change in response to this work. https://www.python.org/dev/peps/pep-0585/ -- components: Interpreter Core messages: 360885 nosy: gvanrossum priority: normal severity: normal status: open title: Im

[issue39480] referendum reference is needlessly annoying

2020-01-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +akuchling ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue39481] Implement PEP 585 (Type Hinting Generics In Standard Collections)

2020-01-28 Thread Guido van Rossum
Change by Guido van Rossum : -- keywords: +patch pull_requests: +17620 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18239 ___ Python tracker ___

[issue39401] Unsafe dll loading in getpathp.c on Win7

2020-01-28 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue39480] referendum reference is needlessly annoying

2020-01-28 Thread Fred Drake
Change by Fred Drake : -- nosy: +fdrake ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue39469] Support for relative home path in pyvenv.cfg

2020-01-28 Thread Brett Cannon
Brett Cannon added the comment: Do note that virtual environments are not designed to be portable in general, so this would be a fundamental change in the design and purpose of virtual environments. -- nosy: +brett.cannon, vinay.sajip ___ Python t

[issue39469] Support for relative home path in pyvenv.cfg

2020-01-28 Thread Jeff Edwards
Jeff Edwards added the comment: I would say they’re not designed to be, but the also aren’t designed to not be portable. This is often useful where open network access isn’t reasonable, so access to Pip/pipx/pipenv is limited at best. Suffice to say, is there a significant reason to not allow

[issue39468] .python_history write permission improvements

2020-01-28 Thread Eryk Sun
Eryk Sun added the comment: This issue is due to a bug in GNU Readline (actually GNU History). It's documented that write_history [1] returns an errno value. But the internal history_do_write [2] function in this case returns the value from a rename() system call, via the value from histfile

[issue39479] [RFE] Add math.lcm() function: Least Common Multiple

2020-01-28 Thread Ananthakrishnan A S
Ananthakrishnan A S added the comment: Should i proceed with adding a pull request for adding a 'lcm' function in python's math module. -- ___ Python tracker ___

[issue39461] [RFE] os.environ should support Path-like values, like subprocess(..., env=...)

2020-01-28 Thread Brett Cannon
Brett Cannon added the comment: > but now it's too change to change it again :-) I actually don't think it is if we want to revert this. We can raise a deprecation warning if the call to os.fsencode() leads to a value different than its argument and say that people are expected to handle con

[issue39459] test_import: test_unwritable_module() fails on AMD64 Fedora Stable Clang Installed 3.x

2020-01-28 Thread Brett Cannon
Brett Cannon added the comment: Did the Windows-equivalent project files also get updated? -- ___ Python tracker ___ ___ Python-bug

[issue39460] test_zipfile: test_add_file_after_2107() fails on s390x Fedora Rawhide 3.x

2020-01-28 Thread STINNER Victor
STINNER Victor added the comment: > Is currently anybody actively working on this? Please, report what you have > found out, if so. I'd like to start digging into this tomorrow and possibly > avoid any duplicit work. I tried but failed to reproduce the bug on Fedora 31 and Fedora Rawhide. I

[issue39469] Support for relative home path in pyvenv.cfg

2020-01-28 Thread Brett Cannon
Brett Cannon added the comment: > Suffice to say, is there a significant reason to not allow it? We have to support that use-case forever. ;) In all seriousness, relative paths get tricky when you forget to resolve the path as appropriate (and in a way that people expect) and it requires mak

[issue39461] [RFE] os.environ should support Path-like values, like subprocess(..., env=...)

2020-01-28 Thread Antony Lee
Antony Lee added the comment: FWIW, I'm actually fine with not supporting Path objects in os.environ, as long as the behavior is *consistent* with the env kwarg to subprocess.run() -- note that the original title of the thread only pointed out to the inconsistency, and did not strongly reque

[issue39479] [RFE] Add math.lcm() function: Least Common Multiple

2020-01-28 Thread Vedran Čačić
Vedran Čačić added the comment: I must say that the problem (with two classes divided into teams) seems to me to be exactly one that can be solved with gcd, and lcm itself is mostly useless for it. -- nosy: +veky ___ Python tracker

[issue39459] test_import: test_unwritable_module() fails on AMD64 Fedora Stable Clang Installed 3.x

2020-01-28 Thread Dino Viehland
Change by Dino Viehland : -- pull_requests: +17621 pull_request: https://github.com/python/cpython/pull/18241 ___ Python tracker ___ ___

[issue39460] test_zipfile: test_add_file_after_2107() fails on s390x Fedora Rawhide 3.x

2020-01-28 Thread David Edelsohn
David Edelsohn added the comment: $ ./python -m test tet_zipfile 0:00:00 load avg: 0.03 Run tests sequentially 0:00:00 load avg: 0.03 [1/1] tet_zipfile test tet_zipfile crashed -- Traceback (most recent call last): File "/home/dje/src/cpython/Lib/test/libregrtest/runtest.py", line 270, in _r

[issue39460] test_zipfile: test_add_file_after_2107() fails on s390x Fedora Rawhide 3.x

2020-01-28 Thread David Edelsohn
David Edelsohn added the comment: Sorry, posted the wrong output above. $ ./python -m test test_zipfile 0:00:00 load avg: 0.01 Run tests sequentially 0:00:00 load avg: 0.01 [1/1] test_zipfile test test_zipfile failed -- Traceback (most recent call last): File "/home/dje/src/cpython/Lib/test/

[issue39479] [RFE] Add math.lcm() function: Least Common Multiple

2020-01-28 Thread Ananthakrishnan A S
Ananthakrishnan A S added the comment: some problems that needs lcm function: 1:find the least number which when divided by 'a','b','c','d' leaves remainder 'e' in each case. 2:person A exercises every 'n' days and person B every 'm' days. A and B both exercised today. How many days will it

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

2020-01-28 Thread David Filiatrault
Change by David Filiatrault : -- nosy: +David Filiatrault ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue25702] Link Time Optimizations support for GCC and CLANG

2020-01-28 Thread David Filiatrault
Change by David Filiatrault : -- nosy: +David Filiatrault ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue39476] Not convinced with the dynamic data type assignment

2020-01-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Sushma, asking about the exception message on python-list was the right thing to do. You should have waited for the answers you got there. At this point, bugs in basic python operations are extremely rare. -- nosy: +terry.reedy ___

[issue39479] [RFE] Add math.lcm() function: Least Common Multiple

2020-01-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: -1 Given that we had gcd(), I don't see any value to adding *lcm()* as well. Once you have gcd(), getting the least common multiple is trivial. Also, it is rare to ever need a lcm() function. I don't think I've ever seen it in real code. -- _

[issue39461] [RFE] os.environ should support Path-like values, like subprocess(..., env=...)

2020-01-28 Thread Eryk Sun
Eryk Sun added the comment: > as long as the behavior is *consistent* with the env kwarg to > subprocess.run() subprocess isn't consistent with itself across platforms. The env parameter in Windows is strictly an str->str mapping, like os.environ. This is coded in getenvironment in Modules

[issue39459] test_import: test_unwritable_module() fails on AMD64 Fedora Stable Clang Installed 3.x

2020-01-28 Thread Dino Viehland
Dino Viehland added the comment: Nope, thank you for pointing that out. I've updated them now with PR 18241 -- ___ Python tracker ___

[issue39459] test_import: test_unwritable_module() fails on AMD64 Fedora Stable Clang Installed 3.x

2020-01-28 Thread Dino Viehland
Dino Viehland added the comment: New changeset 0cd5bff6b7da3118d0c5a88fc2b80f80eb7c3059 by Dino Viehland in branch 'master': bpo-39459: include missing test files in windows installer https://github.com/python/cpython/commit/0cd5bff6b7da3118d0c5a88fc2b80f80eb7c3059 --

[issue37860] Add netlify deploy preview for docs

2020-01-28 Thread Ernest W. Durbin III
Change by Ernest W. Durbin III : -- pull_requests: +17622 pull_request: https://github.com/python/cpython/pull/18242 ___ Python tracker ___

[issue39459] test_import: test_unwritable_module() fails on AMD64 Fedora Stable Clang Installed 3.x

2020-01-28 Thread STINNER Victor
STINNER Victor added the comment: The Windows installer copies Lib/test/ and subdirectories: see in Tools/msi/test/test.wixproj. -- ___ Python tracker ___ ___

[issue39461] [RFE] os.environ should support Path-like values, like subprocess(..., env=...)

2020-01-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: I don't think proposal this makes sense. os.environ is a dict-like object providing clean access to the environment variables. Use of Paths is an orthogonal problem unrelated to environment variables. -- nosy: +rhettinger __

[issue39480] referendum reference is needlessly annoying

2020-01-28 Thread Steven D'Aprano
Steven D'Aprano added the comment: Oh come on now, this is such a trivialisation of the CoC that I cannot believe that it is a good-faith bug report and not a troll. I'm surprised you didn't toss in the words "triggered" and "micro-aggression" while you're at it. The example has nothing to d

[issue39459] test_import: test_unwritable_module() fails on AMD64 Fedora Stable Clang Installed 3.x

2020-01-28 Thread Dino Viehland
Dino Viehland added the comment: I guess the update to lib.pyproj probably just makes the files show up when opening the solution in Visual Studio then. -- ___ Python tracker ___

[issue39469] Support for relative home path in pyvenv.cfg

2020-01-28 Thread Eryk Sun
Eryk Sun added the comment: > Suffice to say, is there a significant reason to not allow it? It's poorly supported by packaging. In particular, relocating an environment isn't supported with entry-point scripts, which pip installs with a fully-qualified shebang. Moreover, entry-point scripts

[issue39469] Support for relative home path in pyvenv.cfg

2020-01-28 Thread Jeff Edwards
Jeff Edwards added the comment: Interesting, I hadn’t realized that it would embed the FQ Executable path, but that does make sense overall. I guess I had always planned on fixing the ‘bin’ directory anyway afterwards, it’s just that the lack of relative home made it significantly harder to enc

  1   2   >