Skip to content

Runtime error is raised when iterating tree in Python3.7 #11

@EdwardWooCN

Description

@EdwardWooCN

This error occurs in function iter_slice(self, slice: slice) -> Iterator[Record].
Since python 3.5, when StopIteration is raised inside a generator, it is replaced with RuntimeError. The alternative is return. (See in https://www.python.org/dev/peps/pep-0479/)
I have verified this change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions