This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients mark.dickinson, meador.inge, palaviv, serhiy.storchaka
Date 2017-03-25.16:45:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1490460326.71.0.49932480401.issue29903@psf.upfronthosting.co.za>
In-reply-to
Content
What is the purpose of this feature? Note that the layout of the structure consisting of two structures is not the same as the layout of the structure consisting of the same fields as separate structures.

struct {
    struct {
        char a;
        short b;
    } s1;
    struct {
        char c;
        int d;
    } s2;
}

and

struct {
    char a;
    short b;
    char c;
    int d;
}

can have different sizes and offsets of fields.

As for the concrete implementation, it looks to me that Struct('2L') + Struct('25B') results to Struct('2L5B').
History
Date User Action Args
2017-03-25 16:45:26serhiy.storchakasetrecipients: + serhiy.storchaka, mark.dickinson, meador.inge, palaviv
2017-03-25 16:45:26serhiy.storchakasetmessageid: <1490460326.71.0.49932480401.issue29903@psf.upfronthosting.co.za>
2017-03-25 16:45:26serhiy.storchakalinkissue29903 messages
2017-03-25 16:45:26serhiy.storchakacreate