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
[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
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]>
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
-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
> 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
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
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
[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
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
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
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
"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
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
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
"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
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
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
> 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
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.
--
20 matches
Mail list logo