Maintenance: Planio will be observing a scheduled maintenance window this Sunday, November 10, 2024 from 20:00 UTC until 21:00 UTC to perform important network maintenance in our primary data center. Your Planio account will be unavailable for a few minutes during this maintenance window.
Actions
Bug #5342
closedPyXdmMap and PyXdmArray should be iterable
Start date:
2022-02-21
Due date:
% Done:
100%
Estimated time:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Found in version:
11.2
Fixed in version:
11.3
SaxonC Languages:
SaxonC Platforms:
SaxonC Architecture:
Description
Reported by user here: https://saxonica.plan.io/boards/4/topics/8571
As mentioned in the forum post it should be possible to iterate over a sequence of PyXdmMap in a for loop. Currently the following snippet:
for item in xdm_value:
print(isinstance(item, PyXdmItem))
print(isinstance(item, PyXdmMap))
print(item)
Give the error:
Traceback (most recent call last):
File "C:\SomePath\arrays-and-maps\createSequenceOfMapsTest1.py", line 18, in <module>
print(item)
TypeError: __str__ returned non-string (type NoneType)
Related issues
Please register to edit this issue
Actions