Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"Thank heaven for startups; without them we'd never have any advances." -- Seymour Cray


devel / comp.lang.python / Re: pathlib.Path.is_file vs os.path.isfile difference

SubjectAuthor
o Re: pathlib.Path.is_file vs os.path.isfile differenceThomas Passin

1
Re: pathlib.Path.is_file vs os.path.isfile difference

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

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=29634&group=comp.lang.python#29634

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: list1@tompassin.net (Thomas Passin)
Newsgroups: comp.lang.python
Subject: Re: pathlib.Path.is_file vs os.path.isfile difference
Date: Sun, 10 Mar 2024 10:09:53 -0400
Lines: 40
Message-ID: <mailman.79.1710081964.3452.python-list@python.org>
References: <DB9PR10MB6689A7AB4F3D48E3B5639BB483252@DB9PR10MB6689.EURPRD10.PROD.OUTLOOK.COM>
<a622508b-fb49-4243-9b81-32408ad99008@tompassin.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de EfU5fg6ZJCQ9wV/F38yargAIXgCKD4xAmccZjAtWHoGQ==
Cancel-Lock: sha1:NDarRqO3cU8Wjo0yh6abBjDUa3Y= sha256:YW16LRAfNzUrxvJND2e2NcIH4vpKSzcct4Ht8odaEBc=
Return-Path: <list1@tompassin.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=tompassin.net header.i=@tompassin.net header.b=onTrVnSO;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.034
X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'mar': 0.07; '2024': 0.16;
'=====': 0.16; 'barry': 0.16; 'limits.': 0.16; 'received:10.0.0':
0.16; 'received:64.90': 0.16; 'received:64.90.62': 0.16;
'received:64.90.62.162': 0.16; 'received:dreamhost.com': 0.16;
'subject:skip:o 10': 0.16; 'subject:skip:p 20': 0.16;
'surprising.': 0.16; 'url:learn': 0.16; 'url:win32': 0.16;
'windows.': 0.16; 'wrote:': 0.16; 'api': 0.17; 'to:addr:python-
list': 0.20; 'ran': 0.22; 'error': 0.29; 'header:User-Agent:1':
0.30; 'seem': 0.31; 'am,': 0.31; 'python-list': 0.32;
'received:10.0': 0.32; 'received:mailchannels.net': 0.32;
'received:relay.mailchannels.net': 0.32; 'but': 0.32; 'there':
0.33; 'path': 0.33; 'mean': 0.34; 'header:In-Reply-To:1': 0.34;
'posts': 0.36; 'setting': 0.39; 'use': 0.39; 'exact': 0.40; '10,':
0.61; 'remember': 0.61; "there's": 0.61; 'leading': 0.63; 'back':
0.67; 'forget': 0.67; 'header:Received:6': 0.67; 'received:64':
0.67; 'depending': 0.70; 'longer': 0.71; 'details.': 0.76;
'device,': 0.84; 'url:windows': 0.84
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1710079793; a=rsa-sha256;
cv=none;
b=9r7Qjc85RTii5rLiN28i30BrPuUSsvBt2xKfSMZGvzbsDh4/kYaR6vwddz5lpnVzR/tdH5
8EcIyKl0QmJyhCjQ/mLyoSvMDRqfDvBeYDfLbcirYERfWVjwtnsXcge3ZyOIWj0q2FYE8r
HDts8dJ7giiFvIXGKaRSkboX23JYnGVHURN8AiiqtXjogiZXBOEdnxHjdODh5VQJ34S54s
wzcv+pEtG9qrbOJJw5CGUMFTzN45HakPMnQWRgJFSqaJJ3J0A1AODu/0czNFmXnUeYI83y
r5tk3cRpaDMIvsjA8gji05WdB8V0Yxb7gv5atSe612LbZNCFBdA2NLIrncYmtw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed;
d=mailchannels.net; s=arc-2022; t=1710079793;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:mime-version:mime-version:content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references:dkim-signature;
bh=L/HvNgFi20fGH5fF8tsdJCuhYUETk0dOAVr6kaqsJJE=;
b=PO7/CTmF6Bfzp6UWwILMeTEREQHHQbiwRu/WX8HBKBvuoVwtgA2HaLHEuFEvoFmYOY+Qm9
ifBVS8Ni2n1GzuO5oVupcCbK92aQo2Qga5hM7eXPDstpFQiLOeznnbsyUNuRp6mOT8jIgX
1zmRwwZwUmvFraLVB5JcsuxtekU0Q0JESJXoA6M3gekKV9Mq19X3ZzL3QPLr1tAs5aum+A
Smkx8vl7EIeN73aKF+0Qt9fUXJVfk7UqZbZ4XSunvvKpNUBh1//Wy93GZ5KzGPXviZz1Og
FFE5SxIzMFh3YI4ohMxme91OS4yPaHJNID/2KKWdvaSW4Ur5S6DjMtcVkod6gw==
ARC-Authentication-Results: i=1; rspamd-5db57bc4b6-pzfhm;
auth=pass smtp.auth=dreamhost smtp.mailfrom=list1@tompassin.net
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|tpassin@tompassin.net
X-MailChannels-Auth-Id: dreamhost
X-Society-Broad: 3dc5a0b37ce4857f_1710079793847_1619046913
X-MC-Loop-Signature: 1710079793847:2518789604
X-MC-Ingress-Time: 1710079793847
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tompassin.net;
s=dreamhost; t=1710079793;
bh=L/HvNgFi20fGH5fF8tsdJCuhYUETk0dOAVr6kaqsJJE=;
h=Date:Subject:To:From:Content-Type:Content-Transfer-Encoding;
b=onTrVnSO7h22bemA1fhpgTI/q44RVnEY25j7nSejVgE0U4pH6dv1e9otfBFIL854U
K0aYbGTFX0HNfyNFdxidTUkLpA5ETVixhCJLOJgXuSjhSFMqTNdRPClh+oyA7coFf+
nPcZwECfYahqXAJGb7ivLELywwKtrkPVijWwDPGvU3Qlei+yuMO073+58PWj1gGeHj
dxbzzoSI8hV6xuOxXXWwJYzIIsFar/lTYkQAoVKwn3w+c5ZypEC+IVXnhhnAap3MvI
sL7YPBkbK0hzmSxtkwaIenABs/7cAcDY7GQv8h1ocPLL1kmqQNu1qFvqWqDuVN+L0A
AbONgU94XCvvw==
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <DB9PR10MB6689A7AB4F3D48E3B5639BB483252@DB9PR10MB6689.EURPRD10.PROD.OUTLOOK.COM>
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: <a622508b-fb49-4243-9b81-32408ad99008@tompassin.net>
X-Mailman-Original-References: <DB9PR10MB6689A7AB4F3D48E3B5639BB483252@DB9PR10MB6689.EURPRD10.PROD.OUTLOOK.COM>
 by: Thomas Passin - Sun, 10 Mar 2024 14:09 UTC

On 3/10/2024 9:33 AM, Albert-Jan Roskam wrote:
>
>
> On Mar 10, 2024 12:59, Thomas Passin via Python-list
> <python-list@python.org> wrote:
>
> On 3/10/2024 6:17 AM, Barry wrote:
> >
> >
> >> On 8 Mar 2024, at 23:19, Thomas Passin via Python-list
> <python-list@python.org> wrote:
> >>
> >> We just learned a few posts back that it might be specific to
> Linux; I ran it on Windows.
> >
> > Depending on the exact win32 api used there is a 257 limit on
> windows.
> > The 257 includes 2 for the device, C:, and 255 for the path part
> that will use 1 for the leading \. Getting an error for a name that
> is 255 is not surprising.
> >
> > Other api allow for 65535 limit, not sure on its additional limits.
>
> I seem to remember there is a setting to allow longer paths, but I
> forget any details.
>
>
>
> =====
>
> You mean the "\\?\" prefix?
>
> https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry

That and there's a registry setting:

https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor