PythonCharmers/python-future

types.IntType, types.LongType treated differently to int, long

Open

#264 建立於 2017年1月19日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)Python (327 fork)batch import
0.19bughelp wantedtype-conversion

倉庫指標

Star
 (1,172 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Currently,

if type(time) not in (int, long): is not converted by futurize --stage1 -w file.py (version 0.15.2) but: if type(time) not in (types.IntType, types.LongType): is converted to: if type(time) not in (int, int)

I would have thought that these two should be treated the same.

貢獻者指南