Project

Profile

Help

Bug #6443

open

Python PySaxonProcessor.make_atomic_value is returning None instead of a value

Added by Matt Patterson 6 months ago. Updated 6 months ago.

Status:
New
Priority:
Low
Category:
Python API
Start date:
2024-06-03
Due date:
% Done:

0%

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

Description

The make_atomic_value method of PySaxonProcessor is returning None and not a value.

The second argument is also supposed to be a string, but there's an error thrown unless it's a bytes:

>>> from saxonche import PySaxonProcessor
>>> proc = PySaxonProcessor()
>>> proc.make_atomic_value("string", "hello world")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "python_saxon/saxonc.pyx", line 573, in saxonche.PySaxonProcessor.make_atomic_value
TypeError: expected bytes, str found
>>> v = proc.make_atomic_value("string", b"hello world")
>>> v is None
True
Actions #1

Updated by Matt Patterson 6 months ago

  • Description updated (diff)

Please register to edit this issue

Also available in: Atom PDF