Python and Javascript equivalence
7stud
bbxx789_05ss at yahoo.com
Sun Apr 22 22:46:28 EDT 2007
On Apr 22, 7:00 pm, "Sam the Cat" <sam_spam_... at verizon.net> wrote:
> Hey All,
>
> I am writing some COM code in Python to control photoshop. Several
> functions of PS require an "Array" argument. In the examples of VBscript or
> javascript the Array type is used. I have tried what would appear to be the
> equivalent in Python -- Lists and Tuples -- but to no avail. Anyone have
> any insight on what via the COM interface is equivalent to an Array in
> javascript ?
>
> Cheers
> Sam
See if the python array type works:
import array
y = array.array("i", [2,3,4])
print y
More information about the Python-list
mailing list