News for hackers. Stuff that matters.
Re:Xz: Can you spot the single character that disabled Linux... by tomoyoirl on Saturday March 30, 2024 @07:32PM (#39879692)
“The thing that controls scope is the count of certain nonprinting characters, which happen to come in multiple widths” is reasonably insane, yes
Re:Xz: Can you spot the single character that disabled Linux... by eru on Saturday March 30, 2024 @10:16PM (#39880734)
Which non-printing characters are you talking about? Whitespace characters are very much printable.

Yes, I agree that Python should just forbid tabs. As a second best, you can tell your linter (and/or formatter) to forbid tabs (and any weird unicode whitespace). That's basically the equivalent of compiling your C with -Wall.

Re:Xz: Can you spot the single character that disabled Linux... by takeda on Sunday March 31, 2024 @02:44AM (#39881994)
This was an issue in Python 2, where for some dumb reason it allowed mixing tabs and spaces and equated tab to 8 spaces (I think). Python 3 doesn't have that issue.
Re:Xz: Can you spot the single character that disabled Linux... by capitainenemo on Sunday March 31, 2024 @03:41PM (#39887361)
Of course, if one was coding an exploit, one could still use python2. It is still commonly available due to a long tail of legacy scripts and in some cases (like a script I use routinely but didn't write) the difficulty of porting it to python3 (I've asked over a dozen pythonistas over the years, they kept running into same problems)