Re: [Python-Dev] Compiler used to build Python for Windows

2008-03-11 Thread Martin v. Löwis
>> To implement such a system, you need to get all ABI dependencies out >> of the header files; this includes the structure layouts in particular. > > That could hurt the performance of some things. Macros > like PyList_GET_ITEM etc. rely on knowing about struct > layouts to get at things quickly.

Re: [Python-Dev] Complexity documentation request

2008-03-11 Thread Martin v. Löwis
>> I follow the advice Guido gave: I use the data >> structure that will make my code shortest and easiest >> to read, > > But given a choice such as list vs. dict, the code > is almost identical either way. What do you do then? Why do you say that? Lists and dictionaries are *completely* differe

Re: [Python-Dev] Complexity documentation request

2008-03-11 Thread Greg Ewing
Martin v. Löwis wrote: > I follow the advice Guido gave: I use the data > structure that will make my code shortest and easiest > to read, But given a choice such as list vs. dict, the code is almost identical either way. What do you do then? Toss a coin? Or make a few educated guesses based on w

Re: [Python-Dev] Complexity documentation request

2008-03-11 Thread Aahz
On Wed, Mar 12, 2008, Stephen J. Turnbull wrote: > "Martin v. L?wis" writes: >> >> Premature optimization is the root of all evil. > > Actually, Knuth's bon mot was "Premature optimization is the root of > all error." >From my .sig database: "Premature optimization is the root of all evil in pr

Re: [Python-Dev] Compiler used to build Python for Windows

2008-03-11 Thread Greg Ewing
Martin v. Löwis wrote: > To implement such a system, you need to get all ABI dependencies out > of the header files; this includes the structure layouts in particular. That could hurt the performance of some things. Macros like PyList_GET_ITEM etc. rely on knowing about struct layouts to get at th

Re: [Python-Dev] [OT] Python mentioned on OOPSLA 2008 postcard

2008-03-11 Thread Guido van Rossum
Well maybe they'll invite me as a speaker now. ;-) On Tue, Mar 11, 2008 at 3:34 PM, Brett Cannon <[EMAIL PROTECTED]> wrote: > I just got my postcard announcing OOPSLA 2008. Interesting thing is > that the postcard, which lists various things that will be at OOPSLA, > includes Python. It's actual

Re: [Python-Dev] Complexity documentation request

2008-03-11 Thread Stephen J. Turnbull
"Martin v. Löwis" writes: > Premature optimization is the root of all evil. Actually, Knuth's bon mot was "Premature optimization is the root of all error." Which is probably worse; it leaves the perpetrator the excuse "but I was only trying to help!" While we all know what to do to evildoers,

[Python-Dev] [OT] Python mentioned on OOPSLA 2008 postcard

2008-03-11 Thread Brett Cannon
I just got my postcard announcing OOPSLA 2008. Interesting thing is that the postcard, which lists various things that will be at OOPSLA, includes Python. It's actually listed in the first line and the thing is not alphabetized. And even cooler, it is the first language listed (ruby, Objective-C, C

Re: [Python-Dev] Complexity documentation request

2008-03-11 Thread Martin v. Löwis
> Can you really say that you don't make any design > decisions early on based on the assumption that > dict lookup will almost certainly be a lot faster > than searching a list? I follow the advice Guido gave: I use the data structure that will make my code shortest and easiest to read, regardles

[Python-Dev] [ANN] Python 2.3.7 and 2.4.5 (final)

2008-03-11 Thread Martin v. Löwis
On behalf of the Python development team and the Python community, I'm happy to announce the release of Python 2.4.5 and 2.3.7 (final). Both releases include only security fixes. Python 2.5 is the latest version of Python, we're making this release for people who are still running Python 2.3 or 2.

Re: [Python-Dev] Compiler used to build Python for Windows

2008-03-11 Thread Martin v. Löwis
>>> I think the best lesson here is Tcl. Because it uses stubs mechanism, >>> you don't need to depend on tclXX.dll, you don't deal with really >>> direct implementation details, you don't care about runtimes, >>> everything is much easier. Maybe it's possible (and not too late) for >>> Python to s

Re: [Python-Dev] Complexity documentation request

2008-03-11 Thread Dimitrios Apostolou
Daniel Stutzbach wrote: > On Sun, Mar 9, 2008 at 9:22 AM, Aahz <[EMAIL PROTECTED]> wrote: >> There probably would be some value in a wiki page on python.org that >> provides this information, particularly across versions. You may be >> able to find volunteers to help on comp.lang.python. > > I

Re: [Python-Dev] Python XML Validator

2008-03-11 Thread Stefan Behnel
Mike Meyer wrote: > On Tue, 11 Mar 2008 14:55:04 +0100 Stefan Behnel <[EMAIL PROTECTED]> wrote: >> (weird places these threads come up at, but now that it's here...) >> Mike Meyer wrote: >>> On Tue, 04 Mar 2008 15:44:32 -0800 Ned Deily <[EMAIL PROTECTED]> wrote: In article <[EMAIL PROTECTED]>,

Re: [Python-Dev] Python XML Validator

2008-03-11 Thread Mike Meyer
On Tue, 11 Mar 2008 14:55:04 +0100 Stefan Behnel <[EMAIL PROTECTED]> wrote: > (weird places these threads come up at, but now that it's here...) > Mike Meyer wrote: > > On Tue, 04 Mar 2008 15:44:32 -0800 Ned Deily <[EMAIL PROTECTED]> wrote: > >> In article <[EMAIL PROTECTED]>, > >> Mike Meyer <[EM

Re: [Python-Dev] Compiler used to build Python for Windows

2008-03-11 Thread Stefan Behnel
Martin v. Löwis wrote: >> I think the best lesson here is Tcl. Because it uses stubs mechanism, >> you don't need to depend on tclXX.dll, you don't deal with really >> direct implementation details, you don't care about runtimes, >> everything is much easier. Maybe it's possible (and not too late)

Re: [Python-Dev] Python XML Validator

2008-03-11 Thread Stefan Behnel
Mike Meyer wrote: > On Wed, 05 Mar 2008 13:01:14 +1300 Greg Ewing <[EMAIL PROTECTED]> wrote: > >> Mike Meyer wrote: >>> Trying to install it from the repository is a PITA, because >>> it uses both the easyinstall and Pyrex >> It shouldn't depend on Pyrex as long as it's distributed >> with the gen

Re: [Python-Dev] Python XML Validator

2008-03-11 Thread Stefan Behnel
(weird places these threads come up at, but now that it's here...) Mike Meyer wrote: > On Tue, 04 Mar 2008 15:44:32 -0800 Ned Deily <[EMAIL PROTECTED]> wrote: >> In article <[EMAIL PROTECTED]>, >> Mike Meyer <[EMAIL PROTECTED]> wrote: >>> On Thu, 28 Feb 2008 23:42:49 + (UTC) Medhat Gayed >>>