The Perl is just passing an interpreted string.
Couldn't you just do the same in Python?

N="3"
ml.Execute("M="+N)
   -or-
ml.Execute("M=magic("+N+")")

depending on whether magic() is needed.

or alternately if you must have integer values in your python var.

N=3
cmd="M=%d" % N
ml.Execute(cmd)

or whatever similar syntax method floats your boat.

On May 24, 2011 4:50 PM, "Mark Hammond" <mhamm...@skippinet.com.au> wrote:
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to