Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #40299

ANN: pathlib 0.8

Path csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'url:pypi': 0.03; 'attribute': 0.05; 'paths': 0.05; 'repository': 0.05; 'url:bitbucket': 0.05; '------------': 0.07; 'calls.': 0.07; 'executable': 0.07; 'subject:ANN': 0.07; 'python': 0.09; '-------': 0.09; 'filesystem': 0.09; 'objects.': 0.09; 'objects:': 0.09; 'os.path': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'semantics': 0.09; 'backward': 0.16; 'bit.': 0.16; 'eliminating': 0.16; 'from:addr:pitrou.net': 0.16; 'from:addr:solipsis': 0.16; 'from:name:antoine pitrou': 0.16; 'ignores': 0.16; 'message-id:@post.gmane.org': 0.16; 'operators,': 0.16; 'paths.': 0.16; 'received:213.41.240': 0.16; 'received:213.41.240.54': 0.16; 'received:80.91.229.3': 0.16; 'received:charlus.yi.org': 0.16; 'received:plane.gmane.org': 0.16; 'received:yi.org': 0.16; 'later': 0.16; 'string': 0.17; 'fix': 0.17; 'comparing': 0.17; 'windows': 0.19; 'changes': 0.20; 'tracker': 0.20; '3.2': 0.22; 'header:User-Agent:1': 0.26; 'creating': 0.26; 'functions.': 0.27; 'header:X-Complaints-To:1': 0.28; 'types.': 0.29; 'usable': 0.29; 'classes': 0.30; 'hosted': 0.30; 'url:python': 0.32; 'file': 0.32; 'skip:- 10': 0.32; 'docs': 0.33; 'handle': 0.33; 'to:addr:python-list': 0.33; 'requirements': 0.33; 'done': 0.34; 'path': 0.35; 'add': 0.36; 'received:org': 0.36; 'but': 0.36; 'url:org': 0.36; 'method': 0.36; 'charset:us- ascii': 0.36; 'subject:: ': 0.38; 'url:docs': 0.38; 'url:en': 0.38; 'to:addr:python.org': 0.39; 'easily': 0.39; 'header:Received:5': 0.40; 'different': 0.63; 'more': 0.63; 'advantages': 0.71; '0.8': 0.84; '2.7.': 0.84; 'antoine.': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Antoine Pitrou <solipsis@pitrou.net>
Subject ANN: pathlib 0.8
Date Fri, 1 Mar 2013 22:38:28 +0000 (UTC)
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host sea.gmane.org
User-Agent Loom/3.14 (http://gmane.org/)
X-Loom-IP 213.41.240.54 (Mozilla/5.0 (X11; Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2758.1362177524.2939.python-list@python.org> (permalink)
Lines 55
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1362177524 news.xs4all.nl 6912 [2001:888:2000:d::a6]:48789
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:40299

Show key headers only | View raw


pathlib 0.8 has been released at https://pypi.python.org/pypi/pathlib/


Changes
-------

- Add PurePath.name and PurePath.anchor.
- Add Path.owner and Path.group.
- Add Path.replace().
- Add Path.as_uri().
- Issue #10: when creating a file with Path.open(), don't set the executable
  bit.
- Issue #11: fix comparisons with non-Path objects.

What is pathlib?
----------------

pathlib offers a set of classes to handle filesystem paths.  It offers the
following advantages over using string objects:

* No more cumbersome use of os and os.path functions.  Everything can be
  done easily through operators, attribute accesses, and method calls.

* Embodies the semantics of different path types.  For example, comparing
  Windows paths ignores casing.

* Well-defined semantics, eliminating any warts or ambiguities (forward vs.
  backward slashes, etc.).

Requirements
------------

Python 3.2 or later is recommended, but pathlib is also usable with Python 2.7.


Documentation
-------------

The full documentation can be read at `Read the Docs
<http://readthedocs.org/docs/pathlib/en/latest/>`_.


Contributing
------------

The issue tracker and repository are hosted by `BitBucket
<https://bitbucket.org/pitrou/pathlib/>`_.


Regards

Antoine.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

ANN: pathlib 0.8 Antoine Pitrou <solipsis@pitrou.net> - 2013-03-01 22:38 +0000

csiph-web