Deutsch English Français Italiano |
<mailman.66.1709921032.3452.python-list@python.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!not-for-mail From: Albert-Jan Roskam <sjeik_appie@hotmail.com> Newsgroups: comp.lang.python Subject: pathlib.Path.is_file vs os.path.isfile difference Date: Fri, 08 Mar 2024 19:03:40 +0100 Lines: 8 Message-ID: <mailman.66.1709921032.3452.python-list@python.org> References: <DB9PR10MB6689EA455D5C8580B90EA8F383272@DB9PR10MB6689.EURPRD10.PROD.OUTLOOK.COM> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Trace: news.uni-berlin.de EEVd4lwd5w5lycwLepGuzgCj6/JwNK5G0uUKNBvBRu4g== Cancel-Lock: sha1:nKKgws3SwEn1xFlYOeFhc+rtKKE= sha256:hlJYluudjrl9mjXbDcUn7iFyauPMVleKaLxVAFnyxW8= Return-Path: <sjeik_appie@hotmail.com> 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=hotmail.com header.i=@hotmail.com header.b=Oyyw76A/; dkim-adsp=pass; dkim-atps=neutral X-Spam-Status: OK 0.093 X-Spam-Evidence: '*H*': 0.90; '*S*': 0.08; 'this:': 0.03; 'resemble': 0.09; 'possible?': 0.16; 'subject:skip:o 10': 0.16; 'subject:skip:p 20': 0.16; 'to:addr:python-list': 0.20; 'stuff': 0.25; 'try': 0.40; 'best': 0.61; 'skip:o 20': 0.63; 'discovered': 0.80; 'replacing': 0.91 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kC3FxiPYUPRb0Thtgh8+idc6ujsDpVmf3YOq/JWdFA/UnqtTk8UQ73zLEb2NN5SSXYNwM18ERri5/9iEvRNLm2/bgf9ddjlzZTQTx8fcTICu8sdjGDpnN5xkiILi5mXBmJvwOkUflKoH9XsEZE5wtCjuFL0QYVf6EIcKIJdAB6DMlbRYuyab0ZZxg9a5BsH+ReKggBmvGikRFOkv0bxQvZ1qU9p4Wsad6p2tofnLlXjdLqPEel9lpxwSKnMw3cDHkaykPju66oGVlwk+ktcYgzblNKdRLA9sGahZwu0cQvFswDA6VhykOAdmohAbi23c4fTavfUWBxOE8F+XhltmmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=YM0T28/oFi/bnI7PUqBv1GRtSm9abYthdbvCOwuDAPw=; b=X8RcFMsf+IlqIFmYdfuFnk4Z2QEQeweWnO8G29tlfBEOfIpox/Wd6D3n8Q8o+6iNyVB+caV5y0pFVwYS6DG+St2DlEivtAan2w7FlWYXRjyaA+VqOf/WQ7INu661a2S4PCdZXK0sKOTrwmt758RFNAADw9JDJPrVhRp6v7RPjEE/r5ONwaciQZNEzaKy5NjH6o1FWYrg+q0CLxycfARzsE2f9Glb9I/og+uh5tmBwmhU3fEScJZb9/98Y8moUhGgMckihKllme2aaHQO25v0YpjYRwZ6edxQm2RWUOdfx+HdQvL6t+FNXiJIfmPXn24aLBFbfVZfm4qDRLKa71GGeQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YM0T28/oFi/bnI7PUqBv1GRtSm9abYthdbvCOwuDAPw=; b=Oyyw76A/u27BgtWcRKfJp06CyeZLvTiqFE3ZBW+koilBZpotRcGg16KtAKHfIptkHO5yT9M4WzsMLJG9Qdm1vzR23oXOQmKsWbgyBmfbK1tgVMs7uKuFAmna42qq0ergM6YMxt6hGJNgXOxxVXLO/IB+QhjQIQZKuimL7EYHRgbjPSZLdNCx0Tkwz8KxjvbjtsvcHsfpXA8YEMv1cO/hF1yMhVILsYFSb11kzszufa/n75sG624hWWWmGv0wa0cjoK3dLZnDsXXXeq4gg6jh+78pEPrYNEoKJp/PzDhmoSNP0X5JSLz2AH5Zn3MkCAYNojUfZe9PWIxLDhF++YrSUQ== X-Android-Message-ID: <6b66f1cf-9a04-456c-96d5-6c2948355420@email.android.com> X-TMN: [ITnrNjdAzZyVaR4fVXgTNDf4a6CRXTkU] X-ClientProxiedBy: AS4P190CA0063.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:656::14) To DB9PR10MB6689.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:3d3::21) X-Microsoft-Original-Message-ID: <6b66f1cf-9a04-456c-96d5-6c2948355420@email.android.com> X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB9PR10MB6689:EE_|AM9PR10MB3990:EE_ X-MS-Office365-Filtering-Correlation-Id: 2b7415b2-e4de-4255-d1c4-08dc3f9a177a X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pvnAWSfoQTTNHCJLAf6zPdxz6lcfoWJiVsan2WDl52Vq0d+xF4j/PvhdBjMAd7tGwk7UMAjfv2eeduejzRa30IibNBbeZY3uInH1Vktan0ExlwBvHA/0Z0mcF8t3oFEzXhjD5HWQmzDG1crchl+xizfNRaeBy/hr4RJWsys/9+Hdlflmi+hMmKnTmPDGFxCNunuZ+BKWnjA1A8mEenoKXNbK/tAEOX0ogoS7RExq8JDnsvwgYqfrNOmydqNsculPIbWpyGWCcr3SFKBDIgyPANXM8hDA2XXy85xUmCpsOc8ei7Y/yqwsffsFsitzf41HK7NS+4X1hbzb6zglWbOqOIw/0KwQ3D6+b7zRT0+zvjJxIpzH6Tl1gK3LKiY4+tBhUWRE4GRe4QbQbvh7Kl4x+AB1yjK+V8U1Bbq/xt4c6x9p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K0FkNXFHSkxhSjN3bnJrSHBo?= =?utf-8?Q?t81WyPCdZLUcIv9DMvkQ7F9UeHgBN6L5xk1jPR4drXqE=3D?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-6b909.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 2b7415b2-e4de-4255-d1c4-08dc3f9a177a X-MS-Exchange-CrossTenant-AuthSource: DB9PR10MB6689.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Mar 2024 18:03:43.5238 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR10MB3990 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: <DB9PR10MB6689EA455D5C8580B90EA8F383272@DB9PR10MB6689.EURPRD10.PROD.OUTLOOK.COM> Bytes: 8226 Hi, I was replacing some os.path stuff with Pathlib and I discovered this: Path(256 * "x").is_file() # OSError os.path.isfile(256 * "x") # bool Is this intended? Does pathlib try to resemble os.path as closely as possible? Best wishes, Albert-Jan