[Python-ideas] pickling decorated function

2021-11-08 Thread Evan Greenup via Python-ideas
Currently pickling decorated function is impossible due to name collision. Because the decorated function is what we want, so it would be nice to add syntax sugar in Python to automatically rename original function with random generated prefix or suffix. This can greatly help the application of

[Python-ideas] request for new Executor in `concurrent.futures`

2021-11-08 Thread Evan Greenup via Python-ideas
Currently, There is two types of Executor in `concurrent.futures`. They are `ThreadPoolExecutor` and `ProcessPoolExecutor`, there is GIL limitation of `ThreadPoolExecutor` and `ProcessPoolExecutor` need to use `pickle` which have limitation on decorated function. It would be nice to add new Exe

[Python-ideas] Re: request for new Executor in `concurrent.futures`

2021-11-08 Thread Mark Gordon
Are you looking for ProcessPoolExecutor(mp_context=multiprocessing.get_context("fork")) ___ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-i

[Python-ideas] Re: PEP 671: Syntax for late-bound function argument defaults

2021-11-08 Thread Rob Cliffe via Python-ideas
On 05/11/2021 15:57, Stephen J. Turnbull wrote: Still on the agenda as far as I can see: 1. Syntax. The proposals I can recall are a. x=>default b. *x=default c. x=@default d. maybe putting * or @ on the opposite component in b and c? e. a keyword before default