On 2023-11-07 20:56, Thomas Passin via Python-list wrote:
On 11/7/2023 3:29 PM, MRAB via Python-list wrote:
On 2023-11-07 19:20, Jim Schwartz via Python-list wrote:
Where do you define fCONV_AUSRICHTG? It must be initialized or defined
somewhere. Did you leave out a statement from the python 2 version?
It's given its value here:
(
fNAME,
fLG1,
fLG2,
fTYP,
fCONV_AUSRICHTG,
fENTRY_AUSRICHTG,
fTEXT_AUSRICHTUNG,
fHOLFUNKT,
fPRUEFFUNKT,
fPRUEF_ARG,
) = list(range(10))
This construction is a sneaky way to assign index numbers to list
entries. A simplified example:
>>> S1 = 'string 1'
>>> S2 = 'string 2'
>>> (fS1, fS2) = list(range(2))
>>> fS1
0
>>>
>>> fS2
1
You don't need the 'list', though: range(...) will work on its own.
[snip]
--
https://mail.python.org/mailman/listinfo/python-list