eryksun added the comment: > if (not version.GetFileVersionInfoW(name, None, size, ver_block) or > not ver_block):
Arrays don't implement __bool__ and have fixed __len__, so ver_block is always True. You could look at ver_block[0] or ver_block.value (i.e. the C string value). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19143> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com