diff options
author | Ilya Etingof <etingof@gmail.com> | 2017-11-19 16:41:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-19 16:41:26 +0100 |
commit | 5efe9f213563560d26bd34b6d9b3642642565b41 (patch) | |
tree | 87424f2b94fb3360c15ccad18c064518e3328830 /CHANGES.rst | |
parent | c156221fce2b2e9061ee5095ce6488c829e62698 (diff) | |
download | pyasn1-5efe9f213563560d26bd34b6d9b3642642565b41.tar.gz |
Start `.prettyPrint` deprecation (#103)
* __str__() of ASN.1 types reworked to serve instead of .prettyPrint()
Related changes: `str()` on enumerations and boolean will return
a string label rather than a number.
Diffstat (limited to 'CHANGES.rst')
-rw-r--r-- | CHANGES.rst | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/CHANGES.rst b/CHANGES.rst index 3e6d96e..eaa6013 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,5 +1,5 @@ -Revision 0.4.1, released XX-10-2017 +Revision 0.4.1, released XX-11-2017 ----------------------------------- - ANY DEFINED BY clause support implemented @@ -11,8 +11,14 @@ Revision 0.4.1, released XX-10-2017 parameter to return instead if schema object is to be returned - Constructed types' .getComponentBy*() methods accept the `instantiate` parameter to disable automatic inner component instantiation -- The ASN.1 types `__repr__` implementation reworked for better readability +- The ASN.1 types' `__repr__` implementation reworked for better readability at the cost of not being `eval`-compliant +- Most ASN.1 types' `__str__` magic methods (except for OctetString and + character types) reworked to call `.prettyPrint()` rather than `.prettyPrint` + calling `__str__` as it was before. The intention is to eventually deprecate + `.prettyPrint()` in favor of `str()`. + The other related change is that `str()` of enumerations and boolean types + will return string label instead of number. - Fixed Choice.clear() to fully reset internal state of the object - Sphinx documentation rearranged, simplified and reworded - The `isValue` singleton is now the only way to indicate ASN.1 schema |