Currently, when what to execute external command, either os.system() or
subprocess functions should be invoked.
However, it is not so convenient, it would be nice to use "``" symbol to brace
the shell command inside.
like:
stdout_result_str = `cat file.txt | sort | grep hello`
Its is enhanced
Currently, pickle can only save some very simple data types into bytes.
And the object itself contains reference to some builtin data or variable, only
reference will be saved.
I am wondering if it is possible recursively persist all the data into pickle
representation. Even if some data might
Currently, in Python 3.9, `dbm.open()`, `dbm.gnu.open()` and `dbm.ndbm.open()`
doesn't support path-like object, class defined in `pathlib`.
It would be nice to add support with it.
Sent with ProtonMail Secure Email.
___
Python-ideas mailing list -- py
For StreamRequetHandler's rfile attribute, it will block when the read readline
readlines reach the end.
It would be nice to add non-blocking read because the seek() is unavailable for
rfile. and there is no other way to detect if it is ended.
When the stream is empty and waiting for new input,
It would be nice to add the following syntax sugar in Python "Print and Eval"
like `ptev a == b` It is same as `statement = "a == b"; print(f"{statement} ?
{eval(statement)}")`.
It would super nice for debugging and other research project.
___
Python
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
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
Hi,
Currrently, is it allowed for process worker to submit new task to its parent
executor?
Considering the following Python script:
```python3
import concurrent.futures
with concurrent.futures.ProcessPoolExecutor(max_workers=12) as ppe:
def hello(n: int) -> int:
if n == 0:
Dear All
Python is a "glue" language, its dynamic nature has programming advantage and
performance disadvantage.
The best way to use Python is write Python code for high-level stuff and use
native programming language like C, Rust, Zig, V for low level stuff.
Currently, there is library like P