Re: [Python-Dev] bpo-34837: Multiprocessing.Pool API Extension - Pass Data to Workers w/o Globals

2018-10-18 Thread Chris Jerdonek
On Thu, Oct 18, 2018 at 9:11 AM Michael Selik wrote: > On Thu, Oct 18, 2018 at 8:35 AM Sean Harrington wrote: >> Further, let me pivot on my idea of __qualname__...we can use the `id` of >> `func` as the cache key to address your concern, and store this `id` on the >> `task` tuple (i.e. an inte

Re: [Python-Dev] LibSSH Vulnerability

2018-10-18 Thread João Santos
Slightly Off-Topic, but more relevant for python developers. Paramiko also had a very similar vulnerability: https://github.com/paramiko/paramiko/issues/1283. On Thu, 18 Oct 2018 at 18:56, Antoine Pitrou wrote: > On Thu, 18 Oct 2018 17:41:29 +0100 > MRAB wrote: > > I wondered if any of you have

Re: [Python-Dev] wininst-*.exe files in Lib/distutils/command

2018-10-18 Thread VanL
Primarily for non-windows platforms, but I also think for Windows users without any compilers or similar tools installed. There is also some discussion of removing some of the older toolchain-specific versions (leaving only -14), but that is a subject for another day. Also I am not sure that bug r

Re: [Python-Dev] LibSSH Vulnerability

2018-10-18 Thread Antoine Pitrou
On Thu, 18 Oct 2018 17:41:29 +0100 MRAB wrote: > I wondered if any of you have heard of this: > > Hacker: I'm logged in. New LibSSH Vulnerability: OK! I believe you. > https://www.bleepingcomputer.com/news/security/hacker-im-logged-in-new-libssh-vulnerability-ok-i-believe-you/ AFAIK, this doesn'

Re: [Python-Dev] bpo-34837: Multiprocessing.Pool API Extension - Pass Data to Workers w/o Globals

2018-10-18 Thread Michael Selik
One idea would be for the Pool method to generate a uuid and slap it on the function as an attribute. If a function being passed in doesn't have one, generate one. If it already has one, just pass that instead of pickling. The child process will keep a cache mapping uuids to functions. I'm still w

[Python-Dev] LibSSH Vulnerability

2018-10-18 Thread MRAB
I wondered if any of you have heard of this: Hacker: I'm logged in. New LibSSH Vulnerability: OK! I believe you. https://www.bleepingcomputer.com/news/security/hacker-im-logged-in-new-libssh-vulnerability-ok-i-believe-you/ ___ Python-Dev mailing list Py

Re: [Python-Dev] wininst-*.exe files in Lib/distutils/command

2018-10-18 Thread Petr Viktorin
On 10/18/18 4:40 PM, Zachary Ware wrote: On Thu, Oct 18, 2018 at 9:09 AM VanL wrote: Hi all, I am looking into an issue associated with the wininst-*.exe files in the distutils/command subdirectory. It looks like these are the executable stubs used to create self-extracting zips for installa

Re: [Python-Dev] bpo-34837: Multiprocessing.Pool API Extension - Pass Data to Workers w/o Globals

2018-10-18 Thread Michael Selik
On Thu, Oct 18, 2018 at 8:35 AM Sean Harrington wrote: > The most common use case comes up when passing instance methods (of really > big objects!) to Pool.map(). > This reminds me of that old joke: "A patient says to the doctor, 'Doctor, it hurts when I ...!' The doctor replies, 'Well, don't do

Re: [Python-Dev] bpo-34837: Multiprocessing.Pool API Extension - Pass Data to Workers w/o Globals

2018-10-18 Thread Sean Harrington
You have correctly identified the summary of my intentions, and I agree with your reasoning & concern - however there is a somewhat reasonable answer as to why this optimization has never been implemented: In Pool, the `task` tuple consists of (result_job, func, (x,), {}) . This is the object tha

Re: [Python-Dev] wininst-*.exe files in Lib/distutils/command

2018-10-18 Thread VanL
Thank you all, this gives me what I need. Sorry I missed the source in the the PC/ directory. Thanks, Van On Thu, Oct 18, 2018 at 9:41 AM Zachary Ware wrote: > On Thu, Oct 18, 2018 at 9:09 AM VanL wrote: > > Hi all, > > > > I am looking into an issue associated with the wininst-*.exe files in

Re: [Python-Dev] wininst-*.exe files in Lib/distutils/command

2018-10-18 Thread Zachary Ware
On Thu, Oct 18, 2018 at 9:09 AM VanL wrote: > Hi all, > > I am looking into an issue associated with the wininst-*.exe files in the > distutils/command subdirectory. It looks like these are the executable stubs > used to create self-extracting zips for installation - but I am not 100% > sure. I

Re: [Python-Dev] wininst-*.exe files in Lib/distutils/command

2018-10-18 Thread Paul Moore
They are for the distutils bdist_wininst command (mostly obsolete now, wheels are the preferred binary distribution format these days). The source appears to be in PC\bdist_wininst in the CPython repository. Paul On Thu, 18 Oct 2018 at 15:10, VanL wrote: > > Hi all, > > I am looking into an issue

[Python-Dev] wininst-*.exe files in Lib/distutils/command

2018-10-18 Thread VanL
Hi all, I am looking into an issue associated with the wininst-*.exe files in the distutils/command subdirectory. It looks like these are the executable stubs used to create self-extracting zips for installation - but I am not 100% sure. It also looks like they include the calls to standard Window