Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Context.agents(...) API should return a consistent type - list or iterable #65

Open
etatara opened this issue Mar 26, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@etatara
Copy link
Member

etatara commented Mar 26, 2024

Context.agents(...)

https://github.com/Repast/repast4py/blob/master/src/repast4py/context.py#L322

returns either a list or an iterable function depending on usage, which might be confusing, since using the returned list or iterable can have different implications depending on how it’s handled, e.g. multiple iters over a list is OK, but only works once on an iterable.

@etatara etatara added the enhancement New feature or request label Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants