certi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [certi-dev] PyHLA and python3 compatibility for OMT


From: Charles Lesire-Cabaniols
Subject: Re: [certi-dev] PyHLA and python3 compatibility for OMT
Date: Mon, 19 Sep 2011 14:07:34 +0200

Hi again,

I join a modified version of the patch that directly uses the 'bytes' cast operators of Python3, and is still compatible with Python <3 by redefining bytes in that case.

I have also declared this patch in the CERTI tracker (https://savannah.nongnu.org/patch/index.php?7617)

Charles.

2011/9/14 Charles Lesire-Cabaniols <address@hidden>
Hi,

I faced some troubles while using OMT types with PyHLA under python 3.2.

The point is that, when using HLAfixedArray, the buffer type is a string, whereas python3 now distinguishes strings and bytes.

I have modified the array.py and record.py files to use bytes type for buffers, and it works for me now, and the fom-simple.py test file output looks correct.

However, I have not fully tested the python3 compatibility of other OMT types.

The patch is attached.

Cheers,

Charles.

Attachment: omt-python3-bytes.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]