Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

They can always run stderr through uniq. :-) -- Larry Wall in <199704012331.PAA16535@wall.org>


devel / comp.lang.python / Re: fCONV_AUSRICHTG is not defined - Why?

SubjectAuthor
o Re: fCONV_AUSRICHTG is not defined - Why?dn

1
Re: fCONV_AUSRICHTG is not defined - Why?

<mailman.195.1699381831.3828.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=24404&group=comp.lang.python#24404

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!feeder2.eternal-september.org!eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: PythonL...@DancesWithMice.info (dn)
Newsgroups: comp.lang.python
Subject: Re: fCONV_AUSRICHTG is not defined - Why?
Date: Wed, 8 Nov 2023 07:30:18 +1300
Organization: DWM
Lines: 24
Message-ID: <mailman.195.1699381831.3828.python-list@python.org>
References: <e341ea45-5d8b-da2a-00a1-c2a4c65386de@frerich.eu>
<a5ac87ee-81ad-4b9f-a05e-14bb903671a7@DancesWithMice.info>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de SwuSKGnw91x7fb5CNbmatwW2UEk7MZbOQ8IESz5yTVdA==
Cancel-Lock: sha1:glb59r+BA8PBcjnIcefeq2WdMEU= sha256:RXEuwPvYW24k6cO1r8jNYhdaXIoTfZZ/GKOYZLCPsQA=
Return-Path: <PythonList@DancesWithMice.info>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=danceswithmice.info header.i=@danceswithmice.info
header.b=lehpX7UT; dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.002
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Why': 0.07;
'(python': 0.09; '=dn': 0.09; 'from:addr:danceswithmice.info':
0.09; 'from:addr:pythonlist': 0.09; 'happens.': 0.09;
'received:192.168.1.64': 0.09; 'subject:not': 0.09; 'import':
0.15; 'definitions': 0.16; 'message-id:@DancesWithMice.info':
0.16; 'received:cloud': 0.16; 'received:rangi.cloud': 0.16;
'script,': 0.16; 'subject:skip:f 10': 0.16; 'wrote:': 0.16;
'to:addr:python-list': 0.20; "i've": 0.22; 'idea': 0.24; 'header
:User-Agent:1': 0.30; 'module': 0.31; 'header:Organization:1':
0.31; 'extract': 0.32; 'python-list': 0.32; 'received:192.168.1':
0.32; 'but': 0.32; 'there': 0.33; 'header:In-Reply-To:1': 0.34;
'change': 0.36; 'lists': 0.37; "skip:' 10": 0.37;
'received:192.168': 0.37; 'file': 0.38; 'both': 0.40; '....':
0.76; 'happens': 0.84; 'skip:" 50': 0.84
DKIM-Filter: OpenDKIM Filter v2.11.0 vps.rangi.cloud B47C1621F
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=danceswithmice.info;
s=staff; t=1699381823;
bh=Fm1kFT4I9EPd47maO+izgUa7K6o9VSqa7pxI4m6hD64=;
h=Date:Subject:To:References:From:In-Reply-To:From;
b=lehpX7UTPvriXa56zEEen5Loe7v2kkEpBipS92mIJWe3q7xxC1liHSI7b1vuNMdes
Ps9Md0claozxVx6wS93SPs+v1jqVrLXHO9AZajxTuSBRm8Uru5D3XCmCoXz2vA1WqE
35arpdugYVRs4PAYvHQ/p8E4JRgnwIP9gMVSS5ovcP8h00s8D7quuckUSwwGXoaHbf
h3bVl9aMVStA3IpRt6E16DDzYT+DFSWgQoTXmilfaCBPCOsgOpFEYRIekYOG9bvXqg
8KhiZT1pLU1wndtp9awNYuMPCkIj99pbUBChhWGkrM7/WI2STHC0AcVUy3hJybcSch
uTH9yKdVD4hLQ==
User-Agent: Mozilla Thunderbird
Content-Language: en-GB
In-Reply-To: <e341ea45-5d8b-da2a-00a1-c2a4c65386de@frerich.eu>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <a5ac87ee-81ad-4b9f-a05e-14bb903671a7@DancesWithMice.info>
X-Mailman-Original-References: <e341ea45-5d8b-da2a-00a1-c2a4c65386de@frerich.eu>
 by: dn - Tue, 7 Nov 2023 18:30 UTC

On 08/11/2023 06.47, Egon Frerich via Python-list wrote:
> I've no idea why this happens. In a module there are lists and definitions:
....

>     ["%s%s%s " % (i[fCONV_AUSRICHTG], i[fLG2], i[fTYP]) for i in Felder])
>   File "/home/egon/Entw/Geldspur/geldspur/gui/GUI_Konfig.py", line 90,
> in <listcomp>
>     ["%s%s%s " % (i[fCONV_AUSRICHTG], i[fLG2], i[fTYP]) for i in Felder])
> NameError: name 'fCONV_AUSRICHTG' is not defined
>
> You see "Felder" and with "0 0 3 4" the correct value 4 for
> fCONV_AUSRICHTG. But there is the NameError.
>
> What does <listcomp> mean? Is there a change from python2 to python3?

Works for me (Python 3.11 on Fedora-Linux 37)
- both as a script, and simple/single import.

What happens when you extract the second dimension's definitions into a
module of their own, and import that (with/out less-sophisticated join)?

--
Regards,
=dn

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor