[issue43092] Python installation fails to install pip3 if pip, setuptools in ~/.local

2021-02-01 Thread Daniel Colascione
New submission from Daniel Colascione : The ensurepip module in the Python distribution bootstraps the pip package manager. The Python build system runs this module during installation so that the resulting Python installation is ready to install packages. Right now, the pip command

[issue32146] multiprocessing freeze_support needed outside win32

2017-11-27 Thread Daniel Colascione
New submission from Daniel Colascione <dan...@dancol.org>: multiprocessing's freeze_support makes freshly-launched subprocesses integrate correctly until the multiprocessing ecosystem even when the main executable is some application binary instead of a Python interpreter. The documen

[issue31654] ctypes should support atomic operations

2017-10-01 Thread Daniel Colascione
Daniel Colascione <dan...@google.com> added the comment: On Sun, Oct 1, 2017 at 2:01 PM, Antoine Pitrou <rep...@bugs.python.org> wrote: > Perhaps other core developers will disagree with me and agree to include > (i.e. review, maintain) this functionality. I simpl

[issue31654] ctypes should support atomic operations

2017-10-01 Thread Daniel Colascione
Daniel Colascione <dan...@google.com> added the comment: On Sun, Oct 1, 2017 at 2:01 PM, Antoine Pitrou <rep...@bugs.python.org> wrote: > > Antoine Pitrou <pit...@free.fr> added the comment: > > Le 01/10/2017 à 21:51, Daniel Colascione a écrit : > > &g

[issue31654] ctypes should support atomic operations

2017-10-01 Thread Daniel Colascione
Daniel Colascione <dan...@google.com> added the comment: On Sun, Oct 1, 2017 at 11:12 AM, Antoine Pitrou <rep...@bugs.python.org> wrote: > > Antoine Pitrou <pit...@free.fr> added the comment: > > Le 01/10/2017 à 20:04, Daniel Colascione a écrit : > > >

[issue31654] ctypes should support atomic operations

2017-10-01 Thread Daniel Colascione
Daniel Colascione <dan...@google.com> added the comment: On Sun, Oct 1, 2017 at 11:14 AM, Antoine Pitrou <rep...@bugs.python.org> wrote: > > Antoine Pitrou <pit...@free.fr> added the comment: > > Note that if there is already a C API to perform atomic ops, you can

[issue31654] ctypes should support atomic operations

2017-10-01 Thread Daniel Colascione
Daniel Colascione <dan...@google.com> added the comment: On Oct 1, 2017 10:46 AM, "Antoine Pitrou" <rep...@bugs.python.org> wrote: Antoine Pitrou <pit...@free.fr> added the comment: While the use case is reasonable (if specialized), It's not that specialized. Y

[issue31654] ctypes should support atomic operations

2017-10-01 Thread Daniel Colascione
Daniel Colascione <dan...@google.com> added the comment: On Oct 1, 2017 10:19 AM, "Raymond Hettinger" <rep...@bugs.python.org> wrote: Raymond Hettinger <raymond.hettin...@gmail.com> added the comment: > Compare-and-exchange is sufficient for avoiding the GI

[issue31654] ctypes should support atomic operations

2017-09-30 Thread Daniel Colascione
New submission from Daniel Colascione <dan...@google.com>: Say we're using multiprocessing to share a counter between two processes and we want to atomically increment that counter. Right now, we need to protect that counter with a multiprocessing semaphore of some sort, then 1) a

[issue31653] Don't release the GIL if we can acquire a multiprocessing semaphore immediately

2017-09-30 Thread Daniel Colascione
New submission from Daniel Colascione <dan...@google.com>: Right now, the main loop in semlock_acquire looks like this: do { Py_BEGIN_ALLOW_THREADS if (blocking && timeout_obj == Py_None) res = sem_wait(self->handle); else if (!blocking

[issue17213] ctypes loads wrong version of C runtime, leading to error message box from system

2013-02-15 Thread Daniel Colascione
New submission from Daniel Colascione: Suppose we're running a Python program in an environment where PATH contains a directory that contains msvcr90.dll version A and that python27.exe is manifested to use msvcr90.dll version B, which is available in the SxS store but not on PATH. Normally

[issue3275] Control flow not optimized

2008-07-03 Thread Daniel Colascione
New submission from Daniel Colascione [EMAIL PROTECTED]: Consider: import dis def foo(): if 0 and 1: return hi dis.dis(foo) What I get is 2 0 LOAD_CONST 1 (0) 3 JUMP_IF_FALSE 15 (to 21) 6 POP_TOP 7