Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Malcolm McLean Newsgroups: comp.lang.c Subject: Re: Baby X is bor nagain Date: Tue, 18 Jun 2024 17:39:01 +0100 Organization: A noiseless patient Spider Lines: 33 Message-ID: References: <20240613002933.000075c5@yahoo.com> <20240613174354.00005498@yahoo.com> <20240617002924.597@kylheku.com> <20240618115650.00006e3f@yahoo.com> <20240618184026.000046e1@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 18 Jun 2024 18:39:02 +0200 (CEST) Injection-Info: dont-email.me; posting-host="f4e7634d781d698fc8674c6886424944"; logging-data="1520737"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19FlvoOBKI45UYDMOze3Rq0nYpvQt2FtOc=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:0RDiXNClvtnfdLweMJMId3+fHLE= In-Reply-To: <20240618184026.000046e1@yahoo.com> Content-Language: en-GB Bytes: 2901 On 18/06/2024 16:40, Michael S wrote: > On Tue, 18 Jun 2024 14:36:40 +0200 > David Brown wrote: > >> >> Of course if you don't know Python, it will be slower to write it in >> Python! >> > > I don't know Python well, but it does not meant that I don't know it at > all. > Few minutes ago I took a look into docs and it seems that situation with > writing binary data files with predefined layout is better than what I > was suspecting. They have something called "Buffer Protocol". It allows > to specify layout in declarative manner, similarly to C struct or may > be even to Ada's records with representation clause. > However attempt to read the doc page further down proved that my > suspicion about steepness of the learning curve was not wrong :( > > My main experience of Python was that we had some resource files which were icons, in matching light and dark themes. The light theme had suffix _L followed by extension, and the dark themes had _D. And they needed to be sorted alphabetically, except that _L should be placed before _D. And it didn't take long to get Python to sort the list alphabetically, but there seemed no way in to the sort comparision function itself. And I had to give up. -- Check out my hobby project. http://malcolmmclean.github.io/babyxrc