Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #30430 > unrolled thread

How to pass FILE *

Started byxDog Walker <thudfoo@gmail.com>
First post2012-09-28 14:55 -0700
Last post2012-09-28 14:55 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  How to pass FILE * xDog Walker <thudfoo@gmail.com> - 2012-09-28 14:55 -0700

#30430 — How to pass FILE *

FromxDog Walker <thudfoo@gmail.com>
Date2012-09-28 14:55 -0700
SubjectHow to pass FILE *
Message-ID<mailman.1585.1348869366.27098.python-list@python.org>
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.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web