V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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
smallaccount
V2EX  ›  Python

你们现在有没有计划把 Python2 的项目转移到 Python3?

  •  
  •   smallaccount · 2017-01-19 21:48:01 +08:00 · 3475 次点击
    这是一个创建于 2647 天前的主题,其中的信息可能已经有所发展或是发生改变。
    目前Python3支持的越来越好,想搞一搞试试Python3了。
    12 条回复    2017-01-20 16:26:04 +08:00
    Mark24
        1
    Mark24  
       2017-01-19 22:12:27 +08:00
    搞吧
    ericls
        2
    ericls  
       2017-01-19 22:13:58 +08:00 via iPhone   ❤️ 1
    很多年没用 Python 2 了
    ansheng
        3
    ansheng  
       2017-01-19 22:15:44 +08:00
    难道不是新项目上 py3 ?大部分用 py2 的还是由于历史遗留原因吧,
    wizardoz
        5
    wizardoz  
       2017-01-20 00:24:16 +08:00
    绝不会没事找事
    yegle
        6
    yegle  
       2017-01-20 06:17:22 +08:00
    动态语言做项目迁移前应该先搞 type annotation 啊

    https://github.com/google/pytype/blob/master/pytype/patches/python_2_7_type_annotations.diff 收好
    lrh3321
        7
    lrh3321  
       2017-01-20 08:49:01 +08:00
    新项目上 py3 ,老项目继续在 py2 ,然后慢慢淘汰老项目
    mashpolo
        8
    mashpolo  
       2017-01-20 10:01:49 +08:00
    我司服务器还用的 centos6.2 , python2.6....
    phrack
        9
    phrack  
       2017-01-20 10:25:36 +08:00 via Android
    还没有, py2 再战三年无压力
    raptor
        10
    raptor  
       2017-01-20 11:32:30 +08:00
    > 新项目上 py3 ,老项目继续在 py2 ,然后慢慢淘汰老项目

    +1
    zhuce1234578888
        11
    zhuce1234578888  
       2017-01-20 14:01:28 +08:00
    > 新项目上 py3 ,老项目继续在 py2 ,然后慢慢淘汰老项目

    +1
    weakiwi
        12
    weakiwi  
       2017-01-20 16:26:04 +08:00
    @qisuker 总感觉还是有些低估了。。。上次 python2.7->python3.5 , deepin 的 apt-get 直接挂掉。查了好半天才查出是这个问题
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1091 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 23:19 · PVG 07:19 · LAX 16:19 · JFK 19:19
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.