Project

Profile

Help

Bug #6327

closed

TypeError: __str__ returned non-string (type NoneType)

Added by O'Neil Delpratt 11 months ago. Updated 6 months ago.

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

100%

Estimated time:
Applies to branch:
Fix Committed on Branch:
12
Fixed in Maintenance Release:
Found in version:
12.4.1
Fixed in version:
12.5
SaxonC Languages:
SaxonC Platforms:
SaxonC Architecture:

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 11 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 11 months ago

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

Updated by O'Neil Delpratt 11 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.

Actions #4

Updated by O'Neil Delpratt 6 months ago

  • Status changed from Resolved to Closed
  • Fixed in version set to 12.5

Bug fix applied in the Saxon 12.5 Maintenance release.

Actions #5

Updated by Community Admin 6 months ago

  • Fix Committed on Branch 12 added

Please register to edit this issue

Also available in: Atom PDF