Python 的 BUG 是不是一直不修复的? - V2EX
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
invite
V2EX    Python

Python 的 BUG 是不是一直不修复的?

  •  
  •   invite 2015 年 2 月 22 日 4902 次点击
    这是一个创建于 4068 天前的主题,其中的信息可能已经有所发展或是发生改变。

    今天写了个代码,然后报错:

    AttributeError: 'module' object has no attribute '_strptime_time' 

    然后网上搜了下,说是多线程的BUG。

    于是升级了Python到最新版: 2.7.9

    结果运行后,还是同样的报错。

    OMG。

    难道Python的BUG都不修复的? 还是其他原因导致的报错?

    17 条回复    2015-02-23 02:20:37 +08:00
    xcv58
        1
    xcv58  
       2015 年 2 月 22 日 via iPhone
    你确定最新版 Python 是 2.7.9
    evlos
        2
    evlos  
       2015 年 2 月 22 日
    这不是 bug 吧
    pandada8
        3
    pandada8  
       2015 年 2 月 22 日
    http://bugs.python.org/issue7980
    貌似是没修
    Thread safety: The use of strptime is thread safe, but with one important caveat. The first use of strptime is not thread safe because the first use will import _strptime. That import is not thread safe and may throw AttributeError or ImportError. To avoid this issue, ** import _strptime explicitly before starting threads, or call strptime once before starting threads. **
    evlos
        4
    evlos  
       2015 年 2 月 22 日
    引用 http://bugs.python.org/issue7980
    >> Thread safety: The use of strptime is thread safe, but with one important caveat. The first use of strptime is not thread safe because the first use will import _strptime. That import is not thread safe and may throw AttributeError or ImportError. To avoid this issue, import _strptime explicitly before starting threads, or call strptime once before starting threads.
    evlos
        5
    evlos  
       2015 年 2 月 22 日
    @pandada8 刚才有事走开了一下 回来再回复就看到你已经先贴了 /w\
    aaaa007cn
        6
    aaaa007cn  
       2015 年 2 月 22 日
    pandada8
        7
    pandada8  
       2015 年 2 月 22 日
    @evlos 是的~
    @invite 值得注意的是 3.3 以后 import 机制有些变化所以 **最新的** Python3.4 和比较**新**的 python 3.3 没有这个问题
    aaaa007cn
        8
    aaaa007cn  
       2015 年 2 月 22 日
    @evlos 我点开帖子的时候也只有一个回复啊 ww
    invite
        9
    invite  
    OP
       2015 年 2 月 22 日
    @xcv58 是啊,出问题了,搜了一下,然后从官网down了最新版的 python -V 也显示 2.7.9 了。
    msg7086
        10
    msg7086  
       2015 年 2 月 22 日 via iPhone
    @invite 你怎么down的?确定抓的3系?
    invite
        11
    invite  
    OP
       2015 年 2 月 22 日
    @msg7086 我没升到3,升到2的最新版。
    msg7086
        12
    msg7086  
       2015 年 2 月 22 日 via iPhone
    @invite 2本身就不是最新版,不修bug不奇怪。何况这也不是大问题,完全可以用非常小的patch来避免。
    caizixian
        13
    caizixian  
       2015 年 2 月 22 日
    @invite 没有历史包袱的project全升到3

    @msg7086 没错,弄个workaround即可
    bombless
        14
    bombless  
       2015 年 2 月 22 日
    这是用bug来逼你们升到3的节奏啊
    xfspace
        15
    xfspace  
       2015 年 2 月 22 日 via Android
    @bombless 那M$不给xp打补丁呢。。。:(逃
    bombless
        16
    bombless  
       2015 年 2 月 22 日
    @xfspace 所以m$也在用bug逼你升新版!
    ehs2013
        17
    ehs2013  
       2015 年 2 月 23 日
    下载 Python Mercurial 上最新 2.7 的源码编译一下看看吧,也许修复了也有可能。
    关于     a href="/help" class="dark" target="_self">帮助文档     自助推广系统     博客     API     FAQ     Solana     3119 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 27ms UTC 14:51 PVG 22:51 LAX 07:51 JFK 10:51
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86