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.

PEP 572 and decision-making in Python

131 pointsby corbetalmost 7 years ago

4 comments

liquidisealmost 7 years ago
My armchair analysis of this today has exposed, to me, the serious risks of bikeshedding[0] taken to an extreme. So much contentious debate about 1-3 character syntax preferences. The consequences from the debate being deeply more impactful than any of the proposed options in the first place.<p>0: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Law_of_triviality" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Law_of_triviality</a>
评论 #17519466 未加载
SloopJonalmost 7 years ago
This cracked me up:<p>&quot;Python has different operators for bitwise and logical operations which C should copy (already copied with iso646.h except if you try to use them, men will stop shaking hands with you).&quot;<p>Slightly related: I noticed the other day that VS Code does not highlight and, or, et al. as keywords in a C++ program.
ehsankiaalmost 7 years ago
They have a list of proposals for syntax, but &quot;as&quot; keyword isn&#x27;t there. In the last thread I saw, people claimed that it would be confusing in the with-statement, but I have a hard time seeing why. In a with statement, the context manager in my eyes is a property of the with-statement, not the as-statement. You&#x27;re basically doing `with fp = open():`. Does anyone have a good example of why &quot;as&quot; was a bad candidate?
评论 #17518689 未加载
评论 #17518559 未加载
steve19almost 7 years ago
And Van Rossum has just quit without naming a successor or giving any guidance on how python should be governed!<p><a href="https:&#x2F;&#x2F;www.mail-archive.com&#x2F;python-committers@python.org&#x2F;msg05628.html" rel="nofollow">https:&#x2F;&#x2F;www.mail-archive.com&#x2F;python-committers@python.org&#x2F;ms...</a>
评论 #17518497 未加载
评论 #17518256 未加载