Hello.
To inform you, i created branch alienoid-btrees_pop with pop() method
implementation. Tim was kind :) and told me he will review it on Thursday.
But if someone wants to take a look or have any suggestions - you are very
welcome.
Regards,
Ruslan
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Jim Fulton wrote:
Julien Anguenot wrote:
I'm gonna respond to a number of emails at once. :)
Tim Peters wrote:
[Tim]
...
Julien provided links to code that already uses the new feature:
As an Indexation Manager :
Jim Fulton wrote:
I don't understand why keeping the order paremeter is such a big deal ?
Because it clutters the ZODB API with something that is, fundamentally
application policy.
Ok seen that way I agree. That's not the ZODB's job to decide what kind of
API is provided to enforce policy.
Tim Peters wrote:
[Dmitry Vasiliev]
Since then I've changed my mind and almost haven't used setdefault(). So
now I'm only +0 on the idea. :-) I think pop() is even more useful than
setdefault(), I've planned to use it for some persistent queue
implementation (based on BTrees). So if
Tim Peters wrote at 2005-8-26 14:59 -0400:
...
I would like to make it an error (raise a ValueError exception) to attempt
to set obj._p_changed to a true value when obj is a ghost. Does anyone
object?
I came along an argument against this change:
Assume, you have a persistent object o with a