[issue39928] Pysftp Issue File Upload is not working - put command

2020-03-10 Thread Steven D'Aprano


Change by Steven D'Aprano :


--
resolution:  -> third party
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22121] Start IDLE from icon in a better place.

2020-03-10 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

See also #38775 about a configuration option.  The two proposals need to be 
coordinated.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39107] Upgrade tcl/tk to 8.6.10 (Windows and maxOS)

2020-03-10 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

https://www.tcl.tk/man/tcl8.6/TkCmd/contents.htm now displays the 8.6.10 pages, 
so the tcl folk consider this to be the current stable release.

Zach or Steve or whowever can handle this for Windows, please upgrade pcbuild 
and whatever else 'soon' (by next release?).  I have looked at
https://sourceforge.net/projects/tcl/files/Tcl/8.6.10/tcltk-release-notes-8.6.10.txt/view
and would like to check out one POTENTIAL INCOMPATIBILITY (mousewheel bindings) 
and a couple of new features.

--
nosy: +serhiy.storchaka
priority: normal -> high
title: Consider building Tkinter with Tk 8.6.10 -> Upgrade tcl/tk to 8.6.10 
(Windows and maxOS)
versions:  -Python 3.7, Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39926] unicodedata for Unicode 13.0.0

2020-03-10 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset c77aa2d60b420747886f4258cf159bdbb7354100 by Benjamin Peterson in 
branch 'master':
bpo-39926: Update unicodedata checksum tests for Unicode 13.0 update. (GH-18913)
https://github.com/python/cpython/commit/c77aa2d60b420747886f4258cf159bdbb7354100


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39926] unicodedata for Unicode 13.0.0

2020-03-10 Thread Benjamin Peterson


Change by Benjamin Peterson :


--
pull_requests: +18267
pull_request: https://github.com/python/cpython/pull/18913

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39926] unicodedata for Unicode 13.0.0

2020-03-10 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset 051b9d08d1e6a8b1022a2bd9166be51c0b152698 by Benjamin Peterson in 
branch 'master':
closes bpo-39926: Update Unicode to 13.0.0. (GH-18910)
https://github.com/python/cpython/commit/051b9d08d1e6a8b1022a2bd9166be51c0b152698


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36144] Dictionary union. (PEP 584)

2020-03-10 Thread Charles Burkland


Change by Charles Burkland :


--
nosy: +chaburkland
nosy_count: 12.0 -> 13.0
pull_requests: +18266
pull_request: https://github.com/python/cpython/pull/18911

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39922] Remove unused args in Python/compile.c

2020-03-10 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset 76d5877b72cbe66eb3b6d8caa8d19f89a938ada2 by Andy Lester in branch 
'master':
closes bpo-39922: Remove unused args from four functions. (GH-18893)
https://github.com/python/cpython/commit/76d5877b72cbe66eb3b6d8caa8d19f89a938ada2


--
nosy: +benjamin.peterson
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39926] unicodedata for Unicode 13.0.0

2020-03-10 Thread Benjamin Peterson


Change by Benjamin Peterson :


--
keywords: +patch
nosy: +benjamin.peterson
nosy_count: 1.0 -> 2.0
pull_requests: +18265
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/18910

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39321] AMD64 FreeBSD Non-Debug 3.x: main regrtest process killed by SIGKILL (Signal 9)

2020-03-10 Thread Kubilay Kocak


Kubilay Kocak  added the comment:

Investigating

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36184] test_gdb.test_threads() is specific to _POSIX_THREADS, fail on FreeBSD

2020-03-10 Thread Kubilay Kocak


Kubilay Kocak  added the comment:

For our future reference/selves, GDB (currently 9.1 w/ python bindings) is now 
installed on the two FreeBSD buildbot workers

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39928] Pysftp Issue File Upload is not working - put command

2020-03-10 Thread Eric V. Smith


Eric V. Smith  added the comment:

Hi, Sandeep. For information see 
https://mail.python.org/mailman/listinfo/python-list

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39928] Pysftp Issue File Upload is not working - put command

2020-03-10 Thread Sandeep


Sandeep  added the comment:

Eric how can I contact the python Mailing list

--
status: pending -> open

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39928] Pysftp Issue File Upload is not working - put command

2020-03-10 Thread Eric V. Smith


Eric V. Smith  added the comment:

This is the python bug tracker. What you are reporting is almost certainly not 
a bug in python. If you think it is a bug in python, please reproduce it in the 
smallest possible code fragment, and with no third party libraries installed.

If you're seeking general help, you might try the python-list mailing list. If 
you think this is a bug in paramiko or pysftp, you should report it to their 
respective bug trackers.

--
nosy: +eric.smith
status: open -> pending
type: crash -> 

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39927] IDLE.app fails to launch on macOS 10.15 if denied access to user's Document Folder

2020-03-10 Thread Ned Deily


Ned Deily  added the comment:

Thanks for bringing it up!  That was a new failure mode we haven't seen before.

I was going to close this issue but then it struck me that we might be able to 
handle this situation a bit better; we should be able to catch an exception 
when IDLE tries to set the working directory to Documents.  I'll leave it up to 
you, Terry, if you want to pursue this.  I won't have time myself right now but 
maybe someone else would be willing to jump in.  It may be a little tricky to 
test and certainly requires a macOS 10.15.x Catalina system.

--
title: IDLE 3.8.2 doesn't launch on Catalina 10.15.3- HELP Service exited with 
abnormal code: 1 -> IDLE.app fails to launch on macOS 10.15 if denied access to 
user's Document Folder
type:  -> crash
versions: +Python 3.7, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39927] IDLE 3.8.2 doesn't launch on Catalina 10.15.3- HELP Service exited with abnormal code: 1

2020-03-10 Thread dd


dd  added the comment:

Thank you so much Ned Deily, that was it!  FIXED IT!  You're awesome!!!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39928] Pysftp Issue File Upload is not working - put command

2020-03-10 Thread Sandeep


New submission from Sandeep :

Hi 
   We have requirement where we need to get file from client path and then 
upload the same to vendor directory path. I am not able to upload the file to 
vendor directory path , however when I tried to use the WINSCP it worked fine. 
So I thought of checking with Gurus what is wrong I am doing in my script. 
Appreciate your input.
I will attach my script. Here is what I am doing.

Step1. Clear the client directory path
Step2. Make a call to HVAC Vault to get the username and password for client 
and vendor server
Step3. Use the username and password to establish connection using pysftp for 
client. 
Step4. Store the file in local path.
Step5. Segregate the file into different path based on file type
Step6  Establish a connection to vendor and copy the file to vendor.
Step7  Close the client and Vendor connection

Please see the file attached.

Also below is the error which I am getting

-
ERROR:root:Error in getting the file from EBS Outbound Server
Traceback (most recent call last):
  File "FILE_TRANSFER_PROCESS.py", line 191, in file_transfer
vendor.put(src_file, dst_file)
  File "/d01/python3/lib64/python3.6/site-packages/pysftp/__init__.py", line 
364, in put
confirm=confirm)
  File "/d01/python3/lib64/python3.6/site-packages/paramiko/sftp_client.py", 
line 759, in put
return self.putfo(fl, remotepath, file_size, callback, confirm)
  File "/d01/python3/lib64/python3.6/site-packages/paramiko/sftp_client.py", 
line 720, in putfo
s = self.stat(remotepath)
  File "/d01/python3/lib64/python3.6/site-packages/paramiko/sftp_client.py", 
line 493, in stat
t, msg = self._request(CMD_STAT, path)
  File "/d01/python3/lib64/python3.6/site-packages/paramiko/sftp_client.py", 
line 813, in _request
return self._read_response(num)
  File "/d01/python3/lib64/python3.6/site-packages/paramiko/sftp_client.py", 
line 865, in _read_response
self._convert_status(msg)
  File "/d01/python3/lib64/python3.6/site-packages/paramiko/sftp_client.py", 
line 894, in _convert_status
raise IOError(errno.ENOENT, text)
FileNotFoundError: [Errno 2] /custom/OWO/ECE_OWO_20200303_143895.dat

--
components: Tests
files: File_Transfer_Process_Client.py
messages: 363870
nosy: Sandeep
priority: normal
severity: normal
status: open
title: Pysftp Issue File Upload is not working - put command
type: crash
versions: Python 3.7
Added file: https://bugs.python.org/file48967/File_Transfer_Process_Client.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39927] IDLE 3.8.2 doesn't launch on Catalina 10.15.3- HELP Service exited with abnormal code: 1

2020-03-10 Thread Ned Deily


Ned Deily  added the comment:

That message just means that Python terminated with an error; the specific 
traceback is lost.

But I just noticed one possible explanation. It appears that if the Files & 
Folder security setting is set to disallow access to your Documents Folder, 
IDLE.app will fail on startup but it will launch from the command line. Check 
the following in System Preferences.

Apple Menu (upper left corner) -> System Preferences -> Security & Privacy.
Then click on the Privacy tab, scroll to and click on Files and Folders, then 
look for a Python.app (not IDLE.app) entry.  It should have a Documents Folder 
entry underneath it and it should be checked (enabled). If not, click it (you 
might need to click on the lock in the lower left corner to enable changes).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39925] `pathlib.Path.link_to()` has the wrong argument order

2020-03-10 Thread Barney Gale


Change by Barney Gale :


--
keywords: +patch
pull_requests: +18264
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/18909

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39927] IDLE 3.8.2 doesn't launch on Catalina 10.15.3- HELP Service exited with abnormal code: 1

2020-03-10 Thread dd


Change by dd :


--
title: IDLE 3.8.2 doesn't launch on Catalina 10.15.3- HELP -> IDLE 3.8.2 
doesn't launch on Catalina 10.15.3- HELP Service exited with abnormal code: 1

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39927] IDLE 3.8.2 doesn't launch on Catalina 10.15.3- HELP

2020-03-10 Thread dd


dd  added the comment:

Yes, installed Python from the mac installer on this page.  I have done it 
multiple times already without any success. 

This is the error I keep seeing
Mar 10 17:39:23 DDs-MacBook-Pro com.apple.xpc.launchd[1] 
(org.python.IDLE.4188[1615]): Service exited with abnormal code: 1

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39927] IDLE 3.8.2 doesn't launch on Catalina 10.15.3- HELP

2020-03-10 Thread Ned Deily


Ned Deily  added the comment:

No, clicking on the app *should* work. I'm assuming you installed Python 3.8.2 
from the python.org macOS installer?  If so, you *could* try reinstalling it 
again. For what it's worth, I am not aware of any current problems with 
launching the app on 10.15.x; it works for me :(

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39927] IDLE 3.8.2 doesn't launch on Catalina 10.15.3- HELP

2020-03-10 Thread dd


dd  added the comment:

Is the Unix shell the only way to open IDLE from now on?  Seems like I can get 
it to open that way, but clicking on the app like I used to no longer works.  
Thank you so much!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39927] IDLE 3.8.2 doesn't launch on Catalina 10.15.3- HELP

2020-03-10 Thread dd


dd  added the comment:

Thanks!  That way IDLE does open.

See this in the System log
Mar 10 17:26:24 DDs-MacBook-Pro diagnosticd[1289]: Posting stream filter: "{
global = 47245099008;
}"
Mar 10 17:26:24 DDs-MacBook-Pro diagnosticd[1289]: System mode client started - 
Console (1418) - mode: 0xb, filter: ""
Mar 10 17:26:36 DDs-MacBook-Pro Console[1418]: assertion failed: 19D76: 
libxpc.dylib + 95826 [51E3E807-9133-3605-BB5F-D59ED6404ABF]: 0x89

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39927] IDLE 3.8.2 doesn't launch on Catalina 10.15.3- HELP

2020-03-10 Thread dd


dd  added the comment:

I see this error in the system.log
Mar 10 17:18:25 DDs-MacBook-Pro com.apple.xpc.launchd[1] 
(org.python.IDLE.4188[1295]): Service exited with abnormal code: 1

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39927] IDLE 3.8.2 doesn't launch on Catalina 10.15.3- HELP

2020-03-10 Thread Ned Deily


Ned Deily  added the comment:

You need to first exit out of the Python interpreter back to the Unix shell.  
Type:

quit()

Then try:

python3.8 -m idlelib

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39927] IDLE 3.8.2 doesn't launch on Catalina 10.15.3- HELP

2020-03-10 Thread dd


dd  added the comment:

Thanks @ned.deily

That did not work.
>>> python3.8 -m idlelib
  File "", line 1
python3.8 -m idlelib
   ^
SyntaxError: invalid syntax

Also see this error on the system log
>>> python3.8 -m idlelib
  File "", line 1
python3.8 -m idlelib
   ^
SyntaxError: invalid syntax

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39927] IDLE 3.8.2 doesn't launch on Catalina 10.15.3- HELP

2020-03-10 Thread Ned Deily


Ned Deily  added the comment:

Try running IDLE from the command line:

python3.8 -m idlelib

If that works, then open the Console.app, select the system log, and then try 
double-clicking the IDLE.app icon again and see if any messages appear there.

--
nosy: +ned.deily

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39927] IDLE 3.8.2 doesn't launch on Catalina 10.15.3- HELP

2020-03-10 Thread dd


New submission from dd :

I just upgraded my Mac OS to 10.15.3 and Python 3.8.2 install went fine.  But 
IDLE doesn't launch at all. I have already gone to System Preferences and 
allowed it to allow apps from anywhere.  When I go to the command line and do 
Python 3 I see the correct version.

But clicking on the IDLE app does nothing.  And previous python scripts don't 
run at all and I don't see errors.

Super grateful to anyone who may know the answer!

--
assignee: terry.reedy
components: IDLE
messages: 363860
nosy: dd789, terry.reedy
priority: normal
severity: normal
status: open
title: IDLE 3.8.2 doesn't launch on Catalina 10.15.3- HELP
versions: Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39926] unicodedata for Unicode 13.0.0

2020-03-10 Thread Zufu Liu


New submission from Zufu Liu :

Unicode 13.0.0 was released on March 10.
https://www.unicode.org/versions/latest/
http://www.unicode.org/versions/Unicode13.0.0/

--
messages: 363859
nosy: zufuliu
priority: normal
severity: normal
status: open
title: unicodedata for Unicode 13.0.0
type: enhancement
versions: Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38631] Replace Py_FatalError() with regular Python exceptions

2020-03-10 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 4e53abb0f4773e1cce68a4f41ddbb43e74364c5f by Victor Stinner in 
branch 'master':
bpo-38631: _PyGILState_Init() returns PyStatus (GH-18908)
https://github.com/python/cpython/commit/4e53abb0f4773e1cce68a4f41ddbb43e74364c5f


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38631] Replace Py_FatalError() with regular Python exceptions

2020-03-10 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +18263
pull_request: https://github.com/python/cpython/pull/18908

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39763] distutils.spawn should use subprocess (hang in parallel builds on QNX)

2020-03-10 Thread Guido van Rossum


Change by Guido van Rossum :


--
nosy:  -gvanrossum

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39925] `pathlib.Path.link_to()` has the wrong argument order

2020-03-10 Thread Barney Gale


Barney Gale  added the comment:

I'm not sure how it can be fixed on the documentation side - it's difficult to 
explain that `a.link_to(b)` creates a link from B to A, and not vice-versa.

We could introduce a new method that does the right thing? `Path.hardlink_to()`?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39925] `pathlib.Path.link_to()` has the wrong argument order

2020-03-10 Thread Eric V. Smith


Eric V. Smith  added the comment:

I think it's too late to change this. Is this a documentation issue?

--
nosy: +eric.smith

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39763] distutils.spawn should use subprocess (hang in parallel builds on QNX)

2020-03-10 Thread STINNER Victor


STINNER Victor  added the comment:

> OK. BEFORE I open a new issue, I am going to guess that something is wrong 
> with finding _socket.so - because it exists, but "something" is not finding 
> it.

Did the build worked on AIX before the commit 
1ec63b62035e73111e204a0e03b83503e1c58f2e which changed distutils to use 
subprocess? Try commit dffe4c07095e0c693e094d3c140e85a68bd8128e (parent of the 
other change).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38662] Decouple ensurepip from pip's internals using runpy

2020-03-10 Thread STINNER Victor

STINNER Victor  added the comment:

Thanks Pradyun Gedam and Miro Hrončok for the fix.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39763] distutils.spawn should use subprocess (hang in parallel builds on QNX)

2020-03-10 Thread Michael Felt


Michael Felt  added the comment:

I am confused.

The bot complains nearly immediately about missing _socket

Following modules built successfully but were removed because they could not be 
imported:
_asyncio   
running build_scripts
copying and adjusting 
/home/shager/cpython-buildarea/3.x.edelsohn-aix-ppc64/build/Tools/scripts/pydoc3
 -> build/scripts-3.9
copying and adjusting 
/home/shager/cpython-buildarea/3.x.edelsohn-aix-ppc64/build/Tools/scripts/idle3 
-> build/scripts-3.9
copying and adjusting 
/home/shager/cpython-buildarea/3.x.edelsohn-aix-ppc64/build/Tools/scripts/2to3 
-> build/scripts-3.9
changing mode of build/scripts-3.9/pydoc3 from 600 to 755
changing mode of build/scripts-3.9/idle3 from 600 to 755
changing mode of build/scripts-3.9/2to3 from 600 to 755
renaming build/scripts-3.9/pydoc3 to build/scripts-3.9/pydoc3.9
renaming build/scripts-3.9/idle3 to build/scripts-3.9/idle3.9
renaming build/scripts-3.9/2to3 to build/scripts-3.9/2to3-3.9
./python -E -c 'import sys ; from sysconfig import get_platform ; 
print("%s-%d.%d" % (get_platform(), *sys.version_info[:2]))' >platform
./python  ./Tools/scripts/run_tests.py -j 1 -u all -W --slowest 
--fail-env-changed --timeout=900 -j2 --junit-xml test-results.xml 
Traceback (most recent call last):
  File 
"/home/shager/cpython-buildarea/3.x.edelsohn-aix-ppc64/build/./Tools/scripts/run_tests.py",
 line 12, in 
import test.support
  File 
"/home/shager/cpython-buildarea/3.x.edelsohn-aix-ppc64/build/Lib/test/support/__init__.py",
 line 6, in 
import asyncio.events
  File 
"/home/shager/cpython-buildarea/3.x.edelsohn-aix-ppc64/build/Lib/asyncio/__init__.py",
 line 8, in 
from .base_events import *
  File 
"/home/shager/cpython-buildarea/3.x.edelsohn-aix-ppc64/build/Lib/asyncio/base_events.py",
 line 23, in 
import socket
  File 
"/home/shager/cpython-buildarea/3.x.edelsohn-aix-ppc64/build/Lib/socket.py", 
line 51, in 
import _socket
ModuleNotFoundError: No module named '_socket'

while if I use my (now closed) pr18847 I do not get the results immediately - 
it starts the whole test series, and then fails - but not because _socket does 
not exist, instead:

0:00:48 [ 53/420/2] test_socket failed (30.4 sec) -- running: 
test_multiprocessing_fork (48.3 sec)
/data/prj/python/git/python3-3.9/Lib/test/test_socket.py:2557: RuntimeWarning: 
received malformed or improperly-truncated ancillary data
  result = sock.recvmsg(bufsize, *args)
/data/prj/python/git/python3-3.9/Lib/test/test_socket.py:2648: RuntimeWarning: 
received malformed or improperly-truncated ancillary data
  result = sock.recvmsg_into([buf], *args)
test test_socket failed -- Traceback (most recent call last):
  File "/data/prj/python/git/python3-3.9/Lib/test/test_socket.py", line 1481, 
in testGetaddrinfo
self.assertEqual(socktype, socket.SOCK_STREAM)
AssertionError: 0 != 


In short, stumped...

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38662] Decouple ensurepip from pip's internals using runpy

2020-03-10 Thread miss-islington


miss-islington  added the comment:


New changeset 212acf544a41a983aea7166d43d8dfe9a8296655 by Miss Islington (bot) 
in branch '3.8':
bpo-38662: ensurepip invokes pip via runpy (GH-18901)
https://github.com/python/cpython/commit/212acf544a41a983aea7166d43d8dfe9a8296655


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38662] Decouple ensurepip from pip's internals using runpy

2020-03-10 Thread miss-islington


miss-islington  added the comment:


New changeset 8d5c958ddebbb96c2de5d58da4c7aa1790629cf9 by Miss Islington (bot) 
in branch '3.7':
bpo-38662: ensurepip invokes pip via runpy (GH-18901)
https://github.com/python/cpython/commit/8d5c958ddebbb96c2de5d58da4c7aa1790629cf9


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39925] `pathlib.Path.link_to()` has the wrong argument order

2020-03-10 Thread Barney Gale


New submission from Barney Gale :

`mylink.symlink_to(target)` and `mylink.link_to(target)` should both create a 
link (soft or hard) at *mylink* that points to *target*. But `link_to()` does 
the opposite - it creates *target* and points it towards *mylink*.


Correct behaviour from `symlink_to()`:

barney@acorn ~/projects/cpython $ touch /tmp/target
barney@acorn ~/projects/cpython $ ./python 
Python 3.9.0a3+ (heads/bpo-39659-pathlib-getcwd-dirty:a4ba8a3, Feb 19 2020, 
02:22:39) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pathlib
>>> p = pathlib.Path('/tmp/link')
>>> p.symlink_to('/tmp/target')
>>> exit()
barney@acorn ~/projects/cpython $ ls -l /tmp/link /tmp/target
lrwxrwxrwx 1 barney barney 11 Mar 10 21:20 /tmp/link -> /tmp/target
-rw-rw-r-- 1 barney barney  0 Mar 10 21:20 /tmp/target


Incorrect behaviour from `link_to()`:

barney@acorn ~/projects/cpython $ rm /tmp/link 
barney@acorn ~/projects/cpython $ ./python 
Python 3.9.0a3+ (heads/bpo-39659-pathlib-getcwd-dirty:a4ba8a3, Feb 19 2020, 
02:22:39) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pathlib
>>> p = pathlib.Path('/tmp/link')
>>> p.link_to('/tmp/target')
Traceback (most recent call last):
  File "", line 1, in 
  File "/home/barney/projects/cpython/Lib/pathlib.py", line 1370, in link_to
self._accessor.link_to(self, target)
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/link' -> 
'/tmp/target'
>>> # but...
>>> p = pathlib.Path('/tmp/target')
>>> p.link_to('/tmp/link')
>>> exit()
barney@acorn ~/projects/cpython $ ls -l /tmp/link /tmp/target
-rw-rw-r-- 2 barney barney 0 Mar 10 21:20 /tmp/link
-rw-rw-r-- 2 barney barney 0 Mar 10 21:20 /tmp/target

--
components: Library (Lib)
messages: 363850
nosy: barneygale
priority: normal
severity: normal
status: open
title: `pathlib.Path.link_to()` has the wrong argument order
type: behavior
versions: Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38662] Decouple ensurepip from pip's internals using runpy

2020-03-10 Thread STINNER Victor


STINNER Victor  added the comment:

> Yes, pip will support 2.7 at least until CPython does (and likely longer).

2.7 is no longer supported in CPython. So I will not backport the fix to 2.7. 
And I removed the 2.7 from versions of this issue.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38662] Decouple ensurepip from pip's internals using runpy

2020-03-10 Thread STINNER Victor

STINNER Victor  added the comment:

Miro Hrončok: "I wasn't even hoping for a backport. Thanks!" ( 
https://github.com/python/cpython/pull/18901#issuecomment-597324810 )

pip wheel files are still updated in stable 3.7 and 3.8 branches. Example in 
August 2018 in 3.7:

* commit c1c1a3396391dcc948d332607a0f673e4434da97
* bpo-37664

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38662] Decouple ensurepip from pip's internals using runpy

2020-03-10 Thread STINNER Victor


STINNER Victor  added the comment:

While it's not a major issue in CPython, I can say that being tightly coupled 
to pip internals is a major in Fedora which updates pip frequently and tries to 
support multiple pip versions.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38662] Decouple ensurepip from pip's internals using runpy

2020-03-10 Thread STINNER Victor


Change by STINNER Victor :


--
components: +Library (Lib)
versions:  -Python 2.7, Python 3.5, Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38662] Decouple ensurepip from pip's internals using runpy

2020-03-10 Thread miss-islington


Change by miss-islington :


--
pull_requests: +18262
pull_request: https://github.com/python/cpython/pull/18907

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38662] Decouple ensurepip from pip's internals using runpy

2020-03-10 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 9.0 -> 10.0
pull_requests: +18261
pull_request: https://github.com/python/cpython/pull/18906

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38662] Decouple ensurepip from pip's internals using runpy

2020-03-10 Thread STINNER Victor

STINNER Victor  added the comment:


New changeset 88f82b2b9ea3514359cb6e3218121f75334063ac by Miro Hrončok in 
branch 'master':
bpo-38662: ensurepip invokes pip via runpy (GH-18901)
https://github.com/python/cpython/commit/88f82b2b9ea3514359cb6e3218121f75334063ac


--
nosy: +vstinner

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39924] pathlib handles missing `os.link`, `os.symlink` and `os.readlink` inconsistently

2020-03-10 Thread Barney Gale


New submission from Barney Gale :

Small bug report encompassing some related issues in `pathlib._NormalAccessor`:

- `link_to()` should be named `link()` for consistency with other methods
- `symlink()` doesn't need to guard against `os.symlink()` not accepting 
`target_is_directory` on non-Windows platforms; this has been fixed since 3.3
- `readlink()` doesn't raise `NotImplementedError` when `os.readlink()` is 
unavailable

Only the last of these has a user impact, and only on exotic systems.

--
components: Library (Lib)
messages: 363845
nosy: barneygale
priority: normal
severity: normal
status: open
title: pathlib handles missing `os.link`, `os.symlink` and `os.readlink` 
inconsistently
type: behavior
versions: Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39900] `pathlib.Path.__bytes__()` calls `os.fsencode()` without using accessor

2020-03-10 Thread Barney Gale


Barney Gale  added the comment:

Closing after @pitrou clarified the meaning of __fspath__() here: 
https://discuss.python.org/t/make-pathlib-extensible/3428/12?u=barneygale

--
resolution:  -> not a bug
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39857] subprocess.run: add an extra_env kwarg to complement existing env kwarg

2020-03-10 Thread Gregory P. Smith


Gregory P. Smith  added the comment:

I think those dict unpacking and merging options are sufficient that adding an 
extra_env= parameter would merely complicate the already over complex API.

Thanks for the suggestions folks!

--
resolution:  -> rejected
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37588] Py_DEPRECATED and unavoidable warnings

2020-03-10 Thread Ben Boeckel


Ben Boeckel  added the comment:

I believe this to be a clang bug. I've filed an issue with upstream here: 
https://bugs.llvm.org/show_bug.cgi?id=45170

--
nosy: +mathstuf

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39763] distutils.spawn should use subprocess (hang in parallel builds on QNX)

2020-03-10 Thread Michael Felt


Michael Felt  added the comment:

OK. BEFORE I open a new issue, I am going to guess that something is wrong with 
finding _socket.so - because it exists, but "something" is not finding it.

Following modules built successfully but were removed because they could not be 
imported:^M
_asyncio   ^M
^M
running build_scripts^M
copying and adjusting /data/prj/python/git/python3-3.9/Tools/scripts/pydoc3 -> 
build/scripts-3.9^M
copying and adjusting /data/prj/python/git/python3-3.9/Tools/scripts/idle3 -> 
build/scripts-3.9^M
copying and adjusting /data/prj/python/git/python3-3.9/Tools/scripts/2to3 -> 
build/scripts-3.9^M
changing mode of build/scripts-3.9/pydoc3 from 644 to 755^M
changing mode of build/scripts-3.9/idle3 from 644 to 755^M
changing mode of build/scripts-3.9/2to3 from 644 to 755^M
renaming build/scripts-3.9/pydoc3 to build/scripts-3.9/pydoc3.9^M
renaming build/scripts-3.9/idle3 to build/scripts-3.9/idle3.9^M
renaming build/scripts-3.9/2to3 to build/scripts-3.9/2to3-3.9^M
xlc_r -c  -DNDEBUG -O -I/opt/include -O2 -qmaxmem=-1 -qarch=pwr5 
-I../git/python3-3.9/Include/internal -IObjects -IInclude -IPython -I. 
-I../git/python3-3.9/Include -I/opt/include   -DPy_BUILD_CORE -o 
Programs/_testembed.o ../git
/python3-3.9/Programs/_testembed.c^M
../git/python3-3.9/Modules/makexp_aix Modules/python.exp . libpython3.9.a;  
xlc_r /opt/lib/libintl.a -L/opt/lib -liconv -lexpat
-Wl,-bE:Modules/python.exp -lld -o Programs/_testembed Programs/_testembed.o 
libpython3.9.so -lintl -l
dl  -lm   -lm ^M

NOTE: The module was built successfully, but not found.

root@x065:[/data/prj/python/python3-3.9]find . -name _socket.so
./build/lib.aix-5307-0747-32-3.9/_socket.so

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39763] distutils.spawn should use subprocess (hang in parallel builds on QNX)

2020-03-10 Thread Michael Felt


Michael Felt  added the comment:

re: _socket - I'll start researching now, but it may still be related to this.

a) if it looks like related to this issue I'll add a some report here
b) in any case, as requested, I'll start a new issue - and leave it to you to 
decide to close that and continue here, or with the new issue.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20039] Missing documentation for argparse.ArgumentTypeError

2020-03-10 Thread Nicholas Chammas


Nicholas Chammas  added the comment:

Just a note that I also went looking for the docs for 
argparse.ArgumentTypeError after coming across it in this (highly viewed) post:

https://stackoverflow.com/a/14117511/877069

--
nosy: +nchammas

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38500] PEP 523: Add PyInterpreterState_SetEvalFrameFunc() to the public C API (Python 3.8 regression)

2020-03-10 Thread STINNER Victor


STINNER Victor  added the comment:

> I think you mean PEP 352? And a more formal proposal to withdraw would need 
> to be made and that has not happened, so assume the PEP is still accepted and 
> final.

I mean PEP 523 "Adding a frame evaluation API to CPython" as I wrote in the 
title, sorry for the typo :-)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38500] PEP 523: Add PyInterpreterState_SetEvalFrameFunc() to the public C API (Python 3.8 regression)

2020-03-10 Thread Brett Cannon


Brett Cannon  added the comment:

> Mark Shannon listed flaws in the PEP 532 and suggest to withdraw this PEP.

I think you mean PEP 352? And a more formal proposal to withdraw would need to 
be made and that has not happened, so assume the PEP is still accepted and 
final.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39832] Modules with decomposable characters in module name not found on macOS

2020-03-10 Thread Brett Cannon


Brett Cannon  added the comment:

Regardless of which module is proposed to solve this, there is still a 
bootstrapping issue to consider.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38500] Provide a way to get/set PyInterpreterState.frame_eval without needing to access interpreter internals

2020-03-10 Thread STINNER Victor


STINNER Victor  added the comment:

> Posted 
> https://mail.python.org/archives/list/python-...@python.org/thread/4UZJYAZL3NHRAGN5WAMJC4IHAHEXF3QF/
>  to see if anyone else wants to weigh in.

Mark Shannon listed flaws in the PEP 532 and suggest to withdraw this PEP. 
Honestly, I'm open to any solution. But this issue is a concrete regression of 
Python 3.8 with a concrete use case, whereas Mark only lists theoretical 
enhancements.

I would like to fix the regression first. There are users of the PEP 532, we 
cannot simply ignore them, withdraw the PEP and remove the feature immediately 
without warning users.

If someone wants to withdraw the PEP, it has to go through the regular 
deprecation process with a slow transition. Last time we pushed too many 
incompatible changes (Python 2 to Python 3 transition), it was a mess. 
Moreover, I would prefer to have at least one Python release (if not two or 
more) which provides two options, deprecated way and a new better way, to have 
a smooth transition.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38500] PEP 523: Add PyInterpreterState_SetEvalFrameFunc() to the public C API (Python 3.8 regression)

2020-03-10 Thread STINNER Victor


Change by STINNER Victor :


--
title: Provide a way to get/set PyInterpreterState.frame_eval without needing 
to access interpreter internals -> PEP 523: Add 
PyInterpreterState_SetEvalFrameFunc() to the public C API (Python 3.8 
regression)
versions:  -Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38500] Provide a way to get/set PyInterpreterState.frame_eval without needing to access interpreter internals

2020-03-10 Thread STINNER Victor


STINNER Victor  added the comment:

I plan to merge my PR 17340 at the end of week to not miss Python 3.9 feature 
freeze deadline, unless someone speaks up and find a good reason to not merge 
this PR. The PR adds a public C API PyInterpreterState_SetEvalFrameFunc() and 
now pass tstate to the frame evaluation function.

--

Mark Shannon is against the idea of providing a way to set the frame evaluation 
function (PEP 523), but Dino Viehland, Eric Snow, Brett Cannon and me want to 
provide a C API for that.

--

I propose to properly fix this issue in Python 3.9:

* Add a public C API to get and set the frame evaluation function
* Pass tstate to this frame evaluation function

Pass tstate is a backward incompatible change. But it's unclear to me if its 
API was part of the "public" C API in Python 3.7. In Python 3.8, 
PyInterpreterState structure moved to the internal C API which is clearly 
excluded from backward compatibility warranties of the public C API.

Anyway, I expect that they are less than 10 projects in the world which use the 
frame evaluation function, which it should be doable to update all of them to 
support the C API for Python 3.9 that I'm proposing.

--

> This is no longer possible because in 3.8 the PyInterpreterState is opaque, 
> so, Py_BUILD_CORE_MODULE needs to be defined defined and 
> "internal/pycore_pystate.h" must be included to set 
> PyInterpreterState.eval_frame.

The status quo is that Python 3.8.0, 3.8.1 and 3.8.2 have been released with 
that. If someone wants to support "Python 3.8", using Py_BUILD_CORE_MODULE to 
access the internal C API is the way to go. If we wanted to add a public C API 
in Python 3.8, IMHO we had to do it *before Python 3.8.0 release. Now it's way 
too late.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38818] Modify PyInterpreterState.eval_frame to pass tstate (PyThreadState)

2020-03-10 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +18260
pull_request: https://github.com/python/cpython/pull/17340

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38500] Provide a way to get/set PyInterpreterState.frame_eval without needing to access interpreter internals

2020-03-10 Thread STINNER Victor


STINNER Victor  added the comment:

I marked bpo-38818 "Modify PyInterpreterState.eval_frame to pass tstate 
(PyThreadState)" as a duplicate of this issue.

It has been said earlier that if we choose to add a public C API to set the 
frame evaluation function, it's better to design it properly from the start: so 
include tstate.

See https://vstinner.github.io/cpython-pass-tstate.html for the rationale 
behind passing tstate everywhere. See also multiple discussions on python-dev 
about passing explicitly tstate.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38818] Modify PyInterpreterState.eval_frame to pass tstate (PyThreadState)

2020-03-10 Thread STINNER Victor


STINNER Victor  added the comment:

I mark this issue as a duplicate of bpo-38500.

--
resolution:  -> duplicate
stage: patch review -> resolved
status: open -> closed
superseder:  -> Provide a way to get/set PyInterpreterState.frame_eval without 
needing to access interpreter internals

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35569] OSX: Enable IPV6_RECVPKTINFO

2020-03-10 Thread Erlend Egeberg Aasland


Erlend Egeberg Aasland  added the comment:

Thanks for testing @chrysn. I guess I should add unit tests if this is to be 
applied to master.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35569] OSX: Enable IPV6_RECVPKTINFO

2020-03-10 Thread chrysn


chrysn  added the comment:

Testing the application to current git master (on a borrowed machine with 
Darwin Kernel Version 18.5.0), the provided patch does enable the desired 
IPV6_RECVPKTINFO flag, and the received pktinfo struct complies to the spec.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34822] Simplify AST for slices

2020-03-10 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34822] Simplify AST for slices

2020-03-10 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 13d52c268699f199a8e917a0f1dc4c51e5346c42 by Serhiy Storchaka in 
branch 'master':
bpo-34822: Simplify AST for subscription. (GH-9605)
https://github.com/python/cpython/commit/13d52c268699f199a8e917a0f1dc4c51e5346c42


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39922] Remove unused args in Python/compile.c

2020-03-10 Thread Andy Lester


Andy Lester  added the comment:

Sorry about the noise.  I will do that.  Yes, I have a bunch more to submit.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39922] Remove unused args in Python/compile.c

2020-03-10 Thread Batuhan Taskaya


Batuhan Taskaya  added the comment:

IMHO if you are going to proceed with this kind of issues, it would be cool to 
create a meta issue and post updates/link PRs to it. You are creating an extra 
(and unnecessary) traffic in the "new bugs announce" list.

--
nosy: +Batuhan Taskaya

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38662] Decouple ensurepip from pip's internals using runpy

2020-03-10 Thread Miro Hrončok

Change by Miro Hrončok :


--
nosy: +hroncok
nosy_count: 7.0 -> 8.0
pull_requests: +18259
pull_request: https://github.com/python/cpython/pull/18901

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39869] Improve Instance Objects tutorial documentation

2020-03-10 Thread miss-islington


miss-islington  added the comment:


New changeset 5b29a82b13b65ca785bf296c91f253f3b5d6d694 by Miss Islington (bot) 
in branch '3.7':
bpo-39869: Fix typo in 'Instance objects' section. (GH-18889)
https://github.com/python/cpython/commit/5b29a82b13b65ca785bf296c91f253f3b5d6d694


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39869] Improve Instance Objects tutorial documentation

2020-03-10 Thread Mariatta


Change by Mariatta :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39869] Improve Instance Objects tutorial documentation

2020-03-10 Thread miss-islington


Change by miss-islington :


--
pull_requests: +18258
pull_request: https://github.com/python/cpython/pull/18900

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39869] Improve Instance Objects tutorial documentation

2020-03-10 Thread miss-islington


Change by miss-islington :


--
pull_requests: +18257
pull_request: https://github.com/python/cpython/pull/18899

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39869] Improve Instance Objects tutorial documentation

2020-03-10 Thread miss-islington


miss-islington  added the comment:


New changeset e5e56328afac50aad6d8893185d8e7ba8928afe2 by Antoine in branch 
'master':
bpo-39869: Fix typo in 'Instance objects' section. (GH-18889)
https://github.com/python/cpython/commit/e5e56328afac50aad6d8893185d8e7ba8928afe2


--
nosy: +miss-islington

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39918] random.Random(False) weird error

2020-03-10 Thread STINNER Victor


STINNER Victor  added the comment:

Fixed by:

New changeset 00d7cd8ab8db2c1e1f591ade828f88a1a973d70f by Victor Stinner in 
branch 'master':
bpo-38075: Fix random_seed(): use PyObject_CallOneArg() (GH-18897)
https://github.com/python/cpython/commit/00d7cd8ab8db2c1e1f591ade828f88a1a973d70f

--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39869] Improve Instance Objects tutorial documentation

2020-03-10 Thread miss-islington


Change by miss-islington :


--
pull_requests: +18256
pull_request: https://github.com/python/cpython/pull/18898

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38075] Make random module PEP-384 compatible

2020-03-10 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 00d7cd8ab8db2c1e1f591ade828f88a1a973d70f by Victor Stinner in 
branch 'master':
bpo-38075: Fix random_seed(): use PyObject_CallOneArg() (GH-18897)
https://github.com/python/cpython/commit/00d7cd8ab8db2c1e1f591ade828f88a1a973d70f


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39920] os.lstat() does not work with Window Dos devices

2020-03-10 Thread Steve Dower


Change by Steve Dower :


--
versions: +Python 3.7, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39920] os.lstat() does not work with Window Dos devices

2020-03-10 Thread Steve Dower


Steve Dower  added the comment:

This is an os.lstat() limitation, nothing to do with pathlib.

I'll defer to Eryk for suggestions here, since he probably knows the right 
answer already :) (if not, I'll go do the research to figure out what we're 
currently missing).

--
title: Pathlib path methods do not work with Window Dos devices -> os.lstat() 
does not work with Window Dos devices

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39857] subprocess.run: add an extra_env kwarg to complement existing env kwarg

2020-03-10 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +gregory.p.smith

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38075] Make random module PEP-384 compatible

2020-03-10 Thread STINNER Victor


STINNER Victor  added the comment:

Commit 04f0bbfbedf8d2bb69b012f853de6648b1a9f27f introduced a regression: 
bpo-39918.

I proposed PR 18897 to fix it.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38075] Make random module PEP-384 compatible

2020-03-10 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +18255
pull_request: https://github.com/python/cpython/pull/18897

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39918] random.Random(False) weird error

2020-03-10 Thread STINNER Victor


STINNER Victor  added the comment:

> Should that 0 in the PyObject_Vectorcall be a 1 instead?

Right. I proposed PR 18897 to fix it and add an unit test on seed(False).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39920] Pathlib path methods do not work with Window Dos devices

2020-03-10 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +eryksun

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39920] Pathlib path methods do not work with Window Dos devices

2020-03-10 Thread Eric V. Smith


Eric V. Smith  added the comment:

I know it's of limited use, but for me, this code works (returns True) on 
Cygwin versions 3.8.0b4 and 3.7.4.

On a native Windows build 3.8.0a0, I get the exception the OP shows.

I'll try and install comparable versions when I'm at a location with better 
connectivity.

--
components: +Windows
nosy: +eric.smith, paul.moore, steve.dower, tim.golden, zach.ware

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39857] subprocess.run: add an extra_env kwarg to complement existing env kwarg

2020-03-10 Thread Caleb Hattingh


Caleb Hattingh  added the comment:

The dict unpacking generalizations that I posted were added in Python 3.5, 
which is pretty old by now. (But, true, is in Python 3 and not Python 2). This 
is the PEP: https://www.python.org/dev/peps/pep-0448/

The new syntax that Brandt posted will indeed only be available from 3.9 on.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39915] await_args_list in AsyncMock always refers to the last awaited call object

2020-03-10 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Thanks for the report. At [0] self.call_args is used. This value is always the 
last call. So when the object is awaited it will be always the last call object 
and gets appended. The id of the call objects remain the same. The fix would be 
to construct the call object with args and kwargs in asynchronous definition of 
_execute_mock_call like [1]. This would need tests too. It seems there is only 
test for one await call and assertion over await_args_list. Having different 
args and kwargs with multiple await to assert await_args_list would help here. 
In synchronous case the call object is eagerly appended so it won't be an issue.

[0] 
https://github.com/python/cpython/blob/8510f430781118d9b603c3a2f06945d6ebc5fe42/Lib/unittest/mock.py#L2174
[1] 
https://github.com/python/cpython/blob/8510f430781118d9b603c3a2f06945d6ebc5fe42/Lib/unittest/mock.py#L1106

A potential patch would be as below : 

diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py
index 9e692981a2..20daf724c1 100644
--- a/Lib/unittest/mock.py
+++ b/Lib/unittest/mock.py
@@ -2171,7 +2171,7 @@ class AsyncMockMixin(Base):
 # This is nearly just like super(), except for special handling
 # of coroutines
 
-_call = self.call_args
+_call = _Call((args, kwargs), two=True)
 self.await_count += 1
 self.await_args = _call
 self.await_args_list.append(_call)

--
nosy: +cjw296, mariocj89, michael.foord
title: AsyncMock doesn't work with asyncio.gather -> await_args_list in 
AsyncMock always refers to the last awaited call object

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-03-10 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 8510f430781118d9b603c3a2f06945d6ebc5fe42 by Victor Stinner in 
branch 'master':
bpo-1294959: Add sys.platlibdir attribute (GH-18381)
https://github.com/python/cpython/commit/8510f430781118d9b603c3a2f06945d6ebc5fe42


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39915] AsyncMock doesn't work with asyncio.gather

2020-03-10 Thread Mads Sejersen


Mads Sejersen  added the comment:

It can actually be boiled down to an even more minimal example. It looks like 
the problem is that the function call is stored for later when called, then 
overwritten by other subsequent calls. Then, once awaited, the latest 
registered call is added to the await_args_list instead of the call that 
actually happened.

```
import asyncio
from unittest.mock import AsyncMock


async def main():
foo = AsyncMock()

foo1 = foo(1)
foo2 = foo(2)
await foo1
await foo2
print(foo.await_args_list)


asyncio.run(main())
```

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32803] smtplib: LMTP broken in the case of multiple RCPT

2020-03-10 Thread Jacob Middag


Change by Jacob Middag :


--
keywords: +patch
nosy: +middag
nosy_count: 2.0 -> 3.0
pull_requests: +18253
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/18896

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39828] json.tool should catch BrokenPipeError

2020-03-10 Thread STINNER Victor


STINNER Victor  added the comment:

Thanks Dong-hee Na for the fix.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39828] json.tool should catch BrokenPipeError

2020-03-10 Thread miss-islington


miss-islington  added the comment:


New changeset 633957d7e3f926e20fed023c635ae2216efd2198 by Dong-hee Na in branch 
'3.7':
[3.7] bpo-39828: Fix json.tool to catch BrokenPipeError (GH-18779). (GH-18895)
https://github.com/python/cpython/commit/633957d7e3f926e20fed023c635ae2216efd2198


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39828] json.tool should catch BrokenPipeError

2020-03-10 Thread miss-islington


miss-islington  added the comment:


New changeset caec8a0dfbed04bdb8567782fdff7537529d2232 by Dong-hee Na in branch 
'3.8':
[3.8] bpo-39828: Fix json.tool to catch BrokenPipeError (GH-18779). (GH-18894)
https://github.com/python/cpython/commit/caec8a0dfbed04bdb8567782fdff7537529d2232


--
nosy: +miss-islington

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39828] json.tool should catch BrokenPipeError

2020-03-10 Thread Dong-hee Na


Change by Dong-hee Na :


--
pull_requests: +18252
pull_request: https://github.com/python/cpython/pull/18895

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-03-10 Thread STINNER Victor


STINNER Victor  added the comment:

lib64_tests-3.py: Updated script to handle different ABI flags (release vs 
debug mode).

--
Added file: https://bugs.python.org/file48966/lib64_tests-3.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39828] json.tool should catch BrokenPipeError

2020-03-10 Thread Dong-hee Na


Change by Dong-hee Na :


--
pull_requests: +18251
pull_request: https://github.com/python/cpython/pull/18894

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39837] Remove Azure Pipelines from GitHub PRs

2020-03-10 Thread Ned Deily


Ned Deily  added the comment:


New changeset b092892f9afd37fd3355b1e91fc5835f196ea914 by Ned Deily (Miss 
Islington (bot)) in branch '3.7':
bpo-39837: Disable macOS tests on Azure Pipelines (GH-18818)
https://github.com/python/cpython/commit/b092892f9afd37fd3355b1e91fc5835f196ea914


--
nosy: +ned.deily

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39808] pathlib: reword docs for stat()

2020-03-10 Thread Ned Deily


Ned Deily  added the comment:


New changeset c157edb73b234409263ca0d7b6b41ad5f0b455d6 by Ned Deily (Miss 
Islington (bot)) in branch '3.7':
[3.7] bpo-39808: Improve docs for pathlib.Path.stat() (GH-18719) (GH-18782)
https://github.com/python/cpython/commit/c157edb73b234409263ca0d7b6b41ad5f0b455d6


--
nosy: +ned.deily

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   >