[Python-ideas] Re: Control adding script path/CWD to sys.path

2020-02-26 Thread Brianvanderburg2 via Python-ideas
ython.org Sent: Mon, Feb 24, 2020 2:52 pm Subject: Re: [Python-ideas] Control adding script path/CWD to sys.path On Mon, Feb 24, 2020 at 11:51 AM Brianvanderburg2 via Python-ideas wrote: When running a python script directly, the directory of that script gets added to sys.path.  When running as

[Python-ideas] Control adding script path/CWD to sys.path

2020-02-24 Thread Brianvanderburg2 via Python-ideas
This is just an idea, which may not in practice be a major problem but can at times be an inconvenience.  I thought I had posted this in the "python -m" thread a little while back but checking my history it does't appear I did, I do apologize if this is a duplicate. When running a python script

[Python-ideas] Re: Asyncio Future.set_result_threadsafe

2020-02-13 Thread Brianvanderburg2 via Python-ideas
I agree that is counter to the basic philosophy, though there are potential use cases where it may be unavoidable to use threads.  It seems the best solutions when it is then are to use run_in_executor, which automatically handles the waking up of the loop.  While the Queue object doesn't work w