Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Batches from Python generator objects

Open
#13 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
backend

Research direction

Start by reading the implementation of Load.batch() and the related iterate() method. Reproduce the example using a generator of temporary iterator objects, then determine how batching currently handles those objects. Done means altdss.Load.batch(objs=selected_load_objs) works without copy() while preserving the intended lightweight behavior.

Written by the indexing model from the issue text.

Description

enhancement

Generating batches from Python generator objects would allow users to use complex and custom filtering in Python to create a high-performance batch object as a result.

This couples well with the new iterate() method, which reuses Python-side objects. This currently doesn't work without the copy:

from copy import copy
# Python generator object
selected_load_objs = (copy(load) for load in altdss.Load.iterate() if predicate_function(load))
selected_load_batch = altdss.Load.batch(objs=selected_load_objs)

The idea is to allow using the temporary iterator objects directly, since they are lightweight.

Dominant language
Python
Stars
19
Forks
2
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dss-extensions/AltDSS-Python

All issues in dss-extensions/AltDSS-Python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.