Deutsch   English   Français   Italiano  
<mailman.20.1720427697.2981.python-list@python.org>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!fu-berlin.de!uni-berlin.de!not-for-mail
From: Barry Scott <barry@barrys-emacs.org>
Newsgroups: comp.lang.python
Subject: Re: Best (simplest) way to share data between processes
Date: Mon, 8 Jul 2024 09:34:44 +0100
Lines: 15
Message-ID: <mailman.20.1720427697.2981.python-list@python.org>
References: <9a8nlk-jb81.ln1@q957.zbmc.eu>
 <B4D7CB24-28E5-4CAC-AA42-5C47C3F6F470@barrys-emacs.org>
 <6e86fff1-d24c-42c9-bc72-7e22757686ec@mrabarnett.plus.com>
 <E1833CA2-AF81-4499-BB69-666F28D68B2E@barrys-emacs.org>
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\))
Content-Type: text/plain;
	charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de S6eHFGEbU90NiVVjSl1LzgSMXMyvyy3ekI4VgqB6dVjw==
Cancel-Lock: sha1:0h5s/V6IdhU7cS70zSFF2SJwQ3s= sha256:Rie0V2EMOUi3SwNu1bdK3bWdspjOXcyjfZ6y/hVOPIg=
Return-Path: <barry@barrys-emacs.org>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
 dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.010
X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'jul': 0.04; 'cc:addr
 :python-list': 0.09; 'from:addr:barry': 0.09; 'linux': 0.09;
 'received:217.70': 0.09; 'received:gandi.net': 0.09;
 'received:mail.gandi.net': 0.09; 'subject:between': 0.09; 'cc:no
 real name:2**0': 0.14; 'barry': 0.16; 'behaviour': 0.16;
 'from:addr:barrys-emacs.org': 0.16; 'from:name:barry scott': 0.16;
 'instead.': 0.16; 'message-id:@barrys-emacs.org': 0.16; 'rpi.':
 0.16; 'subject:way': 0.16; 'windows.': 0.16; 'wrote:<span': 0.16;
 'wrote:': 0.16; 'cc:addr:python.org': 0.20; "i'd": 0.24;
 'cc:2**0': 0.25; 'email addr:python.org>': 0.28; 'python-list':
 0.32; 'but': 0.32; '0);': 0.33; 'rgb(0,': 0.33; 'windows': 0.34;
 'same': 0.34; 'header:In-Reply-To:1': 0.34; 'target': 0.36;
 'file': 0.38; 'both': 0.40; 'font-family:': 0.60; 'inline': 0.61;
 'display:': 0.62; 'none;': 0.62; 'font-weight:': 0.62; '0px;':
 0.63; 'text-indent:': 0.64; 'normal;': 0.66; 'received:217': 0.67;
 'skip:! 10': 0.67; 'clarity': 0.69; 'float:': 0.74; 'email
 name:<python-list': 0.84; '400;': 0.89; '13px;': 0.91
In-Reply-To: <6e86fff1-d24c-42c9-bc72-7e22757686ec@mrabarnett.plus.com>
X-Mailer: Apple Mail (2.3774.600.62)
X-GND-Sasl: barry@barrys-emacs.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.39
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
 <python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
 <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
 <mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <E1833CA2-AF81-4499-BB69-666F28D68B2E@barrys-emacs.org>
X-Mailman-Original-References: <9a8nlk-jb81.ln1@q957.zbmc.eu>
 <B4D7CB24-28E5-4CAC-AA42-5C47C3F6F470@barrys-emacs.org>
 <6e86fff1-d24c-42c9-bc72-7e22757686ec@mrabarnett.plus.com>
Bytes: 3712



> On 7 Jul 2024, at 23:47, MRAB via Python-list <python-list@python.org> =
wrote:
>=20
> For clarity I'd recommend os.replace instead. This is because on =
Windows os.rename it would complain if the target file already exists, =
but os.replace has the same behaviour on both Linux and Windows.

Agreed.

In this case the OP is on an RPi.

Barry