Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

19 May, 2024: Line wrapping has been changed to be more consistent with Usenet standards.
 If you find that it is broken please let me know here rocksolid.nodes.help


devel / comp.lang.python / Re: File system path annotations

SubjectAuthor
o File system path annotationsRoel Schroeven

1
Re: File system path annotations

<mailman.115.1687183461.23016.python-list@python.org>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=23637&group=comp.lang.python#23637

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news-2.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: roel@roelschroeven.net (Roel Schroeven)
Newsgroups: comp.lang.python
Subject: Re: File system path annotations
Date: Mon, 19 Jun 2023 16:04:16 +0200
Lines: 21
Message-ID: <mailman.115.1687183461.23016.python-list@python.org>
References: <CAC-uhUB0mq2LmJRGwHtcZ09A1WntBPP9+FcB+D9dqQqmPK6XLQ@mail.gmail.com>
<283236db-95a3-f4cd-cf98-87792b369e52@roelschroeven.net>
<CAC-uhUAo3i2DyZsN==y-tVu=0Pzmji5a5NFQ0cBkYRzq8SZ9sA@mail.gmail.com>
<53d53373-ec18-496e-1d98-10f654990f95@roelschroeven.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de dat3TzUXn0C8rYzqE1j3dQK4O8AHcNAGGqG82B/lwWsw==
Return-Path: <roel@roelschroeven.net>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=roelschroeven.net header.i=@roelschroeven.net
header.b=NW0EmO9h; dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.004
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'pfxlen:0': 0.03; 'cc:addr
:python-list': 0.09; 'choice.': 0.09; 'though.': 0.09; '&gt;':
0.14; 'cc:no real name:2**0': 0.14; 'questions.': 0.14; '11:44':
0.16; 'filenames': 0.16; 'happening.': 0.16; 'importing': 0.16;
'received:10.202': 0.16; 'received:10.202.2': 0.16;
'received:internal': 0.16; 'received:messagingengine.com': 0.16;
'schreef': 0.16; 'scientists': 0.16; 'should"': 0.16;
'subject:File': 0.16; 'python': 0.16; 'cc:addr:python.org': 0.20;
'option': 0.20; 'cc:2**0': 0.25; 'header:User-Agent:1': 0.30;
'think': 0.32; 'fine.': 0.32; 'happening': 0.32; 'needed,': 0.32;
'objects': 0.32; 'programmers': 0.32; 'path': 0.33; "didn't":
0.34; 'header:In-Reply-To:1': 0.34; 'complex': 0.35;
'received:66': 0.35; 'people': 0.36; 'using': 0.37; 'read': 0.38;
'enough': 0.39; 'to:charset:utf-8': 0.61; 'feel': 0.63;
'operations': 0.68; 'and,': 0.69; 'only.': 0.69; 'dr.': 0.77;
'represented': 0.84; 'tend': 0.91
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
roelschroeven.net; h=cc:cc:content-type:content-type:date:date
:from:from:in-reply-to:in-reply-to:message-id:mime-version
:references:reply-to:sender:subject:subject:to:to; s=fm1; t=
1687183458; x=1687269858; bh=DPDylZbEwxiUvTYfDwY64jcumRwGDA2fYDY
OZvMo+JU=; b=NW0EmO9hbZTPHufywpdOz8mF3tndyy6DDtJuDeZUa7o21cCNXeG
++Sk+aoFBSAJ1wYficBeEKj4iWKkEoEGKg9lWUIgbg6CGU/8RNh6ONjZkHN2q9L1
qfY69EBF/eMtq45RMa6IHAvMAhCSO5xauXUPcNyZokhVAt+xRwiF+BOhRoXnjZM2
PSPCNfnLSsnwNGidAXzucvVEW+WyVMjQk1QR7iWFjhI5Tbp5pV56w3dwCKrk18Xh
NlciQsJM3UPF6l9iZ+OG/BA9A83uMYd7uxOD12RPdDC/+kk3JG70S6EMFS71qw1N
0r7CR5BLDH2Rie1Ja/9z5uUO+UTdQpX/bJQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
messagingengine.com; h=cc:cc:content-type:content-type:date:date
:feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
:message-id:mime-version:references:reply-to:sender:subject
:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender
:x-sasl-enc; s=fm2; t=1687183458; x=1687269858; bh=DPDylZbEwxiUv
TYfDwY64jcumRwGDA2fYDYOZvMo+JU=; b=dKONElacL/DXiM1xqS1hrD6cliWfi
Urc2ww6MXpp6srkTzs5HqhBDCv2Wq8fFg16yWomLaXHju0oIzCVJ9OREtGqe+bDJ
XjpLXALy8fCfULi45xLzXA8bMTUpGSptDnHcG0CbnBm2g17pD+yjQ+e7Y156GAGm
k3ZJedr3k4wM3W7TmWV5/aFWPFpo34Bn3RHmgySYCZh2DP+Q0J599UagacGxyYoY
1vLhrj2YqEanae89SvdwDxQcuP8AhaciUabz10OxXIREbyBObEZIDoUxod72/lIX
Qecp54Ll/A6VlezxYstf4bZpfKH51gWqSUywEimxC0BschgaMCkWdG/Eg==
X-ME-Sender: <xms:YmCQZDDqg75bdtnHbQ6MuzhQOzskt-4wz0z59QbRf0wrtLfIbVO2iA>
<xme:YmCQZJjyx24PAk6Qs50dIJY3YzLmYC6mLaNwOYMGu-7a8LX7NwThpKZX3_Rh52S8I
nNCYYhe-mZV>
X-ME-Received: <xmr:YmCQZOkylzqg8W5S4WkaEsNKAC56F-2CMpffOxbvd3DS1m0VUJEP7lolZdS-7HpT0s0jXnyyyivCh4jDksNMsEJ2xAt1shRyJeTKP9MUZoZO1Sg>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrgeefvddgjedtucetufdoteggodetrfdotf
fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne
cujfgurheptgfkffggfgfuvfevfhfhjgesrgdtreertdefjeenucfhrhhomheptfhovghl
ucfutghhrhhovghvvghnuceorhhovghlsehrohgvlhhstghhrhhovghvvghnrdhnvghtqe
enucggtffrrghtthgvrhhnpedvieektedtleetheevueekveeiudfgtefgveffveehfeef
leefjeeljeehveejvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih
hlfhhrohhmpehrohgvlhesrhhovghlshgthhhrohgvvhgvnhdrnhgvth
X-ME-Proxy: <xmx:YmCQZFxvzQtt7XfdPImCgq1JO5Wb2feBF5X6a4Qy0CIBSK0x4HkOhw>
<xmx:YmCQZITWmEXUfMvEmMAYZGl46qLBYlvuY3CRimiE3JolwihvYtUlag>
<xmx:YmCQZIaKZK0Jc4OWi1MjOBmLZegrmZPJqxjPxTiFU96aPQB3DcRcDA>
<xmx:YmCQZB5kFrG0-eHwB0AafmdTXWhfHcqPrscqb_xknGa82-kP_NMyOw>
Feedback-ID: i8e5b41ae:Fastmail
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.12.0
Content-Language: nl, en-US
In-Reply-To: <CAC-uhUAo3i2DyZsN==y-tVu=0Pzmji5a5NFQ0cBkYRzq8SZ9sA@mail.gmail.com>
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: <53d53373-ec18-496e-1d98-10f654990f95@roelschroeven.net>
X-Mailman-Original-References: <CAC-uhUB0mq2LmJRGwHtcZ09A1WntBPP9+FcB+D9dqQqmPK6XLQ@mail.gmail.com>
<283236db-95a3-f4cd-cf98-87792b369e52@roelschroeven.net>
<CAC-uhUAo3i2DyZsN==y-tVu=0Pzmji5a5NFQ0cBkYRzq8SZ9sA@mail.gmail.com>
 by: Roel Schroeven - Mon, 19 Jun 2023 14:04 UTC

Op 19/06/2023 om 11:44 schreef Peter Slížik:
> Thank you, Roel. You've answered all my questions.
>
> > [PEP 519]: ...as that can be represented with typing.Union[str,
> bytes, os.PathLike] easily enough and the hope is users
> > will slowly gravitate to path objects only.
>
> I read a lot on Python and, frankly, I don't see this happening.
> People on the Internet keep using /str/ as their path representation
> choice. Presumably, programmers don't feel the need to bother with a
> complex solution if the simplest option works just fine.
I agree, I don't see that happening either. I often find myself using
str for paths: often simple filenames are all that's needed, and then I
don't see much point in importing pathlib and wrapping the filenames in
Path() constructors. I do tend to switch to path objects when I start
needing to do operations on the paths, though.

--
"Your scientists were so preoccupied with whether they could, they didn't
stop to think if they should"
-- Dr. Ian Malcolm


devel / comp.lang.python / Re: File system path annotations

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor