Storing None in an OrderedContainer corrupts the internal data structures

Bug #1070719 reported by Marius Gedminas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zope.container
Invalid
Undecided
Unassigned

Bug Description

Observe:

    >>> from zope.container.ordered import OrderedContainer
    >>> oc = OrderedContainer()
    >>> oc['foo'] = None
    >>> oc.keys()
    ['foo']
    >>> oc.values()
    [None]
    Traceback (most recent call last):
      ...
    KeyError: 'foo'

I've a fix ready to be committed.

Revision history for this message
Marius Gedminas (mgedmin) wrote :

Fixed in r128136. Will be present in zope.container 4.0.0.

Changed in zope.container:
status: New → Fix Committed
Revision history for this message
Colin Watson (cjwatson) wrote :

The zope.container project on Launchpad has been archived at the request of the Zope developers (see https://answers.launchpad.net/launchpad/+question/683589 and https://answers.launchpad.net/launchpad/+question/685285). If this bug is still relevant, please refile it at https://github.com/zopefoundation/zope.container.

Changed in zope.container:
status: Fix Committed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.