Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #107651
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Random832 <random832@fastmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: Why does pathlib not have is_readable() & things like that? |
| Date | Tue, 26 Apr 2016 09:57:24 -0400 |
| Lines | 7 |
| Message-ID | <mailman.106.1461679046.32212.python-list@python.org> (permalink) |
| References | <6474vcx0q6.ln2@news.ducksburg.com> <1461679044.2467938.590028273.4DEA02AA@webmail.messagingengine.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain |
| Content-Transfer-Encoding | 7bit |
| X-Trace | news.uni-berlin.de uggWwsLxMjAf/6I4gqK2cQHQMi2IvbCm789PWT5vNu4g== |
| Return-Path | <random832@fastmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.003 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'that?': 0.05; 'received:internal': 0.09; 'subject:Why': 0.09; 'python': 0.10; 'subject:not': 0.11; 'useful,': 0.13; 'adam': 0.16; 'message- id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:10.202.2.44': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:compute4.internal': 0.16; 'received:io': 0.16; 'received:messagingengine.com': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'library,': 0.18; 'bit': 0.23; 'header:In-Reply- To:1': 0.24; "doesn't": 0.26; 'subject:that': 0.29; "i'm": 0.30; 'subject:like': 0.33; 'surprised': 0.33; 'open': 0.33; 'tue,': 0.34; 'file': 0.34; 'gives': 0.35; 'but': 0.36; 'there': 0.36; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'things': 0.38; 'received:66': 0.38; 'to:addr:python.org': 0.40; 'header:Message-Id:1': 0.61; 'offer': 0.66; '26,': 0.72; 'subject:have': 0.80; 'discovered': 0.83 |
| DKIM-Signature | v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=31ivDonVbHTIgb2xWyT7x8mIVtM=; b=x65Nje PIKKKGATuaC7Ora1Il6JwhwViRpn2mLjSCl/vE0IrKh2M/MupuWi6oaTGqWOj0BK 5G75iNFY4QDb/DhhlQcKs+tVsoZnF6YGEZbXUR2Y5+Ck+XwHjsloj+dzBGie+uj2 hAy/+LkjXpjwpi22UBB60LpXMRtzad2gIbdbg= |
| DKIM-Signature | v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=31ivDonVbHTIgb2 xWyT7x8mIVtM=; b=OY5lqCyaGJg75LMQi9jz1IO0BcrS2LnnsLlpvlukOdFszvF IEVb0wAJQMbJV3wzFyeb0LrdrpSoidURNQDP+QUkOtkwqrk4EbP6I0hpzFEDzDrn AJs8vhEtkVuq4AxbN85LA7IC789XK+vbWl+YSZVg9vpniurHwS6/IzMyFGcQ= |
| X-Sasl-Enc | UmXiD0/MjYRYjEjB8uGcIYT4CLK+NvbcRBLq0n51gW4n 1461679044 |
| X-Mailer | MessagingEngine.com Webmail Interface - ajax-b462e126 |
| In-Reply-To | <6474vcx0q6.ln2@news.ducksburg.com> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.22 |
| 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 | <http://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 | <1461679044.2467938.590028273.4DEA02AA@webmail.messagingengine.com> |
| X-Mailman-Original-References | <6474vcx0q6.ln2@news.ducksburg.com> |
| Xref | csiph.com comp.lang.python:107651 |
Show key headers only | View raw
On Tue, Apr 26, 2016, at 09:30, Adam Funk wrote: > I recently discovered pathlib in the Python 3 standard library, & find > it very useful, but I'm a bit surprised that it doesn't offer things > like is_readable() and is_writable. Is there a good reason for that? Well, one reason would be EAFP. Just try to open the file and see if it gives you a PermissionError.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Why does pathlib not have is_readable() & things like that? Adam Funk <a24061@ducksburg.com> - 2016-04-26 14:30 +0100
Re: Why does pathlib not have is_readable() & things like that? Random832 <random832@fastmail.com> - 2016-04-26 09:57 -0400
Re: Why does pathlib not have is_readable() & things like that? Adam Funk <a24061@ducksburg.com> - 2016-04-28 14:02 +0100
Re: Why does pathlib not have is_readable() & things like that? Jussi Piitulainen <jussi.piitulainen@helsinki.fi> - 2016-04-28 16:24 +0300
Re: Why does pathlib not have is_readable() & things like that? Grant Edwards <grant.b.edwards@gmail.com> - 2016-04-28 13:34 +0000
Re: Why does pathlib not have is_readable() & things like that? Adam Funk <a24061@ducksburg.com> - 2016-04-29 10:49 +0100
Re: Why does pathlib not have is_readable() & things like that? Jussi Piitulainen <jussi.piitulainen@helsinki.fi> - 2016-04-29 14:51 +0300
Re: Why does pathlib not have is_readable() & things like that? eryk sun <eryksun@gmail.com> - 2016-04-29 10:09 -0500
Re: Why does pathlib not have is_readable() & things like that? Grant Edwards <grant.b.edwards@gmail.com> - 2016-04-29 23:53 +0000
Re: Why does pathlib not have is_readable() & things like that? Steven D'Aprano <steve@pearwood.info> - 2016-04-27 01:46 +1000
Re: Why does pathlib not have is_readable() & things like that? Adam Funk <a24061@ducksburg.com> - 2016-04-28 13:57 +0100
csiph-web