@peterdrake Not a python expert, but if it's internally consistent, then the list would be a literal, but the variables could be references or literals based on their original type.
Another term for this, however, would be "inline instantiation".
@LouisIngenthron A variable is by definition not a literal, right? My understanding is that a literal means "this exact value, unaffected by anything elsewhere in the code".
CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.
@LouisIngenthron A variable is by definition not a literal, right? My understanding is that a literal means "this exact value, unaffected by anything elsewhere in the code".