diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2019-08-24 14:57:46 +0200 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2019-08-26 21:37:10 +0200 |
commit | 870060605e3955114766a979de1afadbea4dc603 (patch) | |
tree | 87c6a0e3656ad0eb3758f2b14cfceadde689188b /README.rst | |
parent | 5c1abbef4d86bcd1ec68cf5deb90b559faf25502 (diff) | |
download | semantic-version-870060605e3955114766a979de1afadbea4dc603.tar.gz |
Deprecate support for 'partial' versions.rba/pre-2.8
Their comparison semantics were ill-defined, and mostly an
implementation detail for the old, 'native' specs.
Diffstat (limited to 'README.rst')
-rw-r--r-- | README.rst | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -103,14 +103,6 @@ If the provided version string is invalid, a :exc:`ValueError` will be raised: raise ValueError('Invalid version string: %r' % version_string) ValueError: Invalid version string: '0.1' -In order to define "relaxed" version strings, you must pass in ``partial=True``: - -.. code-block:: pycon - - >>> v = semantic_version.Version('0.1', partial=True) - >>> list(v) - [0, 1, None, None, None] - Obviously, :class:`Versions <Version>` can be compared: |