TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The Fundamental Problem in Python 3

49 pointsby psibiover 5 years ago

8 comments

miklover 5 years ago
&quot;Python does not cater to my favourite edge case&quot; != fundamental problem<p>In the days before UTF-8-everywhere, file names with anything besides alphanumerics and safe symbols like dashes or underscores were always a problem. If you had special characters in your filenames, you were almost certain to run in to problems, since their meaning varied greatly depending on how the system was set up - codepages and whatnot.<p>But this is only a problem if you have such files, and unless you’ve kept files around for decades, you don’t. So young programmers can grow up never having problems with this. Everything will be UTF-8 and it’ll just work.<p>And as for broken old file names, who cares? Fix your file names and move on. There’s no reason that Python 3 should have workarounds for problems that were solved over a decade ago.
评论 #21842295 未加载
评论 #21844851 未加载
oefrhaover 5 years ago
Just a rehash of<p><a href="https:&#x2F;&#x2F;changelog.complete.org&#x2F;archives&#x2F;10053-the-incredible-disaster-of-python-3" rel="nofollow">https:&#x2F;&#x2F;changelog.complete.org&#x2F;archives&#x2F;10053-the-incredible...</a><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=21606416" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=21606416</a><p>Arguing that python3’s str model doesn’t work well with POSIX’s “any bag of bytes can be a filename” model. Plus new rants about surrogateescape which the author has learned since publishing the last article.<p>The author sure has a penchant for flamebait titles.
评论 #21842117 未加载
评论 #21844872 未加载
adrian17over 5 years ago
&quot;into what is fundamentally a weakly-typed, dynamic language.&quot;<p>Nit: isn&#x27;t Python generally considered to be strongly, dynamically typed?
评论 #21842181 未加载
评论 #21842223 未加载
评论 #21842184 未加载
评论 #21842122 未加载
krestenover 5 years ago
It takes a specific type of personality to remain angry about Python 3 in Dec 2019.<p>Didn’t that story finish?
评论 #21842126 未加载
评论 #21842132 未加载
评论 #21842301 未加载
xapataover 5 years ago
Use pathlib?
smitty1eover 5 years ago
The lack of any Pathlib discussion seemed curious.
kthejoker2over 5 years ago
&gt; This was the most common objection raised to my prior post. “Get over it, the world’s moved on.”<p>Gee I wonder why ...
goatinaboatover 5 years ago
The truth is that 99% of programmers can do everything they need to in ASCII and the other 1% are working on tools to handle Unicode itself. It’s a mistake and as soon as it goes the way of the &lt;blink&gt; tag the better. At least that tag was amusing for a short while...
评论 #21842302 未加载