Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.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.051 X-Spam-Evidence: '*H*': 0.90; '*S*': 0.00; 'subject:How': 0.09; "'r')": 0.16; 'height,': 0.16; 'subject:pass': 0.16; 'width,': 0.16; 'char': 0.17; 'trying': 0.21; 'ctypes': 0.22; "i've": 0.23; 'tried': 0.25; 'header:User-Agent:1': 0.26; 'ends': 0.30; 'function': 0.30; 'file': 0.32; 'received:209.85.160.46': 0.32; 'int': 0.33; 'raising': 0.33; 'to:addr:python-list': 0.33; 'skip:d 20': 0.34; 'skip:- 50': 0.34; 'received:google.com': 0.34; 'open': 0.35; 'received:209.85': 0.35; 'message-id:@gmail.com': 0.36; 'received:209': 0.37; 'skip:o 20': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'content-disposition:inline': 0.60; 'header:Message-Id:1': 0.62; 'subject: *': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-disposition:from:to:subject:date:user-agent:mime-version :content-type:content-transfer-encoding:message-id; bh=DGcDZswe/QoV81dzU7kvvVph8wokpQvMoHhd7dBKXfg=; b=fYAB3Fa+v/wJAO/hvNVC0tj9jiDzTbEYzgCm0Z4oj7xWN989hrgykGcsfFxzRd+nZ2 0RNohFLxhVCfMYAj/SoI7LhBglwq627ywcd4DoyJP0KFmJTjCURQlGda8MEwSc2mptoc 4aI6E7sZJGGFNJStFQW2pvzOc3nS3XRHpb3swPkTHS6r8wh6D4hK80Z53JmNpl61Zd9d LIbIuF4mTD9eCheOoNnKc5KT38DjGYe9b3GFi+5pY2kiYY4rIjz721/jsHdlaQt4SqMO UAKY+lglxjCIoaEuTJEqr09lb1rdZyFL/B2VS8yy1bF4Uzvu3hrjl5+hrIrRDfJOlOVy kEtg== Content-Disposition: inline From: xDog Walker To: python-list@python.org Subject: How to pass FILE * Date: Fri, 28 Sep 2012 14:55:07 -0700 User-Agent: KMail/1.9.5 MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 26 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1348869366 news.xs4all.nl 6980 [2001:888:2000:d::a6]:43608 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:30430 The function I am trying to call wants a FILE *: dlg_progressbox(const char *title, const char *cprompt, int height, int width, int pauseopt, FILE *fp) I can open the file to be referenced: fp = os.fdopen(self.pipefds[0], 'r') Every thing I've tried ends with ctypes raising a TypeError. -- Yonder nor sorghum stenches shut ladle gulls stopper torque wet strainers. ------------------------------------------------------- -- Yonder nor sorghum stenches shut ladle gulls stopper torque wet strainers.