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 skrah
Recipients serhiy.storchaka, skrah
Date 2013-01-31.15:37:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1359646645.0.0.897225060643.issue17034@psf.upfronthosting.co.za>
In-reply-to
Content
Yes, it's guaranteed:

6.7.8 Initialization
--------------------

10) If an object that has automatic storage duration is not initialized
    explicitly, its value is indeterminate. If an object that has static
    storage duration is not initialized explicitly, then:

      - if it has pointer type, it is initialized to a null pointer;

      - if it has arithmetic type, it is initialized to (positive or unsigned)
        zero;

      - if it is an aggregate, every member is initialized (recursively)
        according to these rules;

      - if it is a union, the first named member is initialized (recursively)
        according to these rules.




I'm changing the title so that people don't get the impression that
anything is wrong with the initialization.

The Py_CLEAR() changes are fine of course.
History
Date User Action Args
2013-01-31 15:37:25skrahsetrecipients: + skrah, serhiy.storchaka
2013-01-31 15:37:25skrahsetmessageid: <1359646645.0.0.897225060643.issue17034@psf.upfronthosting.co.za>
2013-01-31 15:37:24skrahlinkissue17034 messages
2013-01-31 15:37:24skrahcreate