TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

How Python is evolving

2 点作者 MilnerRoute超过 1 年前

1 comment

eesmith超过 1 年前
&gt; Salgado remembered [adding &#x27;@&#x27;] when “we actually changed the language to help these communities… that was mainly for the data science people,” where this operation is very commonly used.<p>For a bit of ancient history, the first time this happened was back in the 1990s for 1.4beta2. From Misc&#x2F;HISTORY:<p><pre><code> - Changes for use with Numerical Python: built-in function slice() and Ellipses object, and corresponding syntax: x[lo:hi:stride] == x[slice(lo, hi, stride)] x[a, ..., z] == x[(a, Ellipses, z)] </code></pre> That one change, IMO, made Python significantly more useful for numerical computing and data science people.<p>I think &quot;@&quot; is the second time this happened. Did I miss one?<p>(Perhaps third, if we count adding the __index__ method from PEP 357.)