Re: [Python-3000] Is pickle's persistent_id worth keeping?

2008-01-10 Thread Jesus Cea
oyed five years ago :-(. Could be a bit rude, but maybe a maintaner change would be in order. I would rather prefer to talk to current maintainer, but I rather apply for maintaner position than dropping bsddb from the python stdlib!!. - -- Jesus Cea Avion _/_/ _/_/_/

Re: [Python-3000] Is pickle's persistent_id worth keeping?

2008-01-10 Thread Jesus Cea
#x27;t think that ZODB is the only persistence system built on > pickle, but perhaps I'm wrong. > > I suspect ZODB is also the primary user of the pickle module. Durus, another (excellent) persistence system for Python also uses thi

Re: [Python-3000] Is pickle's persistent_id worth keeping?

2008-01-15 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Guido van Rossum wrote: | On Jan 10, 2008 4:52 AM, Jesus Cea <[EMAIL PROTECTED]> wrote: |> I'm very dependent of bsddb support in python. I'm very sorry also of |> the maintainer support of it: he is slow and doesn't imple

Re: [Python-3000] Is pickle's persistent_id worth keeping?

2008-01-15 Thread Jesus Cea
s or MacOS platforms. But I need bsddb and I would really like to see "old" BerkeleyDB features accesible from Python, like replication. So would volunteer if there is nobody else to take the gauntlet and "somebody" could tell me what *exactly* would be my demanded responsabilit

Re: [Python-3000] Is pickle's persistent_id worth keeping?

2008-01-15 Thread Jesus Cea
orge access and such. - -- Jesus Cea Avion _/_/ _/_/_/_/_/_/ [EMAIL PROTECTED] http://www.argo.es/~jcea/ _/_/_/_/ _/_/_/_/ _/_/ jabber / xmpp:[EMAIL PROTECTED] _/_/_/_/ _/_/_/_/_/ ~ _/_/ _/_/_/_/

Re: [Python-3000] pickle, cPickle, and the standard library (was Re: [Python-Dev] inst_persistent_id)

2008-02-05 Thread Jesus Cea
faster that cPickle. Yes, "bencode" can't encode arbitrary objects, but still... - -- Jesus Cea Avion _/_/ _/_/_/_/_/_/ [EMAIL PROTECTED] http://www.argo.es/~jcea/ _/_/

Re: [Python-3000] [Python-Dev] PyString -> PyBytes C API renaming (Stabilizing the C API of 2.6 and 3.0)

2008-05-29 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 M.-A. Lemburg wrote: | If you use PyBytes APIs, you expect to find PyBytes functions in | the libs and also set breakpoints on these. Very good point. - -- Jesus Cea Avion _/_/ _/_/_/_/_/_/ [EMAIL PROTECTED

Re: [Python-3000] [Python-Dev] No beta2 tonight

2008-07-18 Thread Jesus Cea
n the morning, in Spain. bsddb will be ready for python 3.0. (writting this while compiling new 2.6 and 3.0 beta2 :-) ) - -- Jesus Cea Avion _/_/ _/_/_/_/_/_/ [EMAIL PROTECTED] - http://www.jcea.es/ _/_/_/_/ _/_/_/_/ _/_/ jabber / xmpp:[

Re: [Python-3000] [Python-Dev] No beta2 tonight

2008-07-18 Thread Jesus Cea
otherwise, I will add it to PEP 3108. 03:31 AM in the morning in Spain. Just working in porting bsddb to python3000. I have a lot of issues compiling the C code and with the 2to3 automated conversion, but I'm pretty sure can get it ready for october release. I'm still loooking for a *GOOD

[Python-3000] Help replacing Py_FindMethod

2008-07-18 Thread Jesus Cea
ject, in_weakreflist),/*tp_weaklistoffset*/ +0, /*tp_iter*/ +0, /*tp_iternext*/ +DBSequence_methods, /*tp_methods*/ +0, /*tp_members*/ ~ }; ~ #endif """ What am I doing wrong?. Thanks in advance. PS: Four hours of hard working and b

[Python-3000] Int and Long unification (was Re: Help replacing Py_FindMethod)

2008-07-18 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jesus Cea wrote: | Good night everybody!. | | Working on the Python3.0 support for bsddb I see that "Py_FindMethod" | was just removed in Python last beta. Nevermind. I just reviewed the recent changes in the SVN and I can see your patches

[Python-3000] bsddb ownership, buffer protocol and 3.0

2008-07-19 Thread Jesus Cea
;ImportError: __build_class__ not found" thing. You can look at the code at svn://svn.argo.es/jcea/pybsddb/trunk/Modules , revision 523. This code compiles under Python 2.[3-6] and 3.0. Under 2.6 it pases all the 303 tests. On 3.0 it compiles, but fails to import, with the given error. A

Re: [Python-3000] [Python-Dev] Removing bsddb module from py3k (was Re: No beta2 tonight)

2008-07-19 Thread Jesus Cea
, you can use the already in stdlib "gdbm" module. Just remember it is not transactional, so beware diskfulls, application crashes, etc. - -- Jesus Cea Avion _/_/ _/_/_/_/_/_/ [EMAIL PROTECTED] - http://www.jcea.es/ _/_/_/_/ _/_/_/_

Re: [Python-3000] [Python-Dev] Removing bsddb module from py3k (was Re: No beta2 tonight)

2008-07-21 Thread Jesus Cea
e issue is. Past mistakes and maintenance nightmares WILL NOT be repeated. - -- Jesus Cea Avion _/_/ _/_/_/_/_/_/ [EMAIL PROTECTED] - http://www.jcea.es/ _/_/_/_/ _/_/_/_/ _/_/ j

Re: [Python-3000] Extension modules moving to py3k

2008-07-21 Thread Jesus Cea
efer written documentation, use cases, examples and such. - -- Jesus Cea Avion _/_/ _/_/_/_/_/_/ [EMAIL PROTECTED] - http://www.jcea.es/ _/_/

Re: [Python-3000] Extension modules moving to py3k

2008-07-21 Thread Jesus Cea
| How and where can we kick this off? I would contribute, because I *NEED* this information myself. - -- Jesus Cea Avion _/_/ _/_/_/_/_/_/ [EMAIL PROTECTED] - http://www.jcea.es/ _/_/_/_/ _/_/_/_/ _/_/ jabber / xmpp:[EMAIL

[Python-3000] Strange code in bsddb that doesn't work in Python 3.0

2008-07-21 Thread Jesus Cea
. PS: Googling around, I see that Python 2.5 allows a tuple being used as base for exception creation. Is this available in Python3.0?. Searching for "PyErr_NewException" in 3.0 documentation online shows no results. Ok, the index show the function. It should work. I'm still inte

Re: [Python-3000] Strange code in bsddb that doesn't work in Python 3.0

2008-07-29 Thread Jesus Cea
eption is better in any case. Your are right. | But didn't you try svnmerge? there are other py3k changes you may want to keep. The source has diverged so much, no hope for an automated merge. In any case, 3.0 compatibility is on the works. - -- Jesus Cea Avion

Re: [Python-3000] Help replacing Py_FindMethod

2008-07-29 Thread Jesus Cea
. My doubt now is how do write a *clever* "getattr" routine without "Py_FindMethod". - -- Jesus Cea Avion _/_/ _/_/_/_/_/_/ [EMAIL PROTECTED] - http://www.jcea.es/ _/_/_/_/ _/_/_/_/ _/_/ jabbe

[Python-3000] Bytes and unicode conversion in C extensions

2008-07-29 Thread Jesus Cea
; a=dbm.open("z","c") |>> a <_gdbm.gdbm object at 0x82fb560> |>> a["a"]="b" |>> a["b"]="c" |>> a.sy

Re: [Python-3000] Help replacing Py_FindMethod

2008-07-29 Thread Jesus Cea
usable when the data is "static" and available, while "tp_getattr" and friends are used when you need to execute some code in the lookup. But I read somewhere that "tp_getattr" was deprecated :-? ... - -- Jesus Cea Avion _/_/

[Python-3000] pybsddb 4.7.3pre1: Compatibility with Python 3.0

2008-08-13 Thread Jesus Cea
s are rejected. To easy testsuite porting, I've defined some minimal proxy/adapter objects to facade unicode strings from/to "bytes". So, current testsuite works for every supported python release, with the minimal conditional code. These adapter objects ARE NOT INTENTED to b

Re: [Python-3000] Bytes and unicode conversion in C extensions

2008-08-13 Thread Jesus Cea
ite and basecode between all pybsddb supported platforms. Not the nicest thing to do, but the the bulk of code is unchanged and fully shared in any supported python version. The adapter code is big, but isolated. Some code would be simplest if pybsddb classes allowed subclassing. This is in m

Re: [Python-3000] Bytes and unicode conversion in C extensions

2008-08-13 Thread Jesus Cea
uld do the conversion directly, so paying for this work in a way or another. - -- Jesus Cea Avion _/_/ _/_/_/_/_/_/ [EMAIL PROTECTED] - http://www.jcea.es/ _/_/_/_/ _/_/_/_/ _/_/ jabber / xmpp:[EMAIL

Re: [Python-3000] Bytes and unicode conversion in C extensions

2008-08-13 Thread Jesus Cea
subclassing or adding new attibutes to a given instance. I will (probably) work on this for a future pybsddb version. Pointers to references to do this kind of magic welcomed :-) - -- Jesus Cea Avion _/_/ _/_/_/_/_/_/ [EMAIL PROTECTED] - htt

[Python-3000] Email update

2008-08-31 Thread Jesus Cea
any list/contact info out there. I already updated my mailman subscriptions months ago. My old email can vanish without warning. - -- Jesus Cea Avion _/_/ _/_/_/_/_/_/ [EMAIL PROTECTED] - http://www.jcea.es/ _/_/_/_/ _/_/_/_/

[Python-3000] bsddb landing in py3k branch

2008-08-31 Thread Jesus Cea
ersion: 4.7.25). I guess we should update some buildbots, also... (I already test the code privately against all Berkeley DB versions 4.0-4.7). - -- Jesus Cea Avion _/_/ _/_/_/_/_/_/ [EMAIL PROTECTED] - ht

Re: [Python-3000] Should len() clip to sys.maxsize or raiseOverflowError?

2008-09-03 Thread Jesus Cea
, so the hardware growing is under control :)... barely. - -- Jesus Cea Avion _/_/ _/_/_/_/_/_/ [EMAIL PROTECTED] - http://www.jcea.es/ _/_/_/_/ _/_/_/_/ _/_/ jabber / xmpp

[Python-3000] bsddb finished for 2.6/3.0 (and ": str() on a bytes instance")

2008-09-03 Thread Jesus Cea
.0b3+ (py3k:66121, Sep 1 2008, 22:25:14) [GCC 4.2.3] on sunos5 Type "help", "copyright", "credits" or "license" for more information. >>> b=b'some string...' >>> b b'some string...' >>> str(b) "b'some

Re: [Python-3000] bsddb finished for 2.6/3.0 (and ": str() on a bytes instance")

2008-09-03 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Christian Heimes wrote: > Jesus Cea wrote: >> I can't reproduce the issue in my local Python3.0 development version >> (here, all tests passes fine). Any suggestion?. > > Yeah, use my byte warning mode of Python 3.0. Befo

Re: [Python-3000] bsddb finished for 2.6/3.0 (and ": str() on a bytes instance")

2008-09-03 Thread Jesus Cea
3.0 branch: http://www.python.org/dev/buildbot/3.0.stable/changes/2687 Can I do anything to revert this decision?. If not, what can I do to be reconsidered in 3.1?. - -- Jesus Cea Avion _/_/ _/_/_/_/_/_/ [EMAIL PROTECTED] - http://www.jcea.es/ _/_/_/_/ _/_/_

Re: [Python-3000] bsddb finished for 2.6/3.0 (and ": str() on a bytes instance")

2008-09-04 Thread Jesus Cea
explaining the situation and letting me argue back :). Thanks to all of you (python-dev) for the time you wasted teaching me and suffering builtbots crashes O:-) PS: I will battle for bsddb readmission. If any of you can provide positive rationals for it, please, let me know. - -- Jesus C

[Python-3000] About "daemon" in threading module

2008-09-04 Thread Jesus Cea
or redo the class to avoid new attribute creation, maybe via some "thread.__setattr__()" magic. Sorry if this issue is already discussed. I don't find any previous thread about this. PS: If you mistype the method name, you get an error. If you mistype the attribute as

Re: [Python-3000] PEP 3108 and the demise of bsddb3

2008-09-04 Thread Jesus Cea
that sawchain down! :-P - -- Jesus Cea Avion _/_/ _/_/_/_/_/_/ [EMAIL PROTECTED] - http://www.jcea.es/ _/_/_/_/ _/_/_/_/ _/_/ jabber / xmpp:[EMAIL PROTECTED] _/_/_/_/ _/_/_/_/_/ . _/_/ _/_/_/_/

Re: [Python-3000] PEP 3108 and the demise of bsddb3

2008-09-04 Thread Jesus Cea
cision. > > Put in my vote for restoration, deprecation, and thought-out > removal/replacement in 3.1. > The ensuing discussions have made it clear that immediate removal is > controversial and problematic. > Also, part of the original motivation disappeared when Jesus Cea > stepp

Re: [Python-3000] PEP 3108 and the demise of bsddb3

2008-09-04 Thread Jesus Cea
to me, to fully honor my commit privileges. - -- Jesus Cea Avion _/_/ _/_/_/_/_/_/ [EMAIL PROTECTED] - http://www.jcea.es/ _/_/_/_/ _/_/_/_/ _/_/ jabber / xmpp:[EMAIL PROTEC

Re: [Python-3000] Fwd: Beta 3 planned for this Wednesday (OT: Beta 3 planned for this Wednesday)

2008-09-05 Thread Jesus Cea
nstead of bytes would > need fixing if we waited until 3.1 to fix it. +1. Release Blocker. - -- Jesus Cea Avion _/_/ _/_/_/_/_/_/ [EMAIL PROTECTED] - http://www.jcea.es/ _/_/_/_/ _/_/

Re: [Python-3000] About "daemon" in threading module

2008-09-05 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nick Coghlan wrote: > Guido van Rossum wrote: >> On Thu, Sep 4, 2008 at 8:47 AM, Antoine Pitrou <[EMAIL PROTECTED]> wrote: >>> Jesus Cea jcea.es> writes: >>>> First we had "thread.setDaemon()". Th

Re: [Python-3000] [Python-Dev] dbm.sqlite

2008-09-17 Thread Jesus Cea
wild. Of course I'm +1 to re-adding bsddb, moreover with 3.0 slipping the original 1st October release. But note than Guido in person "rather prefer" to drop bsddb in 3.0. I have a conflict talking about sqlite dbm module in 3.0. So

[Python-3000] Minor "bugs" in "what's new in Python 3.0"

2008-12-11 Thread Jesus Cea
quot; PEP 3110: Catching exceptions. You must now use :keyword:`except` SomeException as variable instead of :keyword:`except` *SomeException, variable*. Moreover, the variable is explicitly deleted when the except block is left. """ I guess tha