Victor Stinner

Results 702 comments of Victor Stinner

Is it related to https://bugs.python.org/issue41034 ?

test_builtin.test_input_tty() calls forkpty(), whereas recent macOS versions are known to have issues with fork(). forkpty() manual page: > The forkpty() function combines openpty(), fork(2), and login_tty() to create a new...

Can't we move most of `Include/cpython/optimizer.h` contents to the internal C API? Is there a reason to expose it? I mean, the private functions (named prefixed by `_Py`).

> Fallback to the previous tokenizer-based REPL if the terminal is not a tty (and for backwards compat reasons) Do you mean not using _pyrepl? Can _pyrepl be used without...

> _datetime needs rationales if per-interpreter heaptypes are required. If you contact me in private, I propose to discuss it with you.

> Whoa. I do not think there is sufficient agreement on this in the discussion. I did my best to record all opinions in the Rejected Ideas. The PEP is...

If this PEP is accepted, I plan to attempt to write a backport for Python 3.8-3.12 in my experimental [deadparrot project](https://github.com/vstinner/deadparrot): shared library providing a compatibility layer between old/new C...

Closed in favor of the new submission: https://github.com/python/steering-council/issues/246.

Without this change, the test is skipped: ``` $ ./python -m test test_ioctl -j1 (...) test_ioctl skipped -- Unable to open /dev/tty ``` With the change, the test is no...

Test on fork+setsid: ```py import io import os def check_tty(context): try: f = io.FileIO("/dev/tty", "a") tty = f.isatty() f.close() except OSError as exc: print(f"{context}: Is a TTY? {exc}") else: print(f"{context}:...