Converting Unicode to integer

Nikola Plejic Nikola.Plejic at pu.CARNet.hr
Wed Aug 28 09:55:46 CEST 2002


Yeah, but as I said, nothing I tried works... Including this here you said.

Any more ideas?

Thanks VERY much.

"Max M" <maxm at mxm.dk> wrote in message news:3D6C71CA.8040605 at mxm.dk...
> Nikola Plejic wrote:
>
> > def handler(**kw):
> >     a = txt.text
> >     b = txt2.text
> >     a = int(a)
> >     b = int(b)
> >     lbl.text = a + b
>
>
>        lbl.text = str(a + b)
>
> Unlike other languages Python does not automatically change the type for
> you. You will grow to appreciate this, as it can lead to some very
> subtle bugs that can be hard to catch later on.
>
> regards Max M
>





More information about the Python-list mailing list