Skip to content

the empy string from OpenMath is not converted to Python #28

@MarcoCostantini

Description

@MarcoCostantini

The expected output is in both cases the empty string ''

$ python3
Python 3.8.2 (default, Apr 27 2020, 15:53:34) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from openmath import encoder, decoder, openmath as om
>>> from openmath.convert import DefaultConverter as converter
>>> converter.to_python( decoder.decode_bytes( b"<OMSTR></OMSTR>", snippet=True ) )
>>> converter.to_python( decoder.decode_bytes( b"<OMSTR/>", snippet=True ) )
>>> 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions