Python 3.8 即将发布了.

2019-10-08 09:47:32 +08:00
 watsy0007

准备升级了....

python 3.8 release date

3.8.0 candidate 2: Monday, 2019-10-07 (if necessary)
3.8.0 final: Monday, 2019-10-14 (assuming a single release candidate)

Features for 3.8 Some of the notable features of Python 3.8 include:

9185 次点击
所在节点    Python
58 条回复
mamahaha
2019-10-08 12:50:02 +08:00
## Java
> 百度为您找到相关结果约 69,100,000 个
## python
> 百度为您找到相关结果约 38,500,000 个
## c++
> 百度为您找到相关结果约 59,700,000 个
## golang
> 百度为您找到相关结果约 24,600,000 个
XIVN1987
2019-10-08 12:50:45 +08:00
PEP 572 还是能够接受的,,毕竟使用场景比较明确,,

PEP 505 -- None-aware operators 就不能接受了,,还好 Deferred 了,希望不要通过
XIVN1987
2019-10-08 12:52:50 +08:00
@mamahaha

最好再统计下 github、StackOverflow、google、quora、知乎等多种数据来源综合下,,单一数据说服力不够,,
laike9m
2019-10-08 12:54:28 +08:00
@ipwx thanks,这个不错
lrxiao
2019-10-08 13:12:15 +08:00
LOAD_GLOBAL is now 40% faster
这不算巨大提升吗...调用函数都要 LOAD GLOBAL 的
BOYPT
2019-10-08 14:24:45 +08:00
(学不动了
watsy0007
2019-10-08 14:48:07 +08:00
@lrxiao
alfredsun
2019-10-08 16:00:04 +08:00
@cmdOptionKana 中文没有时态不代表了不能表完成啊
就举的例子里,“好”和“好了”的区别就是一个是原型一个是表完成啊,你把“好了”封装成名词做句子成分当然就看不出来了。
sangsi
2019-10-08 17:32:24 +08:00
@BOYPT 同感!
woshi88
2019-10-09 09:44:04 +08:00
弃坑了,始于 2.7 止于 3.6
prenwang
2019-10-09 10:01:19 +08:00
multiprocessing can now use shared memory segments to avoid pickling costs between processes 这个好
venster
2019-10-09 11:45:35 +08:00
@alfredsun “即将发布”是一个确定的状态,已经发生了,用“了”没毛病。
watsy0007
2019-10-09 15:09:42 +08:00
wuwukai007
2019-10-09 16:21:13 +08:00
一定要用 3.6+,提升太明显了!
watsy0007
2019-10-11 12:41:09 +08:00
@wuwukai007 https://docs.python.org/3.8/whatsnew/3.8.html#optimizations 看了下优化部分, 还是挺明显的.

Improved performance of operator.itemgetter() by *33%*. Optimized argument handling and added a fast path for the common case of a single non-negative integer index into a tuple (which is the typical use case in the standard library).


Sped-up field lookups in `collections.namedtuple()`. They are now more than two times faster, making them the fastest form of instance variable lookup in Python.


The list constructor does not overallocate the internal item buffer if the input iterable has a known length (the input implements __len__). This makes the created list *12%* smaller on average.


Reduced an overhead of converting arguments passed to many builtin functions and methods. This sped up calling some simple builtin functions and methods up to *20–50%*.


LOAD_GLOBAL instruction now uses new “per opcode cache” mechanism. It is about *40%* faster now.
watsy0007
2019-10-11 13:24:45 +08:00
lrxiao
2019-10-11 14:51:49 +08:00
@watsy0007 为什么这个测试结果有这么多不一致的地方...
watsy0007
2019-10-12 00:08:38 +08:00

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://ex.noerr.eu.org/t/606877

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX