Project

Profile

Help

Bug #6327

closed

TypeError: __str__ returned non-string (type NoneType)

Added by O'Neil Delpratt 3 months ago. Updated 3 months ago.

Status:
Resolved
Priority:
Normal
Category:
Python API
Start date:
2024-01-19
Due date:
2024-01-19
% Done:

100%

Estimated time:
Found in version:
12.4.1
Fixed in version:
Platforms:

Description

Reported by user:

A newly created, but empty PyXdmValue gives a TypeError.

E.g.

    xdm_value = PyXdmValue()

    print(xdm_value)

It appears to still give an error

Traceback (most recent call last):
  File "C:\Users\marti\PycharmProjects\SaxonC12PyXdmValueTest1\main.py", line 6, in <module>
    print(xdm_value)
TypeError: __str__ returned non-string (type NoneType)

Related issues

Related to SaxonC - Bug #6333: Representing empty sequenceIn ProgressO'Neil Delpratt2024-01-29

Actions
Follows SaxonC - Bug #6324: PyXdmValue toString causes SIGSEGV, Segmentation faultClosedO'Neil Delpratt2024-01-18

Actions
Actions #1

Updated by O'Neil Delpratt 3 months ago

  • Due date set to 2024-01-19
  • Start date changed from 2024-01-25 to 2024-01-19
  • Follows Bug #6324: PyXdmValue toString causes SIGSEGV, Segmentation fault added
Actions #2

Updated by O'Neil Delpratt 3 months ago

  • Related to Bug #6333: Representing empty sequence added
Actions #3

Updated by O'Neil Delpratt 3 months ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Bug fix and committed to the repo. Tests added to pytest.

The PyXdmValue() is treated as an EmptySequence therefore it can be passed as a parameter to a processor.

Please register to edit this issue

Also available in: Atom PDF