Changes between Version 6 and Version 7 of Notifications


Ignore:
Timestamp:
Jun 19, 2015, 5:30:37 PM (10 years ago)
Author:
Eric Pettersen
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Notifications

    v6 v7  
    2020The sets of created/modified items are collections, not lists of individual Python objects.
    2121
    22 As usual, the deleted items is the tricky part.  My proposal is this:  The deleted items is a list containing all the individual Python objects that had already been created at the time they were deleted, plus a sufficient number of Nones to bring the size of the list up to the total number of deleted items.  My reasoning is that no code is going to care about individual deleted Python objects that had never been created when they were deleted.  Keep in mind that collections automatically contract when their members are deleted.  I propose we add a callback API to collections so that interested code can respond to such a contraction if desired.
     22As usual, the deleted items is the tricky part.  My proposal is this:  The deleted items is a set containing all the individual Python objects that had already been created at the time they were deleted.  There would also be an accompanying integer noting the total number of deleted items.  My reasoning is that no code is going to care about individual deleted Python objects that had never been created at the time they were deleted.  Keep in mind that collections automatically contract when their members are deleted.  I propose we add a callback API to collections so that interested code can respond to such a contraction if desired.