zlacker

[return to "Resurrecting Crimsonland – Decompiling and preserving a cult 2003 classic game"]
1. romper+TS9[view] [source] 2026-02-04 10:36:37
>>banteg+(OP)
All modern AI tools tend to put `from __future__ import annotations` line into Python code which isn't required by recent Python versions.

I guess this is because they all are trained on an intermediate code bases when this was required some times (even at that time the real usage was quite rare).

And now this line is parroting everywhere like a junk DNA :)

◧◩
2. sevens+Oea[view] [source] 2026-02-04 13:16:14
>>romper+TS9
I am not an AI and I missed the memo on this. I put that line in whenever I need to use a forward-declared type annotation. Last I recall reading about it, there were some deep issues that meant it had to stay in __future__ indefinitely. Is there a PEP / release note about it?
◧◩◪
3. romper+R6f[view] [source] 2026-02-05 19:48:43
>>sevens+Oea
Oh, I was very wrong, my apologies!

I was sure this one was for Python from 3.7 up to 3.10. But it is still here.. But as for 2026 it will not stay forever as it was supposed to - there are 2 PEPs which are suppose to fix it in Python 3.14 - https://peps.python.org/pep-0649/ and https://peps.python.org/pep-0749/

[go to top]