-
-
Notifications
You must be signed in to change notification settings - Fork 83
Dynamic parameters should support iterator protocol #46
Copy link
Copy link
Open
Labels
component: dynamic valuesstatus: discussionDiscussion. Not yet a specific feature/bug. Likely to result in multiple PRs/issues.Discussion. Not yet a specific feature/bug. Likely to result in multiple PRs/issues.status: duplicatetype-featureFeature requestFeature request
Milestone
Metadata
Metadata
Assignees
Labels
component: dynamic valuesstatus: discussionDiscussion. Not yet a specific feature/bug. Likely to result in multiple PRs/issues.Discussion. Not yet a specific feature/bug. Likely to result in multiple PRs/issues.status: duplicatetype-featureFeature requestFeature request
Type
Fields
Give feedbackNo fields configured for issues without a type.
Dynamic parameters currently accept callable objects which are called to generate new values (e.g. with numbergen). It would make sense (and probably be more Pythonic!) to use the iterator protocol instead, calling the next function (for Python 3 compatibility) to get each value in turn.
It should be relatively easy to update numbergen to support the iterator protocol - it may be possible to deprecate the callable interface without too much trouble.