Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 43 |
Nodes: | 6 (0 / 6) |
Uptime: | 103:38:18 |
Calls: | 290 |
Files: | 905 |
Messages: | 76,595 |
Traceback (most recent call last):9**9**2 196627050475552913618075908526912116283103450944214766927315415537966391196809
9**9**3 439328503696464329829774782657072712058010308177126710621676697750466344744764 029773301412612482563729435064854354299095570379503452515853238520182740967398 746503532324400000659505126023955913142968176998364877699089666171297275956245 407453033190168644894850576346492691458695174281789557994923607783461486426448 617667076393901104477324982631297641034277093818692823488603426279473674368943 609268871793467206677285688478458498235002859256706389043030847945506577080623 430066283504397583789044245429585982964571774605868466160379567432725704121260 940939343217905975847365096315872153240969882363435363449775254393010368267343 970426230801390250903399147001650831878665172798468587509747439118815689
9**9**4
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
not a bug.
x = [0]; x.extend(iter(x))
To solve that problem conversions from string->int and
int->string were disallowed.
On Sat, 21 Dec 2024 21:03:52 -0000 (UTC), Lawrence D'Oliveiro wrote:
This is a feature, not a bug.
Who said anything about a bug?
So in theory, this would crank out an infinite list that looks like
[0, 0, 0, 0, ...]. In the real world, though, if you try to print or
use this list, your program will probably freeze up faster than the
405 at rush hour.
ram@zedat.fu-berlin.de (Stefan Ram) writes:
So in theory, this would crank out an infinite list that looks likeThe freeze-up happens as soon as you create the list.
[0, 0, 0, 0, ...]. In the real world, though, if you try to print or
use this list, your program will probably freeze up faster than the
405 at rush hour.