[Python-ideas] Ideas for improving the struct module

Chris Angelico rosuav at gmail.com
Thu Jan 19 19:53:46 EST 2017


On Fri, Jan 20, 2017 at 11:38 AM, Steven D'Aprano <steve at pearwood.info> wrote:
> On Fri, Jan 20, 2017 at 05:16:28AM +1100, Chris Angelico wrote:
>
>> To be fair, the name "struct" implies a C-style structure, which
>> _does_ have a fixed size, or at least fixed offsets for its members
>
>
> Ah, the old "everyone thinks in C terms" fallacy raises its ugly head
> agan :-)
>
> The name doesn't imply any such thing to me, or those who haven't been
> raised on C. It implies the word "structure", which has no implication
> of being fixed-width.

Fair point. Objection retracted - and it was only minor anyway. This
would be a handy feature to add. +1.

ChrisA


More information about the Python-ideas mailing list