Re: [Python-Dev] 2.4.4: backport classobject.c HAVE_WEAKREFS?

2006-10-10 Thread Martin v. Löwis
Raymond Hettinger schrieb: >> the slightly obscure bit that requires some getting used to is >> that all these flags don't really mean "I have such and such >> feature" but just "I could have such and such >> feature, if the corresponding tp_xxx field were set". > > I would like to see that clea

Re: [Python-Dev] 2.4 vs Windows vs bsddb

2006-10-10 Thread Tim Peters
[Tim] >> Given that, the assert() in question looks fine to me: >> ... |>> Either that, or the original author (and me, just above) made an error >> in analyzing what must be true at this point. | [David Hopwood] > You omitted to state an assumption that sizeof(errTxt) >= 4, since size_t > (and t

Re: [Python-Dev] 2.4 vs Windows vs bsddb [correction]

2006-10-10 Thread David Hopwood
I wrote: > You omitted to state an assumption that sizeof(errTxt) >= 4, since size_t > (and the constant 4) are unsigned. Sorry, the constant '4' is signed, but sizeof(errTxt) - 4 can nevertheless wrap around unless sizeof(errTxt) >= 4. -- David Hopwood <[EMAIL PROTECTED]>

Re: [Python-Dev] 2.4 vs Windows vs bsddb

2006-10-10 Thread David Hopwood
Tim Peters wrote: > Given that, the assert() in question looks fine to me: > > if (_db_errmsg[0] && bytes_left < (sizeof(errTxt) - 4)) { > bytes_left = sizeof(errTxt) - bytes_left - 4 - 1; > assert(bytes_left >= 0); > > We can't get into the block unless > > b

Re: [Python-Dev] 2.4.4: backport classobject.c HAVE_WEAKREFS?

2006-10-10 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Oct 10, 2006, at 5:47 PM, Raymond Hettinger wrote: >> the slightly obscure bit that requires some getting used to is >> that all these flags don't really mean "I have such and such >> feature" but just "I could have such and such >> feature, if the

Re: [Python-Dev] 2.4.4: backport classobject.c HAVE_WEAKREFS?

2006-10-10 Thread Raymond Hettinger
> The change was for clarity -- most things that have the weakref slots > filled-in will also make the flag explicit -- that makes it easier on > the brain when verifying code that checks the weakref flag. > I don't understand why you added this flag here; Perhaps my other post wasn't clear. The

Re: [Python-Dev] Cloning threading.py using proccesses

2006-10-10 Thread Josiah Carlson
Fredrik Lundh <[EMAIL PROTECTED]> wrote: > > Josiah Carlson wrote: > > > Presumably with this library you have created, you have also written a > > fast object encoder/decoder (like marshal or pickle). If it isn't any > > faster than cPickle or marshal, then users may bypass the module and opt

Re: [Python-Dev] 2.4.4: backport classobject.c HAVE_WEAKREFS?

2006-10-10 Thread Armin Rigo
Hi Raymond, On Fri, Oct 06, 2006 at 08:48:15AM -0700, Raymond Hettinger wrote: > No need to backport. Py_TPFLAGS_DEFAULT implies > Py_TPFLAGS_HAVE_WEAKREFS. > > > The change was for clarity -- most things that have the weakref slots > filled-in will also make the flag explicit -- that makes it

Re: [Python-Dev] 2.4 vs Windows vs bsddb

2006-10-10 Thread Tim Peters
[Gregory P. Smith] > It seems bad form to C assert() within a python extension. crashing > is bad. Just code it to not copy the string in that case. The > exception type should convey enough info alone and if someone actually > looks at the string description of the exception they're welcome to

Re: [Python-Dev] 2.4 vs Windows vs bsddb

2006-10-10 Thread Gregory P. Smith
On Mon, Oct 09, 2006 at 08:11:59PM -0400, Tim Peters wrote: > [Tim] > > I just noticed that the bsddb portion of Python fails to compile on > > the 2.4 Windows buildbots, but for some reason the buildbot machinery > > doesn't notice the failure: > > But it does now. This is the revision that brok

[Python-Dev] BRANCH FREEZE, release24-maint for 2.4.4c1. 00:00UTC, 11 October 2006

2006-10-10 Thread Anthony Baxter
The release24-maint branch is frozen for the 2.4.4c1 release from 00:00UTC on the 11th of October. That's about 7 hours from now. Anthony -- Anthony Baxter <[EMAIL PROTECTED]> It's never too late to have a happy childhood. ___ Python-Dev mailing li

Re: [Python-Dev] Cloning threading.py using proccesses

2006-10-10 Thread Fredrik Lundh
Josiah Carlson wrote: > Presumably with this library you have created, you have also written a > fast object encoder/decoder (like marshal or pickle). If it isn't any > faster than cPickle or marshal, then users may bypass the module and opt > for fork/etc. + XML-RPC XML-RPC isn't close to marsh

Re: [Python-Dev] Cloning threading.py using proccesses

2006-10-10 Thread Josiah Carlson
"Richard Oudkerk" <[EMAIL PROTECTED]> wrote: > I am not sure how sensible the idea is, but I have had a first stab at > writing a module processing.py which is a near clone of threading.py > but uses processes and sockets for communication. (It is one way of > avoiding the GIL.) On non-windows p

[Python-Dev] DRAFT: python-dev summary for 2006-08-16 to 2006-08-31

2006-10-10 Thread Steven Bethard
Here's the draft summary for the second half of August. As always, comments and corrections are greatly appreciated! = Announcements = --- Python communnity buildbots --- Want to make sure your package works with the lates

Re: [Python-Dev] BUG (urllib2) Authentication request header is broken on long usernames and passwords

2006-10-10 Thread The Doctor What
Aahz wrote: > On Mon, Oct 09, 2006, The Doctor What wrote: >> I found a bug in urllib2's handling of basic HTTP authentication. > > Please submit your bug to SourceForge, then (optional) post the bug > number back here. > > See http://www.python.org/dev/faq/#bugs Thank you! I couldn't find the

Re: [Python-Dev] Proprietary code in python?

2006-10-10 Thread Fredrik Lundh
"Neal Becker" <[EMAIL PROTECTED]> wrote: > http://www.google.com/codesearch?q=+doc:DxlBcBw4TXo+proprietary+confidential+show:DxlBcBw4TXo:BwgQSUaGDCc:1s0hP8rbIGE&sa=N&cd=1&ct=ri&cs_p=http://www.python.org/download/releases/binaries-1.3/python-IRIX-5.3-full.tar.gz&cs_f=lib/python/irix5/AWARE.py#a0

Re: [Python-Dev] Proprietary code in python?

2006-10-10 Thread Nick Coghlan
Neal Becker wrote: > http://www.google.com/codesearch?q=+doc:DxlBcBw4TXo+proprietary+confidential+show:DxlBcBw4TXo:BwgQSUaGDCc:1s0hP8rbIGE&sa=N&cd=1&ct=ri&cs_p=http://www.python.org/download/releases/binaries-1.3/python-IRIX-5.3-full.tar.gz&cs_f=lib/python/irix5/AWARE.py#a0 That file isn't there a

[Python-Dev] Proprietary code in python?

2006-10-10 Thread Neal Becker
http://www.google.com/codesearch?q=+doc:DxlBcBw4TXo+proprietary+confidential+show:DxlBcBw4TXo:BwgQSUaGDCc:1s0hP8rbIGE&sa=N&cd=1&ct=ri&cs_p=http://www.python.org/download/releases/binaries-1.3/python-IRIX-5.3-full.tar.gz&cs_f=lib/python/irix5/AWARE.py#a0

Re: [Python-Dev] [Python-3000] Sky pie: a "var" keyword

2006-10-10 Thread Fredrik Lundh
> I forgot the import statement (especially the * version) not only that, you also forgot what mailing list you were posting to... ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: ht

Re: [Python-Dev] [Python-3000] Sky pie: a "var" keyword

2006-10-10 Thread Nick Coghlan
Nick Coghlan wrote: > Any proposal such as this also needs to addresses all of the *other* name > binding statements in Python: > >try/except >for loop >with statement >def statement >class statement I forgot the import statement (especially the * version) Cheers, Nick. --