[reportlab-users] FutureWarnings in ttfonts.py with Python 2.3
Andy Robinson
reportlab-users@reportlab.com
Wed, 24 Mar 2004 14:49:31 -0000
This bugs me too. IMHO the way the warnings
were implemented in Python is wrong - it happens even on
compiled code to me.
Is anyone good enough at bit-twiddling to rewrite these
sums in a way which 2.2, 2.3, 2.4 etc can all agree not
to complain about?
- Andy
> -----Original Message-----
> From: reportlab-users-admin@reportlab.com
> [mailto:reportlab-users-admin@reportlab.com]On Behalf Of Marc Stober
> Sent: 24 March 2004 14:19
> To: reportlab-users@reportlab.com
> Subject: [reportlab-users] FutureWarnings in ttfonts.py with Python 2.3
>
>
> Hello,
>
> I was just wondering if there was any quick fix to the
> FutureWarnings still
> being returned by ttfonts.py running under Python 2.3? Even running the
> simple example from the user guide (the one with Rina.ttf) shows this:
>
> C:\Python23\lib\site-packages\reportlab\pdfbase\ttfonts.py:181:
> FutureWarning: x<<y losing bits or changing sign will return a long in
> Python 2.4 and up
> sum = (hi << 16) | (lo & 0xFFFF)
> C:\Python23\lib\site-packages\reportlab\pdfbase\ttfonts.py:190:
> FutureWarning: x<<y losing bits or changing sign will return a long in
> Python 2.4 and up
> return (hi << 16) | (lo & 0xFFFF)
>
> Thanks, Marc
> mstober@dalbar.com
>
> _______________________________________________
> reportlab-users mailing list
> reportlab-users@reportlab.com
> http://two.pairlist.net/mailman/listinfo/reportlab-users
>