Jython List initializations use an empty List rather than an empty String

The Jacl scripting language treats a List as a set of Strings separated by spaces, you can initialize a List object by setting it to an empty String; instead of an empty List or an empty set of {} braces. Following the empty String initialization, all the various List commands, such as lappend, +=, and others are valid for the object. However, the Jython scripting language is more strict. If you want to subsequently perform List operations, you must properly initialize a List object using a set of empty square brackets [] brackets. Since the Jacl2Jython program does not determine nor track runtime object types, the conversion keeps all empty String initializations in the preliminary converted Jython script. You must manually scan all the converted script for empty String initializations. If the object is intended to be a List, then you must manually change the Jython script to correctly use an empty bracket [] initialization.
JACL:   myString = ""
JACL:   myList1 = ""  # produce an incorrect empty list
JACL:   myList2 = {} 
JACL:   myList3 = [list]
==>
JYTHON: myString = ""
JYTHON: myList1 = ""  # you need to manually correct to use a set of empty square brackets []
JYTHON: myList2 = []
JYTHON: myList3 = []

Feedback