Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Evolution is a million line computer program falling into place by accident.


devel / comp.lang.python / Re: Problem using cx_Freeze > auto-py-to-exe

SubjectAuthor
o Re: Problem using cx_Freeze > auto-py-to-exeChris Angelico

1
Re: Problem using cx_Freeze > auto-py-to-exe

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!lilly.ping.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: ros...@gmail.com (Chris Angelico)
Newsgroups: comp.lang.python
Subject: Re: Problem using cx_Freeze > auto-py-to-exe
Date: Fri, 19 Aug 2022 10:35:17 +1000
Lines: 43
Message-ID: <mailman.296.1660869330.20444.python-list@python.org>
References: <mailman.16.1660838401.12030.python-list@python.org>
<2B29A26F-4863-4D69-8F66-B06EE837F3B1@boomer.org>
<CAPTjJmpwNomaifX39V8bjB1hxB9KmPYeEmxBW-oVQUSSwT5PYQ@mail.gmail.com>
<62fe8d13.370a0220.6babc.5c8f@mx.google.com>
<CAPTjJmoQxsPn4WeHVUDjusVB5Zf5VJKTxxJKJvcSSOPkdinfgw@mail.gmail.com>
<62fed3d7.920a0220.9eb9d.1b96@mx.google.com>
<CAPTjJmou7QKZR2yCs5iMWbMj6W6qDUh+zrCcL+B2p8sL_0PqPg@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de wmGihwizKYBMtyYq6yXcYw1Taju4ENv3zOBJZnVqkziA==
Return-Path: <rosuav@gmail.com>
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=gmail.com header.i=@gmail.com header.b=MTUTBNHP;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.003
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '2022': 0.05; 'arrays':
0.07; 'aug': 0.07; 'string': 0.07; 'angelico': 0.09; 'breaks':
0.09; 'json': 0.09; 'url:master': 0.09; '"add': 0.16; '(b)': 0.16;
'apis': 0.16; 'chrisa': 0.16; 'from:addr:rosuav': 0.16;
'from:name:chris angelico': 0.16; 'generates': 0.16; 'ignored':
0.16; 'internal"': 0.16; 'line"': 0.16; 'low-level': 0.16;
'outputs': 0.16; 'subject:auto': 0.16; 'subset': 0.16; 'wrote:':
0.16; 'grant': 0.17; 'to:addr:python-list': 0.20; 'fri,': 0.22;
'\xe2\x80\x94': 0.22; 'code': 0.23; 'subject:using': 0.23; 'done':
0.28; 'chris': 0.28; 'think': 0.32; "doesn't": 0.32; 'empty':
0.32; 'files,': 0.32; 'maintaining': 0.32; "wouldn't": 0.32;
'message-id:@mail.gmail.com': 0.32; 'but': 0.32; 'particular':
0.33; 'skip:" 20': 0.34; 'header:In-Reply-To:1': 0.34;
'received:google.com': 0.34; 'definitely': 0.35; 'final': 0.35;
'from:addr:gmail.com': 0.35; "it's": 0.37; 'received:209.85':
0.37; 'file': 0.38; 'way': 0.38; 'received:209': 0.39; 'single':
0.39; 'received:209.85.208': 0.39; 'define': 0.40; 'want': 0.40;
"there's": 0.61; 'format': 0.62; "you'd": 0.64; 'key': 0.64;
'years': 0.65; 'cheat': 0.69; 'end,': 0.69; 'export': 0.69;
'deal': 0.73; 'signature': 0.76; 'industry': 0.81; 'saves': 0.84;
'pain': 0.93
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=content-transfer-encoding:to:subject:message-id:date:from
:in-reply-to:references:mime-version:from:to:cc;
bh=5oKMUM7X7uxYhOdCGOaltzzaHdSBgJV8BbaZYBxrx7I=;
b=MTUTBNHPCxIOXizEQg1VP3Utpi/se+QQiGXIwRKX8aPo3WiWepT+VtAxNewawv9CAy
2BtyrOXVwi2KKigp2rQQjid+JhkqJ/6fd5T96ng/p72sCwSPlLL0yNH6Bw+zqeleasBe
t30R3cB4WWnSptHPXkG1iIOOZYaa00UOAlxKdHeHtmLE08LbtLGQsWglOowZTV4uIMaZ
Mn9t/noPjpqpqyhPsDtzbFRHNfPF0Wq+Zx+7DFmJkZhI9Df3IjDcYV/kVc2BD5WdHIhR
JrwYbGY1ToMJ9o/Rwjm7i6YRQrsA851KEtXg0Ga58CIoTOXNpb4kXLHgSQLRKVFqZyCD
5DkQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=content-transfer-encoding:to:subject:message-id:date:from
:in-reply-to:references:mime-version:x-gm-message-state:from:to:cc;
bh=5oKMUM7X7uxYhOdCGOaltzzaHdSBgJV8BbaZYBxrx7I=;
b=I5ya/+iGcLqwpr/Usw19BOcOjx76Jc/rMlxettnV0KTBJoEHbHGbpALy3YV8dIbJp/
3l6WXI/VN8x35zbwCCjHmctw2kTGzUQrorw+/ImRU7Z4z9ZBfQ+qwB93NaSLUGxCjpc9
eprcfwE0r2P4RQeIe7JTDUaUD+l1B/n1JSkSwrmpj9RwAwsz95cZz7uibBfPHDBf48MN
ETyuFfJ+lI91YmGXWpuNB66do/CMw4PFf8lckOZDh9jGKS0LmM9wLzKThZDkbZEOqXhA
HNoNzBU4quNWLm4AJKl6gr6TURgSHyPQMAQa3dWdPTh8eQI32TLbLwRGO7KTznDgbslL
671A==
X-Gm-Message-State: ACgBeo3aC2wtVQD1qUNrlA5T8Q3CLu3RNEdPO8CrSwVi0YfVasWh8gHC
ox7Ol8XlAkX9jlAbLwHNMNvbqeZWqHg0FSW3a8z/rTzT
X-Google-Smtp-Source: AA6agR6PLDmBUeUuJB1CH9u9OTuaY4ktS4WwF8lPuhYNNncfClu/W4q38zpuF26UnRpgJyASAaAClleleA8PwFiMMHs=
X-Received: by 2002:a05:6402:353:b0:446:2d2c:3854 with SMTP id
r19-20020a056402035300b004462d2c3854mr1596111edw.193.1660869328896; Thu, 18
Aug 2022 17:35:28 -0700 (PDT)
In-Reply-To: <62fed3d7.920a0220.9eb9d.1b96@mx.google.com>
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: <CAPTjJmou7QKZR2yCs5iMWbMj6W6qDUh+zrCcL+B2p8sL_0PqPg@mail.gmail.com>
X-Mailman-Original-References: <mailman.16.1660838401.12030.python-list@python.org>
<2B29A26F-4863-4D69-8F66-B06EE837F3B1@boomer.org>
<CAPTjJmpwNomaifX39V8bjB1hxB9KmPYeEmxBW-oVQUSSwT5PYQ@mail.gmail.com>
<62fe8d13.370a0220.6babc.5c8f@mx.google.com>
<CAPTjJmoQxsPn4WeHVUDjusVB5Zf5VJKTxxJKJvcSSOPkdinfgw@mail.gmail.com>
<62fed3d7.920a0220.9eb9d.1b96@mx.google.com>
 by: Chris Angelico - Fri, 19 Aug 2022 00:35 UTC

On Fri, 19 Aug 2022 at 10:07, Grant Edwards <grant.b.edwards@gmail.com> wrote:
>
> On 2022-08-18, Chris Angelico <rosuav@gmail.com> wrote:
> > On Fri, 19 Aug 2022 at 05:05, Grant Edwards <grant.b.edwards@gmail.com> wrote:
> >> On 2022-08-18, Chris Angelico <rosuav@gmail.com> wrote:
> >>
> >> > It's one of the frustrations with JSON, since that format doesn't
> >> > allow the trailing comma :)
> >>
> >> Yep, that's a constant, low-level pain for all the C code I deal with
> >> which generates JSON. You'd think after 10+ years of maintaining code
> >> that outputs JSON, I wouldn't trip over that any longer...
> >
> > With some JSON files, I just cheat and define a shim at the end of arrays...
> >
> > https://raw.githubusercontent.com/Rosuav/MustardMine/master/template.json
>
> That's OK if it's strictly internal. Almost all of the JSON data I
> work with is part of published APIs — many of which are defined by
> industry consortiums or corporate-wide "standards".
>

That's an export/import format that I defined, so I mandated (a) that
there's an empty-string key as a signature (on import, it can be
anywhere, but on export, it's that final shim), and (b) all arrays are
allowed to have an empty string at the end, which is ignored on
import. Saves so much trouble.

That particular export format is actually designed as a git-managed
config file as well, which is why the line breaks are done the way
they are (anything on a single line is intended to be added/removed as
a single unit), which is why I definitely don't want the "add a comma
to the previous line" deltas.

"Strictly internal" is a subset of "protocols/standards that you are
in control of". :)

ChrisA

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor