[Python-ideas] Re: PEP 671: Syntax for late-bound function argument defaults
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 such as "late" or "defer". Others? I believe Chris currently favors a. Please. I have more than once advocated x:=default (and there is no clash with the walrus operator, even if others have said/implied that there is). Rob Cliffe ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/M2DYBFTF4NDAEQK7AIW2ZMNRJWNT5IJQ/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-ideas] Re: request for new Executor in `concurrent.futures`
Are you looking for ProcessPoolExecutor(mp_context=multiprocessing.get_context("fork")) ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/5QZXOUWTCRFZN4YUWYQQKSVPZDEEXIJU/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-ideas] request for new Executor in `concurrent.futures`
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 Executor `UnixForkExecutor` which is based on `os.fork` and shared memory (to return future). The drawback of UnixForkExecutor can only be used on Unix platform. This is not a problem, because the majority people use python for parallel computing on Unix platform. Anyone have any opinion about it? ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/BBG6NAQBCSSLRXB275FBOEGA7OFY7ZPD/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-ideas] pickling decorated function
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 parallel computing. ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/DBY6JC2ZBROEV76WJFDJAQZKZD3QM5MB/ Code of Conduct: http://python.org/psf/codeofconduct/