ion-python icon indicating copy to clipboard operation
ion-python copied to clipboard

A Python implementation of Amazon Ion.

Results 83 ion-python issues
Sort by recently updated
recently updated
newest added

Hi all, I work on [Ray](https://github.com/ray-project/ray) and we have users who are interested in using Ion in conjunction with Ray. We use the [pickle 5 serialization protocol](https://www.python.org/dev/peps/pep-0574/) internally, so if...

The current implementation of `dump` requires that the file passed to `dump` is opened in (Python's) binary mode (`'b'`). The decision on whether the content of the file is Ion...

enhancement
documentation

For example `'$99'` must be interpreted as the symbol with text `$99` and not the symbol with sid 99 See https://github.com/amzn/ion-tests/commit/b2ca9ef2ccb630624d08f1d48e16ec76575f4410#diff-0934504083c483f22aa55bf23d83f02c

See https://github.com/amzn/ion-tests/commit/c40d0826d4de60904f3f3c5b1bea811e7314b3b7#diff-4f3faa96fac4cd0f113e057d29ed223e

Nop pads cannot be annotated: * https://github.com/amzn/ion-tests/blob/master/iontestdata/bad/nopPadWithAnnotations.10n They are valid inside structs: * https://github.com/amzn/ion-tests/blob/master/iontestdata/good/nopPadInsideEmptyStructNonZeroSymbolId.10n * https://github.com/amzn/ion-tests/blob/master/iontestdata/good/nopPadInsideStructWithNopPadThenValueNonZeroSymbolId.10n Relevant spec excerpt: > NOP padding is valid anywhere a value can be encoded,...

https://github.com/amzn/ion-tests/blob/master/iontestdata/bad/negativeIntZero.10n

Multiple `import` and/or multiple `symbols` declarations must throw an error * https://github.com/amzn/ion-tests/blob/master/iontestdata/bad/localSymbolTableWithMultipleImportsFields.10n * https://github.com/amzn/ion-tests/blob/master/iontestdata/bad/localSymbolTableWithMultipleImportsFields.ion * https://github.com/amzn/ion-tests/blob/master/iontestdata/bad/localSymbolTableWithMultipleSymbolsAndImportsFields.10n * https://github.com/amzn/ion-tests/blob/master/iontestdata/bad/localSymbolTableWithMultipleSymbolsAndImportsFields.ion * https://github.com/amzn/ion-tests/blob/master/iontestdata/bad/localSymbolTableWithMultipleSymbolsFields.10n * https://github.com/amzn/ion-tests/blob/master/iontestdata/bad/localSymbolTableWithMultipleSymbolsFields.ion

See https://github.com/amzn/ion-tests/blob/master/iontestdata/good/whitespace.ion

See https://github.com/amzn/ion-tests/blob/master/iontestdata/good/equivs/localSymbolTableNullSlots.ion

For a file containing the following symbol: ``` '🏳0🌈️' ``` the following behavior is observed: ``` >>> >>> with open('', 'r') as f: ... print(ion.load(f, single_value=False)) ... [IonPySymbol(text='🏳0🌈️', sid=None, location=None)]...

bug