推荐学习书目
› 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
ThunderEX
V2EX  ›  Python

你有没有很想吐槽的超级坑的 py 标准库 module?

  •  1
     
  •   ThunderEX · Dec 3, 2014 · 4310 views
    This topic created in 4354 days ago, the information mentioned may be changed or developed.
    比如datetime赶脚还不如用第三方的……
    binascii赶脚性能好渣……
    9 replies  •  2014-12-19 16:03:06 +08:00
    Fikhtengol
    Fikhtengol
    Dec 3, 2014
    1
    datetime 有什么好用的第三方?
    wibile
    wibile
    Dec 3, 2014
    2
    @Fikhtengol arrow
    EPr2hh6LADQWqRVH
    EPr2hh6LADQWqRVH
    Dec 3, 2014
    3
    smtpd和email高度耦合,一个把email地址两边尖括号去掉的操作不知实例化了多少东西
    huigeer
    huigeer
    Dec 3, 2014
    4
    php trim($str, '[');
    php trim($str, ']');
    c
    c
    Dec 3, 2014
    5
    >>> "[sdfsdf]".strip('[]')
    'sdfsdf'
    c
    c
    Dec 3, 2014
    6
    @huigeer
    >>> "[sdfsdf]".strip('[]')
    'sdfsdf'
    mengzhuo
    mengzhuo
    Dec 4, 2014
    7
    @avastms

    不同意的你观点
    email一个处理email的库
    smtpd一个收信的服务
    哪里重合了?

    RCPT的规则简单了就是去<> 复杂了就呵呵了
    feisan
    feisan
    Dec 8, 2014
    8
    minidom
    ming2281
    ming2281
    Dec 19, 2014
    9
    os与os.path是对文件和目录进行一系列操作,有时候你以为一个方法在os里面,其实它在os.path里面;
    有时候你以为一个方法在os.path里面,但是它在os里面.
    有时候你以为文件的的复制方法在os和os.path的其中一个里面,但是都不在!-->其实它在shutil里面!

    TM dou wo?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5482 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 70ms · UTC 02:03 · PVG 10:03 · LAX 18:03 · JFK 21:03
    ♥ Do have faith in what you're doing.