Victor Stinner

Results 408 comments of Victor Stinner

```pycon $ ./python Python 3.10.0a0 (heads/unicode_latin1:40855c7064, Jun 24 2020, 00:20:07) >>> import select >>> select.epoll.register.__text_signature__ '($self, /, fd,\n eventmask=select.EPOLLIN | select.EPOLLPRI | select.EPOLLOUT)' >>> import inspect >>> inspect.signature(select.epoll.register) ``` =\>...

Sadly, I don't have the bandwidth to work on this issue, so I just close it.

The issue #99083 was marked as a duplicate of this issue.

I created https://python-security.readthedocs.io/vuln/slow-idna-large-strings.html to track this vulnerability. The fix is not merged into 3.8 and 3.9 branches yet.

For the specific case of sub-interpreters, maybe sub-interpreters must not be allowed to call openlog() and closelog()? But for the simple case of a single intereterpreter but loading the C...

For example, the Python ``socket.socket`` module has an ``_io_refs`` reference counter: it's used to decide when ``sock.close()`` will really close the underlying "raw" socket (C ``_socket.socket`` module).

> Oh, I can avoid this problem by setting Py_LIMITED_API to 0x30300000 or greater. Hum, maybe the behavior is different because of the following code in [Include/modsupport.h](https://github.com/python/cpython/blob/main/Include/modsupport.h): ```c /* Due...

See also bpo-40943: PEP-353: Drop support for PyArg_ParseTuple() format when PY_SSIZE_T_CLEAN is not defined.

> So, how do I fix this so it works again like in python3.8 ? Modify the extension to use Py_ssize_t and define PY_SSIZE_T_CLEAN macro.