Path: csiph.com!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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'win32': 0.03; '"""': 0.05; 'attributes': 0.07; 'api': 0.09; 'python': 0.09; 'block.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'aug': 0.13; 'files.': 0.13; '(the': 0.15; '"general': 0.16; '"windows': 0.16; 'exposes': 0.16; 'library"': 0.16; 'mapped': 0.16; 'mapping,': 0.16; 'processes.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'windows?': 0.16; 'specify': 0.17; 'thu,': 0.17; 'systems.': 0.18; 'memory': 0.18; 'class.': 0.23; 'creating': 0.26; '(see': 0.27; 'guess': 0.27; 'implemented': 0.27; 'disk': 0.27; 'object,': 0.27; 'header:X -Complaints-To:1': 0.28; 'maybe': 0.29; 'framework': 0.30; 'implement': 0.32; 'file': 0.32; 'computer.': 0.32; 'operate': 0.32; 'running': 0.32; '+0200,': 0.33; 'subject:data': 0.33; 'url:home': 0.33; 'to:addr:python-list': 0.33; 'mapping': 0.35; 'there': 0.35; 'received:org': 0.36; 'but': 0.36; 'wanted': 0.36; 'should': 0.36; 'charset:us-ascii': 0.36; 'uses': 0.37; 'subject:: ': 0.38; 'object': 0.38; 'supports': 0.38; 'system.': 0.39; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'stand': 0.61; 'kind': 0.61; 'back': 0.62; 'provide': 0.62; 'between': 0.63; 'information': 0.63; 'believe': 0.69; 'special': 0.73; 'nagy': 0.84; 'dennis': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Pass data to a subprocess Date: Thu, 02 Aug 2012 13:21:49 -0400 Organization: > Bestiaria Support Staff < References: <5017EFB0.6080608@shopzeus.com> <501A19F3.5040201@shopzeus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-76-249-27-6.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 3.3/32.846 X-No-Archive: YES 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: 36 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1343928125 news.xs4all.nl 6852 [2001:888:2000:d::a6]:51630 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:26412 On Thu, 02 Aug 2012 08:10:59 +0200, Laszlo Nagy declaimed the following in gmane.comp.python.general: > I stand corrected. It should still be examined, what kind shared memory > is used under non-linux systems. System V on AIX? And what about > Windows? So maybe the general answer is still no. But I guess that the > OP wanted this to work on a specific system. > From an ancient MSDN disk (goes back to VB6): """ Shared Memory The Win32 API uses a special case of file mapping to provide shared memory access between processes. If you specify the system swap file when creating a file-mapping object, the file-mapping object is treated as a shared memory block. Other processes can access the same block of memory by opening the same file-mapping object (see File Mapping). Because shared memory is implemented with file mapping, it supports security access attributes and can operate only between processes running on the same computer. For information about shared memory, see "General Library" in the "Windows Base Services" section of the Microsoft Platform SDK. """ There is also the MFC CSharedFile class. .NET prior to Framework v4 did not implement mapped files. I believe Python exposes this (the Win32 aspect) via mmap. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/