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
Feiox
V2EX  ›  Python

欲将一整套项目迁移、部署到 Python3 去 ~ 有没有特别需要注意的事情?

  •  
  •   Feiox ·
    feiox · 2014-07-24 22:57:16 +08:00 · 2546 次点击
    这是一个创建于 3556 天前的主题,其中的信息可能已经有所发展或是发生改变。
    自己玩 Py3K 好久了,感觉处理中文字符串和字典数据结构时,效率比 Python 2 好一些。
    那么,将一整套项目迁移到 Python 3 ,回付出什么代价,有哪些需要注意的点呢?
    PS. 目前用的是 Flask 0.11 框架。
    4 条回复    2014-07-26 09:46:51 +08:00
    izoabr
        1
    izoabr  
       2014-07-24 23:04:33 +08:00
    找个测试机,跑一下试试,幻想下直接就跑起来了呢
    jakwings
        2
    jakwings  
       2014-07-25 00:21:23 +08:00
    cdwyd
        3
    cdwyd  
       2014-07-25 13:24:12 +08:00
    主要看你用到哪些第三方库了
    Feiox
        4
    Feiox  
    OP
       2014-07-26 09:46:51 +08:00
    @cdwyd 结巴分词,NLTK ~ 主要是语义分析相关库 ~
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5220 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 07:19 · PVG 15:19 · LAX 00:19 · JFK 03:19
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.