TypeError: int argument required

alex23 wuwei23 at gmail.com
Fri Jun 12 06:01:14 CEST 2009


On Jun 12, 1:56 pm, lucius <lucius.fo... at gmail.com> wrote:
>  w, h, absX, absY = result.group(3), result.group(4), result.group
> (5), result.group(6)
>
> w = 100
> h = 200
>
> absX = 10.0
> absY = 20.0

Are you sure those values are ints & floats? I would expect your
regexp would be returning strings...

Try replacing the %f & %d strsubs with %s and see if that works. (You
shouldn't need to typecast the values if you're just reinserting them
into a string...)



More information about the Python-list mailing list