On 11/30/2022 1:07 PM, DFS wrote:
On 11/30/2022 6:56 AM, luca72.b...@gmail.com wrote:
I don't do Python OO so someone else can answer better, but a simple
port of your VB type would be a python class definition:
class prog_real:
codice, denom, codprof, note, programmer
AxDin, b_out, asse_w, vd, Out, numpassi, qUscita
len, l_arco, p
Sorry for bad advice - that won't work. The other class definition that
initializes the variables does work:
class prog_real:
# strings
codice, denom, codprof, note, programmer = '', '', '', '', ''
# bytes
AxDin, b_out, asse_w, vd = 0, 0, 0, 0
# ints
Out, numpassi, qUscita = 0, 0, 0
# longs
len, l_arco = 0, 0
# misc
p = ''
--
https://mail.python.org/mailman/listinfo/python-list