I believe it will produce an object of type str
, not of type list
. The two might be interchangeable in TCL (see https://wiki.tcl-lang.org/page/everything+is+a+string), but this is Python, which has a stronger type system.
To get an actual list
of individual str
ings, if that’s what you need, just pare it down to:
[ emp['last_name'] for emp in self.item['employees'] ]