Look at struct package: https://docs.python.org/3/library/struct.html
From: Python-list <python-list-bounces+gweatherby=uchc....@python.org> on behalf of luca72.b...@gmail.com <luca72.bertolo...@gmail.com> Date: Wednesday, November 30, 2022 at 11:48 AM To: python-list@python.org <python-list@python.org> Subject: Vb6 type to python *** Attention: This is an external email. Use caution responding, opening attachments or clicking on links. *** Hello i have a byte file, that fill a vb6 type like: Type prog_real codice As String * 12 'hsg denom As String * 24 'oo codprof As String * 12 'ljio note As String * 100 programmer As String * 11 Out As Integer b_out As Byte 'TRUE = Sec FALSE= mm asse_w As Byte '3.zo Asse --> 0=Z 1=W numpassi As Integer 'put len As Long 'leng p(250) As passo_pg vd(9) As Byte 'vel. qUscita(9) As Integer 'quote l_arco As Long 'reserved AxDin As Byte 'dime End Type How i can convert to python -- https://urldefense.com/v3/__https://mail.python.org/mailman/listinfo/python-list__;!!Cn_UX_p3!ky-bqK3l3Sbj0O_n3_x6Yo2wFaF5xABKKYgjbIPH49rdLZ2W_vQlW2gGbSQ7uRplRBZn_wS4h4evqcYQZaR1aSNJaTXnRQ$<https://urldefense.com/v3/__https:/mail.python.org/mailman/listinfo/python-list__;!!Cn_UX_p3!ky-bqK3l3Sbj0O_n3_x6Yo2wFaF5xABKKYgjbIPH49rdLZ2W_vQlW2gGbSQ7uRplRBZn_wS4h4evqcYQZaR1aSNJaTXnRQ$> -- https://mail.python.org/mailman/listinfo/python-list