Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #102075
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Vincent Vande Vyvre <vincent.vande.vyvre@telenet.be> |
| Newsgroups | comp.lang.python |
| Subject | Re: Attribute path not in PurePosixPath ? |
| Date | Sun, 24 Jan 2016 10:00:24 +0100 |
| Lines | 37 |
| Message-ID | <mailman.199.1453626373.15297.python-list@python.org> (permalink) |
| References | <f7ec5b27-8155-4e07-b556-157434209680@googlegroups.com> <56a475a2$0$1524$c3e8da3$5496439d@news.astraweb.com> <56A48416.5010003@telenet.be> |
| Reply-To | vincent.vandevyvre@oqapy.eu |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-Trace | news.uni-berlin.de zgj1gRg+ZUzaTTf88oOVDwl6xlnpkHrTwXUyK0CH56hA== |
| Return-Path | <vincent.vande.vyvre@telenet.be> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.024 |
| X-Spam-Evidence | '*H*': 0.95; '*S*': 0.00; 'skip:[ 30': 0.09; 'python': 0.10; 'subject:not': 0.11; 'from:name:vincent vande vyvre': 0.16; 'received:195.130': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'received:telenet-ops.be': 0.16; '\xe9crit': 0.16; 'attribute': 0.18; '>>>': 0.20; '"",': 0.22; 'doc': 0.22; 'import': 0.24; '(most': 0.24; 'header:In-Reply- To:1': 0.24; 'header:User-Agent:1': 0.26; 'linux': 0.26; 'subject: ?': 0.27; "skip:' 10": 0.28; 'received:be': 0.30; 'url:python': 0.33; 'traceback': 0.33; 'file': 0.34; 'skip:p 30': 0.35; 'url:org': 0.36; 'url:library': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'skip:p 20': 0.38; 'hi,': 0.38; 'to:addr:python.org': 0.40; 'url:3': 0.60; 'charset:windows-1252': 0.62; 'more': 0.63; 'header:Reply-To:1': 0.67; 'reply-to:no real name:2**0': 0.71; 'url:path': 0.84 |
| User-Agent | Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 |
| In-Reply-To | <56A48416.5010003@telenet.be> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| 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> |
| Xref | csiph.com comp.lang.python:102075 |
Show key headers only | View raw
Le 24/01/2016 08:58, Vincent Vande Vyvre a écrit :
> Hi,
>
> Refering to the doc
> https://docs.python.org/3/library/pathlib.html?highlight=pathlib#pathlib.PurePath.path
>
> ----------------------------------------------------------------------------
>
> Python 3.4.3 (default, Oct 14 2015, 20:28:29)
> [GCC 4.8.4] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from pathlib import PurePath
> >>> p = PurePath('/home/vincent/Images')
> >>> p.name
> 'Images'
> >>> p.suffix
> ''
> >>> p.parent
> PurePosixPath('/home/vincent')
> >>> [parent for parent in p.parents]
> [PurePosixPath('/home/vincent'), PurePosixPath('/home'),
> PurePosixPath('/')]
> >>> p.path
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> AttributeError: 'PurePosixPath' object has no attribute 'path'
> ----------------------------------------------------------------------------
>
>
> Am I misunderstood the doc ?
OOps, is new in 3.4.5
Sorry for the noise.
Vincent
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Calculating longitudinal acceleration, lateral acceleration and normal acceleration Robert James Liguori <gliesian66@gmail.com> - 2016-01-23 16:27 -0800
Re: Calculating longitudinal acceleration, lateral acceleration and normal acceleration Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2016-01-24 17:29 +1100
Re: Calculating longitudinal acceleration, lateral acceleration and normal acceleration Bernardo Sulzbach <mafagafogigante@gmail.com> - 2016-01-24 04:33 -0200
Re: Calculating longitudinal acceleration, lateral acceleration and normal acceleration Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2016-01-24 17:56 +1100
Attribute path not in PurePosixPath ? Vincent Vande Vyvre <vincent.vande.vyvre@telenet.be> - 2016-01-24 08:58 +0100
Re: Attribute path not in PurePosixPath ? Vincent Vande Vyvre <vincent.vande.vyvre@telenet.be> - 2016-01-24 10:00 +0100
Re: Calculating longitudinal acceleration, lateral acceleration and normal acceleration Grant Edwards <invalid@invalid.invalid> - 2016-01-24 16:46 +0000
Re: Calculating longitudinal acceleration, lateral acceleration and normal acceleration Pete Dowdell <contact@stridebird.com> - 2016-01-24 13:46 +0700
csiph-web