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


Groups > comp.lang.python > #69070

[ANN] pathlib 1.0

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!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
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/simple; d=python.org; s=200901; t=1395779786; bh=COJxRm+unkGBBxnrrBAtjWVVP/k47GcC+/7013SXgYs=; h=To:From:Subject:Date:From; b=EXhi91t2ySa2NQcqZ6dS2ZEEkmv4DGZF2ViCfMidviVAtdhj4g4KzXgvFVAFn9kCU ImUfQa+8Xh6yJxWgLgr04YIV4bwAvHtHIzmWYrXH+vYlMaH2VyW0A48unlwVqHhWDu leU+vKYZUmH6K8Y/mxbeWJQH6WlWZcTEEVwpA4/g=
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'algorithm': 0.04; 'argument': 0.05; 'attribute': 0.07; 'fixes': 0.07; 'paths': 0.07; 'skip:` 10': 0.07; 'subject:ANN': 0.07; 'string': 0.09; '------------': 0.09; 'bits': 0.09; 'calls.': 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; 'release,': 0.09; 'sanity': 0.09; '--------': 0.10; 'python': 0.11; 'bug': 0.12; '2.7': 0.14; 'mostly': 0.14; 'windows': 0.15; '#21:': 0.16; '-------': 0.16; 'ascii,': 0.16; 'backward': 0.16; 'division.': 0.16; 'eliminating': 0.16; 'filesystem': 0.16; 'from:name:antoine pitrou': 0.16; 'ignoring': 0.16; 'message-id:@post.gmane.org': 0.16; 'operators,': 0.16; 'pathnames': 0.16; 'paths.': 0.16; 'permissions,': 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; 'semantics': 0.16; 'subject:1.0': 0.16; 'symlink': 0.16; 'usable': 0.16; 'from:addr:python.org': 0.16; 'fix': 0.17; 'later': 0.20; 'subject:] ': 0.20; 'install': 0.23; 'header:User-Agent:1': 0.23; '(such': 0.24; 'comparing': 0.24; 'library,': 0.24; 'unicode': 0.24; 'certain': 0.27; 'header:X -Complaints-To:1': 0.27; 'mode': 0.30; 'easier': 0.31; '3.2': 0.31; 'etc.).': 0.31; 'publicly': 0.31; 'testing.': 0.31; 'types.': 0.31; 'regular': 0.32; 'classes': 0.35; 'created': 0.35; 'except': 0.35; 'but': 0.35; 'add': 0.35; 'version': 0.36; 'found.': 0.36; 'functions.': 0.36; 'library.': 0.36; 'done': 0.36; 'method': 0.36; 'charset:us-ascii': 0.36; 'should': 0.36; 'example,': 0.37; 'requirements': 0.37; 'skip:- 20': 0.37; 'easily': 0.37; 'checks': 0.38; 'handle': 0.38; 'to:addr:python- list': 0.38; 'issue': 0.38; 'little': 0.38; 'expect': 0.39; 'subject:[': 0.39; 'to:addr:python.org': 0.39; 'skip:p 20': 0.39; 'received:org': 0.40; 'called': 0.40; 'release': 0.40; 'new': 0.61; 'further': 0.61; 'happen': 0.63; 'more': 0.64; 'different': 0.65; 'advantages': 0.68; 'default': 0.69; 'receive': 0.70; 'below.': 0.71; 'future,': 0.83; '2.7.': 0.84; '3.4': 0.84; 'antoine.': 0.84; 'trick.': 0.84; 'updates,': 0.84; 'announcing': 0.91; 'releases.': 0.91; 'severe': 0.91; 'developments': 0.95
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Antoine Pitrou <antoine@python.org>
Subject [ANN] pathlib 1.0
Date Tue, 25 Mar 2014 20:35:58 +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:28.0) Gecko/20100101 Firefox/28.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 <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>
Newsgroups comp.lang.python
Message-ID <mailman.8541.1395779787.18130.python-list@python.org> (permalink)
Lines 65
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1395779787 news.xs4all.nl 2905 [2001:888:2000:d::a6]:40459
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:69070

Show key headers only | View raw


Hello,

I am announcing the release of pathlib 1.0.  This version brings pathlib
up to date with the official Python 3.4 release, and also fixes a couple of 
2.7-specific issues.  Detailed changelog can be found further below.

In the future, I expect the standalone (PyPI) version of pathlib to receive
little to no updates, except if severe issues are found. New developments
and regular bug fixes will happen mostly in the Python standard library,
and be publicly available in official Python releases.

Overview
--------

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.

Install
-------

In Python 3.4, pathlib is now part of the standard library.  For Python 3.3
and earlier, ``easy_install pathlib`` or ``pip install pathlib`` should do
the trick.

Changelog for version 1.0
-------------------------

- Python issue #20765: Add missing documentation for PurePath.with_name()
  and PurePath.with_suffix().
- Fix test_mkdir_parents when the working directory has additional bits
  set (such as the setgid or sticky bits).
- Python issue #20111: pathlib.Path.with_suffix() now sanity checks the
  given suffix.
- Python issue #19918: Fix PurePath.relative_to() under Windows.
- Python issue #19921: When Path.mkdir() is called with parents=True, any
  missing parent is created with the default permissions, ignoring the mode
  argument (mimicking the POSIX "mkdir -p" command).
- Python issue #19887: Improve the Path.resolve() algorithm to support
  certain symlink chains.
- Make pathlib usable under Python 2.7 with unicode pathnames (only pure
  ASCII, though).
- Issue #21: fix TypeError under Python 2.7 when using new division.
- Add tox support for easier testing.


Regards

Antoine.

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


Thread

[ANN] pathlib 1.0 Antoine Pitrou <antoine@python.org> - 2014-03-25 20:35 +0000

csiph-web