aboutsummaryrefslogtreecommitdiff
path: root/pyasn1/type/base.py
AgeCommit message (Collapse)Author
2019-07-13Document base ASN.1 typesIlya Etingof
Also many fixes here and there to docs and docstrings.
2019-07-13Fix Python builtins ReST references in docstringsIlya Etingof
2019-07-13Remove Python `id` from `repr`Ilya Etingof
It seems to clutter representation printout, especially in the rendered docs.
2019-07-09Add more docs on `OpenType` (#166)Ilya Etingof
This change adds more explanations and examples on ASN.1 ANY DEFINED BY syntax (OpenType).
2019-06-23SequenceOf/SetOf to remain a schema objects (#162)Ilya Etingof
* Add `omitEmptyOptionals` encoder option Added `omitEmptyOptionals` option which is respected by `Sequence` and `Set` encoders. When `omitEmptyOptionals` is set to `True`, empty initialized optional components are not encoded. Default is `False`. * Change `SequenceOf`/`SetOf` behaviour - New elements to `SequenceOf`/`SetOf` objects can now be added at any position - the requirement for the new elements to reside at the end of the existing ones (i.e. s[len(s)] = 123) is removed. - Removed default initializer from `SequenceOf`/`SetOf` types to ensure consistent behaviour with the rest of ASN.1 types. Before this change, `SequenceOf`/`SetOf` instances immediately become value objects behaving like an empty list. With this change, `SequenceOf`/`SetOf` objects remain schema objects unless a component is added or `.clear()` is called. - Added `.reset()` method to all constructed types to turn value object into a schema object.
2018-12-29Release 0.4.5Ilya Etingof
Also extend copyright to the year 2019
2018-07-29Fix some typos and prepare for 0.4.5Ilya Etingof
2018-03-29copyright years extendedIlya Etingof
2017-12-03NoValue.__repr__() should report object address in hexIlya Etingof
2017-11-23imports pep8'edIlya Etingof
2017-11-19Start `.prettyPrint` deprecation (#103)Ilya Etingof
* __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.
2017-11-18__repr__() of ASN.1 types reworked for better readability (#102)Ilya Etingof
At the same time __repr__() stopped being eval()-compliant
2017-11-14migrated docs and references from sourceforge.netIlya Etingof
2017-11-14serialization -> serialisation nitpicksIlya Etingof
2017-11-14added example code snippets to the docstrings (#101)Ilya Etingof
2017-11-09Merge branch 'devel-0.4.1' of github.com:etingof/pyasn1 into devel-0.4.1Ilya Etingof
2017-11-09pep8 (stray spaces removed)Ilya Etingof
2017-10-29Pickle protocol fixes (#99)Ilya Etingof
* do not blow up on pickle protocol attributes look up * added Pickle tests * More fixes to pickle protocol support * __slots__ lookup allowed at NoValue * SizedInteger moved from BitString scope to the univ module scope
2017-10-19Ditched unnecessary .clone/.subtype overrides (#94)Ilya Etingof
* rearranged `.clone()` and `.subtype()` docstrings * legacy Asn1ItemBase.prettyPrinter() method removed
2017-10-16Remove None initializer support (#91)Ilya Etingof
* `None` legacy initializer support removed * Default value for `Null` removed
2017-10-11`setupComponent()` legacy initializer removedIlya Etingof
2017-10-11Docs rearrangement (#88)Ilya Etingof
Docs rearranged, simplified and reworded, Sphinx theme changed.
2017-09-19Set/Sequence & SetOf/SequenceOf subscription to raise Key/IndexError (#73)Ilya Etingof
2017-09-03fix to get explicit tags from substrate to the recovered ASN.1 objectIlya Etingof
2017-08-22more efficient constructed types initializationIlya Etingof
2017-08-21ASN.1 types instantiation performance improvedIlya Etingof
2017-08-02more fixes to threading racingIlya Etingof
2017-07-30various documentation fixesIlya Etingof
2017-07-26fix to make property.setter working on Py2.5-Ilya Etingof
2017-07-23ASN.1 types __init__(), .clone()/.subtype() refactored into kwargsIlya Etingof
2017-07-22handle .readOnly() read racingIlya Etingof
2017-07-22.namedValues refactored into a read-only attributeIlya Etingof
Also the read-only attributes guard refactored
2017-07-22.tagSet refactored into a read-only attributeIlya Etingof
2017-07-22.subtypeSpec and .sizeSpec refactored into a read-only attributesIlya Etingof
2017-07-22.componentType refactored into a read-only attributeIlya Etingof
2017-07-22added missing callable() in Py 3.0-3.1Ilya Etingof
2017-07-21WIP: setup properties through metaclassIlya Etingof
2017-07-21SetOf/SequenceOf field type container implementedIlya Etingof
.componentType attribute of constructed types refactored into property
2017-07-20WIP: SetOf/SequenceOf field type container first introducedIlya Etingof
2017-07-20UnnamedType container first introducedIlya Etingof
For the purpose of unifying .componentType property across constructed types
2017-04-09deprecated .hasValue() is now supported by Constructed objectsIlya Etingof
2017-04-06cache Any.tagMap dictIlya Etingof
2017-03-12.getComponent*() changed to lazily instantiate underlying typeIlya Etingof
Also: * SetOf/SequenceOf types can not have "holes" anymore * optional/default components of constructed types refactored for better efficiency and flexibility.
2017-03-10faster decoders lookup by setting typeId to every ASN.1 typeIlya Etingof
2017-03-07subtypeSpec refactored into a propertyIlya Etingof
2017-03-07tags-related getters refactored into descriptors/propertiesIlya Etingof
2017-03-01more efficient constrains computationIlya Etingof
2017-03-01reduce the number of bool() callsIlya Etingof
2017-02-27fixes to Sequence.setComponentByPosition() and base scalar type lazy hashingIlya Etingof
2017-02-26reduce frequence of expensive isinstance() callsIlya Etingof