Re: Lengthy numbers (Posting On Python-List Prohibited)

Liste des GroupesRevenir à cl python 
Sujet : Re: Lengthy numbers (Posting On Python-List Prohibited)
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.python
Date : 21. Dec 2024, 22:03:52
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vk7afo$7g01$2@dont-email.me>
References : 1
User-Agent : Pan/0.161 (Chasiv Yar; )
On Sat, 21 Dec 2024 11:49:30 GMT, Gilmeh Serda wrote:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: Exceeds the limit (4300 digits) for integer string
conversion;
use sys.set_int_max_str_digits() to increase the limit
>
Explanation:
https://discuss.python.org/t/int-str-conversions-broken-in-latest-python-bugfix-releases/18889

This is a feature, not a bug. It’s to guard against an attacker
exhausting system resources (CPU) by forcing the execution of an O(N²)
operation with large N.

Date Sujet#  Auteur
21 Dec22:03 o Re: Lengthy numbers (Posting On Python-List Prohibited)1Lawrence D'Oliveiro

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal