Re: [Python-Dev] fixing tests on windows

2008-04-04 Thread Tim Golden
Terry Reedy wrote: If the testdir disallows the search indexer, then there should be no need to disable Windows Search Service. If privatizing the dir kept other programs out, then likewise. | Or were you suggesting that there is some programmatic way for the | test suite to create

Re: [Python-Dev] fixing tests on windows

2008-04-04 Thread Tim Golden
Trent Nelson wrote: 1. For a given python[_d].exe, always use the same test directory, but hash it against the entire python process path such that it's unique only for a given python instance. This is to guard against several build runs in parallel, presumably? 2. Make sure every time a

Re: [Python-Dev] fixing tests on windows

2008-04-04 Thread Trent Nelson
I agree with Tim, you can jump through as many hoops as you want (setting directories private, using %TEMP% exclusively, etc), but I doubt anything is going to change the behaviour of things like virus scanners, for example. Tim, let me know if you need help with anything, perhaps we could set

[Python-Dev] __eq__ vs hash

2008-04-04 Thread Ralf Schmitt
Hi all, the news file for python 2.6 does not mention that you need to define __hash__ in case you define __eq__ for a class. This breaks some code (for me: mercurial and pyparsing). Shouldn't this be documented somewhere (I also cannot find it in the whatsnew file). - Ralf

Re: [Python-Dev] r62129 - in python/trunk: PCbuild/debug.vsprops PCbuild/kill_python.c PCbuild/kill_python.vcproj PCbuild/pcbuild.sln PCbuild/pythoncore.vcproj PCbuild/release.vsprops Tools/buildbot/M

2008-04-04 Thread Trent Nelson
I don't like the part where the solution kills the Python process during a rebuild. It's too surprising for the user. Hmmm. When you say rebuild, I assume you mean the change I made to the pythoncore project's pre-link step to call kill_python.exe, and not to the post-build step of

Re: [Python-Dev] Annotations support in python

2008-04-04 Thread Benjamin Peterson
On Thu, Apr 3, 2008 at 11:49 PM, Neal Norwitz [EMAIL PROTECTED] wrote: The release schedule for 2.6/3.0 is http://www.python.org/dev/peps/pep-0361/ 3.0 will have the feature, 2.6 may or may not. There is an issue for this: http://bugs.python.org/issue2331 n On Thu, Apr 3, 2008 at 4:47

Re: [Python-Dev] RELEASED Python 2.6a2 and 3.0a4

2008-04-04 Thread Gerhard Häring
Hello Barry, Great job with the releases! Barry Warsaw wrote: On behalf of the Python development team and the Python community, I'm happy to announce the second alpha release of Python 2.6, and the fourth alpha release of Python 3.0. [...] In case you don't know already, the website is

Re: [Python-Dev] __eq__ vs hash

2008-04-04 Thread Ralf Schmitt
On Fri, Apr 4, 2008 at 4:38 PM, Guido van Rossum [EMAIL PROTECTED] wrote: On Fri, Apr 4, 2008 at 2:46 AM, Ralf Schmitt [EMAIL PROTECTED] wrote: the news file for python 2.6 does not mention that you need to define __hash__ in case you define __eq__ for a class. This breaks some code (for

Re: [Python-Dev] __eq__ vs hash

2008-04-04 Thread Guido van Rossum
Understood. Neither do I. :-) But maybe you could get the authors of that code into this discussion? On Fri, Apr 4, 2008 at 7:53 AM, Ralf Schmitt [EMAIL PROTECTED] wrote: On Fri, Apr 4, 2008 at 4:38 PM, Guido van Rossum [EMAIL PROTECTED] wrote: On Fri, Apr 4, 2008 at 2:46 AM, Ralf

Re: [Python-Dev] __eq__ vs hash

2008-04-04 Thread Jason Orendorff
On Fri, Apr 4, 2008 at 9:38 AM, Guido van Rossum [EMAIL PROTECTED] wrote: What specific code breaks? Maybe we need to turn this into a warning in order to be more backwards compatible? I looked at Mercurial. It doesn't use __hash__ at all. It uses __eq__ in two files, three total uses:

[Python-Dev] Summary of Tracker Issues

2008-04-04 Thread Tracker
ACTIVITY SUMMARY (03/28/08 - 04/04/08) Tracker at http://bugs.python.org/ To view or respond to any of the issues listed below, click on the issue number. Do NOT respond to this message. 1799 open (+34) / 12577 closed (+13) / 14376 total (+47) Open issues with patches: 536 Average

Re: [Python-Dev] __eq__ vs hash

2008-04-04 Thread Guido van Rossum
On Fri, Apr 4, 2008 at 8:08 AM, Jason Orendorff [EMAIL PROTECTED] wrote: On Fri, Apr 4, 2008 at 9:38 AM, Guido van Rossum [EMAIL PROTECTED] wrote: What specific code breaks? Maybe we need to turn this into a warning in order to be more backwards compatible? I looked at Mercurial. It

Re: [Python-Dev] __eq__ vs hash

2008-04-04 Thread Paul Moore
On 04/04/2008, Guido van Rossum [EMAIL PROTECTED] wrote: It doesn't use __hash__ at all. It uses __eq__ in two files, three total uses: http://hg.intevation.org/mercurial/crew/file/6c4e12682fb9/mercurial/commands.py

Re: [Python-Dev] __eq__ vs hash

2008-04-04 Thread Dirkjan Ochtman
Paul Moore wrote: That looks like it. I'll work up a patch and submit it to the Mercurial developers. I've already got one going. Cheers, Dirkjan ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev

[Python-Dev] osx x86 buildbot offer

2008-04-04 Thread Thomas Heller
I can offer an OS X x86 machine to run a buildbot on. This is a physical machine, running OS X 10.5 Leopard. Thomas ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe:

Re: [Python-Dev] fixing tests on windows

2008-04-04 Thread Terry Reedy
Tim Golden [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] | Terry Reedy wrote: | I suspect, but do not know, that the dialog box effects changes through | user-programmable interfaces. So while I would start with manual changes | to see if that solves the problem, I presume there

Re: [Python-Dev] r62129 - in python/trunk: PCbuild/debug.vsprops PCbuild/kill_python.c PCbuild/kill_python.vcproj PCbuild/pcbuild.sln PCbuild/pythoncore.vcproj PCbuild/release.vsprops Tools/buildbot/M

2008-04-04 Thread Martin v. Löwis
What do others that do Windows development think? I don't have a problem changing the build behaviour if the approach I've taken is generally disliked. I think kill_python should only ever be invoked in the build slaves; it should *not* be part of the regular build. If developers find they

Re: [Python-Dev] RELEASED Python 2.6a2 and 3.0a4

2008-04-04 Thread Terry Reedy
Gerhard Häring [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] | In case you don't know already, the website is not fully updated, yet: | | http://www.python.org/download/releases/2.6/ | | Top of the page says 2.6a1 instead of 2.6a2. | | This file is apparently not yet updated for

Re: [Python-Dev] r62129 - in python/trunk: PCbuild/debug.vsprops PCbuild/kill_python.c PCbuild/kill_python.vcproj PCbuild/pcbuild.sln PCbuild/pythoncore.vcproj PCbuild/release.vsprops Tools/buildbot/M

2008-04-04 Thread Trent Nelson
Ok, I'll change the approach this weekend. Trent. From: Martin v. Löwis [EMAIL PROTECTED] Sent: 04 April 2008 19:57 To: Trent Nelson Cc: Christian Heimes; python-dev@python.org Subject: Re: [Python-Dev] r62129 - in python/trunk: PCbuild/debug.vsprops

Re: [Python-Dev] [Python-3000] RELEASED Python 2.6a2 and 3.0a4

2008-04-04 Thread Martin v. Löwis
Error 404: File not found That has a simple explanation: the file is not there because it just doesn't exist yet, which in turn is because I have problems creating it (which is in turn due to switching to Visual Studio 2008). Regards, Martin ___

Re: [Python-Dev] socket.SOL_REUSEADDR: different semantics between Windows vs Unix (or why test_asynchat is sometimes dying on Windows)

2008-04-04 Thread Trent Nelson
Interesting results! I committed the patch to test_socket.py in r62152. I was expecting all other platforms except for Windows to behave consistently (i.e. pass). That is, given the following: import socket host = '127.0.0.1' sock = socket.socket(socket.AF_INET,

Re: [Python-Dev] Python source code on Bazaar vcs

2008-04-04 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mar 25, 2008, at 2:05 PM, [EMAIL PROTECTED] wrote: Did I misread the directions or do I really need the --create-prefix arg? Barry You do, the first time you push a user branch because users/skip Barry doesn't exist yet. It's

Re: [Python-Dev] socket.SOL_REUSEADDR: different semantics between Windows vs Unix (or why test_asynchat is sometimes dying on Windows)

2008-04-04 Thread Jean-Paul Calderone
On Fri, 4 Apr 2008 13:24:49 -0700, Trent Nelson [EMAIL PROTECTED] wrote: Interesting results! I committed the patch to test_socket.py in r62152. I was expecting all other platforms except for Windows to behave consistently (i.e. pass). That is, given the following: import socket

[Python-Dev] Dates wrong on front page of pydotorg

2008-04-04 Thread Martin Thomas
Did anyone else notice that the dates are incorrect in the news items on the front page? As an example: Published: Mon, 4 Apr 2008 which should be Published: Fri, 4 Apr 2008 I'll poke around and see if I can figure it out. Cheers //M ___

Re: [Python-Dev] Dates wrong on front page of pydotorg

2008-04-04 Thread Guilherme Polo
2008/4/4, Martin Thomas [EMAIL PROTECTED]: Did anyone else notice that the dates are incorrect in the news items on the front page? As an example: Published: Mon, 4 Apr 2008 which should be Published: Fri, 4 Apr 2008 I'll poke around and see if I can figure it out. There is a file

Re: [Python-Dev] __eq__ vs hash

2008-04-04 Thread Jean-Paul Calderone
On Fri, 4 Apr 2008 07:38:04 -0700, Guido van Rossum [EMAIL PROTECTED] wrote: On Fri, Apr 4, 2008 at 2:46 AM, Ralf Schmitt [EMAIL PROTECTED] wrote: the news file for python 2.6 does not mention that you need to define __hash__ in case you define __eq__ for a class. This breaks some code (for me:

Re: [Python-Dev] Dates wrong on front page of pydotorg

2008-04-04 Thread Martin Thomas
On Apr 4, 2008, at 6:37 PM, Guilherme Polo wrote: 2008/4/4, Martin Thomas [EMAIL PROTECTED]: Did anyone else notice that the dates are incorrect in the news items on the front page? As an example: Published: Mon, 4 Apr 2008 which should be Published: Fri, 4 Apr 2008 I'll poke around and

Re: [Python-Dev] osx x86 buildbot offer

2008-04-04 Thread Neal Norwitz
On Fri, Apr 4, 2008 at 11:52 AM, Thomas Heller [EMAIL PROTECTED] wrote: I can offer an OS X x86 machine to run a buildbot on. This is a physical machine, running OS X 10.5 Leopard. Thanks Thomas! Martin and I will coordinate with you off-list. n