V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
1stlulu
V2EX  ›  Python

Python 3.6 Released!

  •  
  •   1stlulu · Dec 23, 2016 · 6147 views
    This topic created in 3423 days ago, the information mentioned may be changed or developed.
    27 replies    2016-12-25 14:59:08 +08:00
    a87150
        1
    a87150  
       Dec 23, 2016
    改的好多,看了几条就懒得看了
    Yinz
        2
    Yinz  
       Dec 23, 2016
    喜欢新的格式化字符串!
    w55exp88lore123
        3
    w55exp88lore123  
       Dec 23, 2016
    good
    strahe
        4
    strahe  
       Dec 23, 2016
    欢迎楼下简述一下新特性
    Haiwx
        5
    Haiwx  
       Dec 24, 2016
    新的屁眼已经出现
    aristotll
        6
    aristotll  
       Dec 24, 2016
    亮点貌似是 format string 和 dict 的性能提升
    还有一个和 Java 类似的 1_000 写法..
    hosiet
        7
    hosiet  
       Dec 24, 2016 via Android
    没人提 PEP 526 变量类型标注吗?可以大大方便静态语法检查
    sagaxu
        8
    sagaxu  
       Dec 24, 2016 via Android
    性能被 PHP7 完爆了, php8 还要引入 jit , Python 毫无动静啊
    wwqgtxx
        9
    wwqgtxx  
       Dec 24, 2016 via iPhone
    @sagaxu 早就有 pypy 支持 jit 了🙄
    janxin
        10
    janxin  
       Dec 24, 2016 via iPhone
    @sagaxu 虽然 php 是世界上最好的语言,你也得看看其他语言的发展呀…
    janxin
        11
    janxin  
       Dec 24, 2016 via iPhone
    asyncio 据说修了一个 io 慢的问题和热执行路径优化,号称提速 30%+,不过这个 patch3.5.3 下个月也会发布掉
    guyskk
        12
    guyskk  
       Dec 24, 2016 via Android
    @janxin 求链接
    guyskk
        13
    guyskk  
       Dec 24, 2016 via Android
    @janxin 找到了
    Future and Task classes now have an optimized C implementation which makes asyncio code up to 30% faster. (Contributed by Yury Selivanov and INADA Naoki in issue 26081 and issue 28544.)
    sagaxu
        14
    sagaxu  
       Dec 24, 2016
    @wwqgtxx pypy 兼容性差了些,跟 php7 这种官方版不好比的
    kikyous
        15
    kikyous  
       Dec 24, 2016 via Android
    向 ruby 看齐
    Gandum
        16
    Gandum  
       Dec 24, 2016
    Windows filesystem and console encoding changed to UTF-8.
    有没有 dalao 解释下
    roist
        17
    roist  
       Dec 24, 2016
    @sagaxu 神之 php8
    bonfy
        18
    bonfy  
       Dec 24, 2016
    其实我就想问 有老司机在 mac 上试过了么?

    多个版本的 Python 怎么在 mac 上玩,还有就是 brew 可以装了么
    janxin
        19
    janxin  
       Dec 24, 2016 via iPhone
    @bonfy pyenv
    Maic
        20
    Maic  
       Dec 25, 2016 via iPhone
    @bonfy 可以装了,我还是今天重装系统的时候才知道 3.6 出来了
    dtfm
        21
    dtfm  
       Dec 25, 2016
    按照 Ubuntu 的风格,应该官方仓库更新应该得等 17.04 了吧,有点等不及,有老司机介绍下 Ubuntu 上怎么更新这货啊,之前搞 Python2 就挂过一次,刚熟悉 Linux ,用不太久,还不太敢楞更这种系统组件。
    matsuz
        22
    matsuz  
       Dec 25, 2016
    Jedi 似乎还不支持 3.6 https://github.com/davidhalter/jedi/issues/820
    vscode 现在都没法自动补全
    bonfy
        23
    bonfy  
       Dec 25, 2016
    @janxin @Maic 谢谢 , 马上去试试
    bytenoob
        24
    bytenoob  
       Dec 25, 2016
    @dtfm 自行编译即可,不要替换系统自带的 python ,最无脑的记住编译过程中不要用 sudo
    dtfm
        25
    dtfm  
       Dec 25, 2016 via Android
    @Yc1992 昨天 Google 了一下,似乎自行编译也问题很多,所以我用 pyenv 隔离掉了,这个方案风险最小。
    bytenoob
        26
    bytenoob  
       Dec 25, 2016
    @dtfm 不编译哪来的 3.6 ? 你说的 pyenv 是产生可执行文件之后的事情,不管是 alias pyenv virtuanenv 啥的都看个人喜好
    dtfm
        27
    dtfm  
       Dec 25, 2016
    @Yc1992 之前还真没注意原来 tar.gz 是需要编译产生的,我扔到 pyenv 他自动帮我构建好了,刚刚看了下,果然是编译安装的。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2082 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 64ms · UTC 16:14 · PVG 00:14 · LAX 09:14 · JFK 12:14
    ♥ Do have faith in what you're doing.