From owner-freebsd-questions@FreeBSD.ORG Wed Aug 13 16:16:06 2008 Return-Path: Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C5F5C1065674 for ; Wed, 13 Aug 2008 16:16:06 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [212.17.241.230]) by mx1.freebsd.org (Postfix) with ESMTP id 4EA038FC1B for ; Wed, 13 Aug 2008 16:16:06 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.1/8.14.1) with ESMTP id m7DFghIh073856; Wed, 13 Aug 2008 17:42:53 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.1/8.14.1/Submit) id m7DFghno073855; Wed, 13 Aug 2008 17:42:43 +0200 (CEST) (envelope-from olli) Date: Wed, 13 Aug 2008 17:42:43 +0200 (CEST) Message-Id: <200808131542.m7DFghno073855@lurza.secnetix.de> From: Oliver Fromme To: freebsd-questions@FreeBSD.ORG, gandalf@shopzeus.com In-Reply-To: <48A2F335.6010206@shopzeus.com> X-Newsgroups: list.freebsd-questions User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.2-STABLE-20070808 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Wed, 13 Aug 2008 17:42:54 +0200 (CEST) Cc: Subject: Re: Max. number of opened files, efficiency X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@FreeBSD.ORG, gandalf@shopzeus.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2008 16:16:06 -0000 Laszlo Nagy wrote: > In fact I do not need any name associated with the file. I just need a > temporary file object, I would like to access it in read write mode and > then throw it. In that case, why do you use physical (i.e. on-disk) files at all? You could simply use memory objects. If you want to use file semantics (with read() and write() methods etc.), you can easily do that in Python with memory objects, too. See the StringIO and cStringIO modules for details. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "We, the unwilling, led by the unknowing, are doing the impossible for the ungrateful. We have done so much, for so long, with so little, we are now qualified to do anything with nothing."         -- Mother Teresa