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

Facebook 开源 Pyre: Python 快速静态类型检查

  •  3
     
  •   guyskk0x0 ·
    guyskk · 2018-05-12 18:40:12 +08:00 via Android · 4819 次点击
    这是一个创建于 2147 天前的主题,其中的信息可能已经有所发展或是发生改变。
    10 条回复    2018-05-13 13:45:43 +08:00
    doubleflower
        1
    doubleflower  
       2018-05-12 19:18:53 +08:00
    奇怪了主网站 https://pyre-check.org/ 要翻墙才能打开
    niubee1
        2
    niubee1  
       2018-05-12 19:55:18 +08:00
    貌似只能 py3 下用
    kunluanbudang
        3
    kunluanbudang  
       2018-05-12 20:04:58 +08:00
    与 mypy 类似?
    lihongjie0209
        4
    lihongjie0209  
       2018-05-12 20:25:56 +08:00
    Python + 静态检查 那作为脚本的优势何在?
    Kilerd
        5
    Kilerd  
       2018-05-12 20:52:03 +08:00   ❤️ 1
    还是习惯用 mypy,而且 pycharm 默认支持,用起来很舒服
    chenqh
        6
    chenqh  
       2018-05-12 21:08:16 +08:00
    @Kilerd mypy 在 windows 其实无法安装的。。pycharm 肯定用了黑科技,vscode 的 mypy 在 windows 就用不了,蛋疼
    chenqh
        7
    chenqh  
       2018-05-12 21:08:45 +08:00
    @lihongjie0209 不需要编译?
    chenqh
        8
    chenqh  
       2018-05-12 21:10:15 +08:00
    如果是 ms 做的我会用,facebook 的就算了。。不敢用
    lihongjie0209
        9
    lihongjie0209  
       2018-05-12 21:24:30 +08:00
    @chenqh #7 你需要写多少单元测试和类型检查才能达到编译器所带来的好处?
    chenqh
        10
    chenqh  
       2018-05-13 13:45:43 +08:00
    @lihongjie0209 我説的是 python 加了 typehints 后,相比纯静态语言的好处
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3009 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 00:33 · PVG 08:33 · LAX 17:33 · JFK 20:33
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.