Create PyList
Bundle separate values into one array without triggering List processing
- PYLIST
Create List's quieter sibling. Where Create List bundles values into a ComfyUI List that triggers per-item execution downstream, Create PyList bundles the exact same kind of values into one Python array value - no looping, no per-item execution, just an array sitting there as a single piece of data you can pass around, count, slice, or feed into Exec.
How it works
Same dynamic-socket mechanic as Create List: the node starts with no fixed inputs, and connecting something to the last empty socket adds another one. Keep wiring values in and they all land in the resulting PYLIST, in the order you connected them. Unlike Create List, there's no hint in the schema that the output type locks to the first connection - a PyList is just a Python list, so it's happy holding genuinely mixed types (a string next to an int next to whatever else) the way a normal Python list would be.
The reason this node exists separately from Create List comes down to the difference the whole pack is built around: a List is ComfyUI's per-item execution mechanism, a PyList is inert data. If you want the values to stay as one bundled unit - say you're about to feed them into Exec as x[0], x[1], x[2], or you want to count them with Get Length without spinning up a per-item run - you want the PyList version.
The inputs and outputs that matter
No fixed required or optional inputs; every socket is dynamic, added as you connect values to the last empty one. The single output is a PYLIST - one raw Python list value containing everything you wired in. Feed that into anything expecting a PYLIST: PyList: Get By Index, PyList: Slice, Merge PyList, Exec, or Get Length if you just want a count.
How to install it
Through ComfyUI Manager: search "ComfyUI-List-Utils" and install. Or clone it yourself:
cd ComfyUI/custom_nodes
git clone https://github.com/godmt/ComfyUI-List-Utils.git
Restart ComfyUI once it's in place. No models, no heavy dependencies - the entire pack is lightweight Python primitives, and this node in particular is nothing more than list construction.
Common issues & troubleshooting
Wired it into something and nothing runs per-item, even though you expected looping. That's correct behavior, not a bug - a PYLIST deliberately does not trigger ComfyUI's List processing. If you actually wanted per-item execution, you built the wrong container; use Create List instead, or run this node's output through PyList To List to convert it after the fact.
Can't connect this output where a List is expected. Same root cause - a PYLIST and a ComfyUI List are different types in this pack on purpose, and the wire won't form between mismatched types. PyList To List bridges the gap when you need to switch modes partway through a graph.
Not sure whether to reach for this or Create List. Simple rule of thumb from the README: if you want ComfyUI to process several values one at a time, use Create List. If you want to keep the array as one value to manipulate directly - count it, index into it, hand it to Exec - use Create PyList.
Inputs (0)
No inputs
Outputs (1)
| Name | Type | Description |
|---|---|---|
| PYLIST | PYLIST | A raw Python list containing the input values. |