Re: Duplicate function in thread_pthread.h

2019-05-27 Thread Inada Naoki
Do you know C macros? Two implementations is switched by USE_SEMAPHORES. #ifdef USE_SEMAPHORES ... void PyThread_free_lock(PyThread_type_lock lock) ... #else /* USE_SEMAPHORES */ ... void PyThread_free_lock(PyThread_type_lock lock) ... #endif /* USE_SEMAPHORES */ On Tue, May 28, 2019 at 12:58 PM

Duplicate function in thread_pthread.h

2019-05-27 Thread Windson Yang
When I try to understand the code about the thread. I found the thread_pthread.h file has some duplicate functions. Like `PyThread_free_lock`, `PyThread_release_lock`, `PyThread_acquire_lock_timed`. IIUC, C doesn't support function overload. So why we have functions with the same name and args? --

Re: How to use ssh-agent in windows in python?

2019-05-27 Thread Fc Zwtyds
在 2019-05-27 18:59, coldpizza 写道: example code for doing it in pure python: http://code.activestate.com/recipes/576810-copy-files-over-ssh-using-paramiko/ Thank you very much and the information you recommended, I will take the time to learn it: paramiko -- https://mail.python.org/mailman/l

Re: How to use ssh-agent in windows in python?

2019-05-27 Thread Fc Zwtyds
在 2019-05-27 11:19, Cameron Simpson 写道: On 27May2019 08:22, Fc Zwtyds wrote: Thank you very much for your detailed answer. I will try to learn how to capture and parse the output of "ssh-agent -s" and learn how to talk to the agent. The output of "ssh-agent -s" is Bourne shell variable assig

Re: How to use ssh-agent in windows in python?

2019-05-27 Thread coldpizza
example code for doing it in pure python: http://code.activestate.com/recipes/576810-copy-files-over-ssh-using-paramiko/ -- https://mail.python.org/mailman/listinfo/python-list