Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'bug': 0.02; 'url:gnu': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'struct': 0.09; 'subject:ctypes': 0.09; 'url:gmane': 0.09; 'msvc': 0.16; 'subject: \n ': 0.16; 'subject:between': 0.16; 'url:bugzilla': 0.16; 'url:show_bug': 0.16; 'url:thread': 0.16; 'discussion': 0.22; 'ctypes': 0.30; 'from:addr:yahoo.com.au': 0.30; 'subject:?': 0.31; 'to:addr:python-list': 0.34; 'header:X-Complaints-To:1': 0.34; 'header:User-Agent:1': 0.34; 'there': 0.34; 'function.': 0.35; 'url:python': 0.37; 'received:org': 0.38; 'url:org': 0.38; 'should': 0.39; 'header:Mime-Version:1': 0.39; 'returned': 0.39; 'to:addr:python.org': 0.39; 'according': 0.63; 'url:cgi': 0.64; 'url:user': 0.67; 'received:125': 0.73; '2009:': 0.84; 'received:com.hk': 0.84; 'received:hk': 0.84; 'subject:handle': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Just Fill Bugs Subject: Should ctypes handle mis-matching structure return ABI between mingw and MSVC? Date: Wed, 06 Jul 2011 11:12:47 +0800 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: cm125-59-81-236.hkcable.com.hk User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc15 Thunderbird/3.1.10 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1309922109 news.xs4all.nl 21872 [2001:888:2000:d::a6]:50069 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:8887 According the Bug 36834 of gcc, there is a mis-matching between mingw and MSVC when a struct was returned by value from a C function. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36834 Should ctypes handle this situation automatically somehow? A ctypes discussion on 2009: http://thread.gmane.org/gmane.comp.python.ctypes.user/4439