[Python-Dev] string_join overrides TypeError exception thrown in generator

2005-08-14 Thread Stephen Thorne
Hi, An interesting problem was pointed out to me, which I have distilled to this testcase: def gen(): raise TypeError, "I am a TypeError" yield 1 def one(): return ''.join( x for x in gen() ) def two(): return ''.join([x for x in gen()]) for x in one, two: try: x() exc

[Python-Dev] SWIG and rlcompleter

2005-08-14 Thread Michael Krasnyk
Hello all, Recently I've found that rlcompleter does not work correctly with SWIG generated classes. In some cases dir(object) containes not only strings, but also type of the object, smth like . And condition "word[:n] == attr" throws an exception. Is it possible to solve this problem with follo

[Python-Dev] PEP 348 (exception reorg) revised again

2005-08-14 Thread Brett Cannon
I am sure people mainly care about the big changes inroduced by revision 1.8 of the PEP (http://www.python.org/peps/pep-0348.html). So, first is that WindowsError is staying. Enough people want it to stay and have a legitimate use that I removed the proposal to ditch it. Second, I changed the ba

[Python-Dev] python-dev Summary for 2005-07-16 through 2005-07-31 [draft]

2005-08-14 Thread Tony Meyer
Here's July Part Two. As usual, if anyone can spare the time to proofread this (it's fairly short this fortnight!), that would be great! Please send any corrections or suggestions to Tim (tlesher at gmail.com), Steve (steven.bethard at gmail.com) and/or me, rather than cluttering the list. Ta! =

[Python-Dev] request for code review - hashlib - patch #1121611

2005-08-14 Thread Gregory P. Smith
https://sourceforge.net/tracker/index.php?func=detail&aid=1121611&group_id=5470&atid=305470 This is the hashlib module that speeds up python's md5 and sha1 support by using openssl (when available) as well as adding sha224/256 + sha384/512 support (plus anything openssl provides). I believe it is

Re: [Python-Dev] cvs to bzr?

2005-08-14 Thread skip
Lalo> You can, however, convert from CVS to baz (arch), and from there Lalo> to bzr. Would this be with cscvs? According to the cscvs wiki page at http://wiki.gnuarch.org/cscvs cscvs is current unmaintained and can't handle repositories with branches. In addition, it appears that t

Re: [Python-Dev] cvs to bzr?

2005-08-14 Thread Lalo Martins
And so says [EMAIL PROTECTED] on 14/08/05 07:00... > Based on the message Guido forwarded, I installed bazaar-ng. From Mark's > note it seems they convert cvs repositories to bzr repositories, but I > didn't see any mention in the bzr docs of any sort of cvs2bzr tool. > Likewise, Google didn't tur

Re: [Python-Dev] Fwd: PEP: Migrating the Python CVS to Subversion

2005-08-14 Thread Martin v. Löwis
Daniel Berlin wrote: > The argument "network and disk is cheap" doesn't work for us when you > are talking 5-10 gigabytes of initial transfer :). However, I doubt > it's more than a hundred meg or so for python, if that. > > You may run into these problems in 10 years :) I don't know how bazaar-

Re: [Python-Dev] Fwd: Distributed RCS

2005-08-14 Thread Martin v. Löwis
Gustavo Niemeyer wrote: > You may use rsync: > > rsync -av --delete bazaar-ng.org::bazaar-ng/bzr/bzr.dev . > > Or bzr itself: > > bzr branch http://bazaar-ng.org/bzr/bzr.dev Ah, thanks. Fetching it with rsync is so much faster than fetching it with bzr, though... Regards, Martin __

Re: [Python-Dev] Fwd: Distributed RCS

2005-08-14 Thread Daniel Berlin
On Mon, 2005-08-15 at 00:15 +0200, "Martin v. Löwis" wrote: > Daniel Berlin wrote: > > I'm not sure how big python's repo is, but you probably want to use the > > attached patch to speed up cvs2svn. It changes it to reconstruct the > > revisions on it's own instead of calling cvs or rcs. > > Tha

Re: [Python-Dev] build problems on macosx (CVS HEAD)

2005-08-14 Thread Michael Hudson
"Martin v. Löwis" <[EMAIL PROTECTED]> writes: > Ronald Oussoren wrote: >> I'm trying to build CVS HEAD on OSX 10.4.2 (Xcode 2.1), with a >> checkout that is less than two hours old. I'm building a standard >> unix tree (no framework install): > > I just committed what I think is a bugfix for t

Re: [Python-Dev] Fwd: PEP: Migrating the Python CVS to Subversion

2005-08-14 Thread Daniel Berlin
On Sun, 2005-08-14 at 23:58 +0200, "Martin v. Löwis" wrote: > Guido van Rossum wrote: > > Here's another POV. > > I think I agree with Daniel's view, in particular wrt. to performance. > Whatever the replacement tool, it should perform as well or better > than CVS currently does; it also shouldn't

Re: [Python-Dev] Fwd: Distributed RCS

2005-08-14 Thread Martin v. Löwis
Daniel Berlin wrote: > I'm not sure how big python's repo is, but you probably want to use the > attached patch to speed up cvs2svn. It changes it to reconstruct the > revisions on it's own instead of calling cvs or rcs. Thanks for the patch, but cvs2svn works fairly well for us as is (in the ve

Re: [Python-Dev] Fwd: Distributed RCS

2005-08-14 Thread Gustavo Niemeyer
> I had problems finding the place where the bazaar-NG source code > repository is stored - is there a public access to the HEAD version? You may use rsync: rsync -av --delete bazaar-ng.org::bazaar-ng/bzr/bzr.dev . Or bzr itself: bzr branch http://bazaar-ng.org/bzr/bzr.dev Regards, -- Gu

Re: [Python-Dev] Fwd: PEP: Migrating the Python CVS to Subversion

2005-08-14 Thread Daniel Berlin
On Sun, 2005-08-14 at 11:13 -0700, Guido van Rossum wrote: > Here's another POV. (Why does evereybody keep emailing me personally?) > Because we love you, and I forgot to cc python-dev. ___ Python-Dev mailing list Python-Dev@python.org http://mail.py

Re: [Python-Dev] Fwd: Distributed RCS

2005-08-14 Thread Daniel Berlin
On Sun, 2005-08-14 at 11:12 -0600, Neil Schemenauer wrote: > On Sun, Aug 14, 2005 at 06:16:11PM +0200, "Martin v. Löwis" wrote: > > It depends on what "a bit" is. Waiting a month would be fine; waiting > > two years might be pointless. > > It looks like the process of converting a CVS repository t

Re: [Python-Dev] Fwd: PEP: Migrating the Python CVS to Subversion

2005-08-14 Thread Martin v. Löwis
Guido van Rossum wrote: > Here's another POV. I think I agree with Daniel's view, in particular wrt. to performance. Whatever the replacement tool, it should perform as well or better than CVS currently does; it also shouldn't perform much worse than subversion. I've been using git (or, rather, c

Re: [Python-Dev] Fwd: Distributed RCS

2005-08-14 Thread Martin v. Löwis
Guido van Rossum wrote: > It sounds as if bazaar-NG can use a bit of its own medicine -- I hope > everybody who found a bug in their tools submitted a patch! :-) I had problems finding the place where the bazaar-NG source code repository is stored - is there a public access to the HEAD version? Th

Re: [Python-Dev] build problems on macosx (CVS HEAD)

2005-08-14 Thread Martin v. Löwis
Ronald Oussoren wrote: > I'm trying to build CVS HEAD on OSX 10.4.2 (Xcode 2.1), with a > checkout that is less than two hours old. I'm building a standard > unix tree (no framework install): I just committed what I think is a bugfix for the recent st_gen support. Unfortunately, I can't try th

Re: [Python-Dev] Fwd: Distributed RCS

2005-08-14 Thread Gustavo Niemeyer
> Like Skip, I tried experimenting with it. While that may be the right > model, I don't think it is the right software. In bazaar-ng 0.0.5 (which > is what Debian unstable currently has), bzr commit would not open > a text editor, but require the commit message on the command line; > selective com

Re: [Python-Dev] Distributed RCS

2005-08-14 Thread Michael Hudson
"Terry Reedy" <[EMAIL PROTECTED]> writes: > It seems to me that auto testing of the tentatively updated trunk before > final commitment would avoid the 'who checked in test-breaking code' > messages that appear here occasionally. I don't think there's any fundamental impossibility in setting

Re: [Python-Dev] Exception Reorg PEP checked in

2005-08-14 Thread Guido van Rossum
On 8/14/05, Michael Hudson <[EMAIL PROTECTED]> wrote: > Wilfredo Sánchez Vega <[EMAIL PROTECTED]> writes: > > >I'm curious about why Python lacks FileNotFoundError, > > PermissionError and the like as subclasses of IOError. > > Good question. Lack of effort/inertia? Well, I wonder how often

Re: [Python-Dev] Exception Reorg PEP checked in

2005-08-14 Thread Michael Hudson
Wilfredo Sánchez Vega <[EMAIL PROTECTED]> writes: >I'm curious about why Python lacks FileNotFoundError, > PermissionError and the like as subclasses of IOError. Good question. Lack of effort/inertia? >Catching IOError and looking at errno to figure out what went > wrong seems prett

Re: [Python-Dev] Fwd: Distributed RCS

2005-08-14 Thread Neal Becker
I encourage everyone to look at mercurial. It is also written in Python. I am using it daily. ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/pyth

Re: [Python-Dev] build problems on macosx (CVS HEAD)

2005-08-14 Thread Michael Hudson
Ronald Oussoren <[EMAIL PROTECTED]> writes: > Hi, > > I'm trying to build CVS HEAD on OSX 10.4.2 (Xcode 2.1), with a > checkout that is less than two hours old. I'm building a standard > unix tree (no framework install): It seems very likely that it was this change: http://fisheye.cenqua.com

Re: [Python-Dev] build problems on macosx (CVS HEAD)

2005-08-14 Thread Brett Cannon
On 8/14/05, Ronald Oussoren <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to build CVS HEAD on OSX 10.4.2 (Xcode 2.1), with a > checkout that is less than two hours old. I'm building a standard > unix tree (no framework install): > > $ ./configure --prefix=/opt/python/2.5 > ... > $ make > ... >

[Python-Dev] Fwd: PEP: Migrating the Python CVS to Subversion

2005-08-14 Thread Guido van Rossum
Here's another POV. (Why does evereybody keep emailing me personally?) --Guido van Rossum (home page: http://www.python.org/~guido/) -- Forwarded message -- From: Daniel Berlin <[EMAIL PROTECTED]> Date: Aug 13, 2005 7:33 PM Subject: Re: [Python-Dev] PEP: Migrating the Python CVS t

Re: [Python-Dev] Fwd: Distributed RCS

2005-08-14 Thread Guido van Rossum
On 8/14/05, Neil Schemenauer <[EMAIL PROTECTED]> wrote: > It looks like the process of converting a CVS repository to > Bazaar-NG does not yet work well (to be kind). The path > CVS->SVN->bzr would probably work better. I suspect cvs2svn has > been used on quite a few CVS repositories already. I

Re: [Python-Dev] cvs to bzr?

2005-08-14 Thread Neil Schemenauer
On Sat, Aug 13, 2005 at 06:03:46PM -0600, Neil Schemenauer wrote: > Haven't tried it but should work: > > http://darcs.net/DarcsWiki/Tailor After applying the attached patch, this command seemed to work for converting the initial revision: ~/src/cvsync/tailor.py --source-kind cvs --target-k

[Python-Dev] build problems on macosx (CVS HEAD)

2005-08-14 Thread Ronald Oussoren
Hi, I'm trying to build CVS HEAD on OSX 10.4.2 (Xcode 2.1), with a checkout that is less than two hours old. I'm building a standard unix tree (no framework install): $ ./configure --prefix=/opt/python/2.5 ... $ make ... ar cr libpython2.5.a Modules/config.o Modules/getpath.o Modules/ main.o

Re: [Python-Dev] Fwd: Distributed RCS

2005-08-14 Thread Neil Schemenauer
On Sun, Aug 14, 2005 at 06:16:11PM +0200, "Martin v. Löwis" wrote: > It depends on what "a bit" is. Waiting a month would be fine; waiting > two years might be pointless. It looks like the process of converting a CVS repository to Bazaar-NG does not yet work well (to be kind). The path CVS->SVN->

Re: [Python-Dev] Fwd: Distributed RCS

2005-08-14 Thread Martin v. Löwis
[EMAIL PROTECTED] wrote: > Granted. What is the cost of waiting a bit longer to see if it (or > something else) gets more usable and would hit the mark better than svn? I > presume that once we switch away from cvs to something else, it's unlikely > we would switch again unless some huge roadbloc

Re: [Python-Dev] Fwd: Distributed RCS

2005-08-14 Thread skip
Martin> Like Skip, I tried experimenting with it. While that may be the Martin> right model, I don't think it is the right software. [problems Martin> elided] Martin> So I assume that using bazaar-ng right now would cause problems Martin> in day-to-day usage. Granted. What

Re: [Python-Dev] cvs to bzr?

2005-08-14 Thread skip
>> ... I didn't see any mention in the bzr docs of any sort of cvs2bzr >> tool. Neil> Haven't tried it but should work: Neil> http://darcs.net/DarcsWiki/Tailor Thanks Neil. I downloaded it last night and played around a bit. What follows is a description that will hopeful

Re: [Python-Dev] Fwd: Distributed RCS

2005-08-14 Thread Martin v. Löwis
Guido van Rossum wrote: > With permission, I'm forwarding an email from Mark Shuttleworth about > Bazaar-2 (aka Bazaar-NG), a distributed source control system (not > entirely unlike bitkeeper, I presume) written in Python and in use by > the Ubuntu system. What do people think of using this for Py

Re: [Python-Dev] Fwd: Distributed RCS

2005-08-14 Thread skip
Anthony> The current bazaar, last time I looked (a few months ago) did Anthony> not work on Windows. This is a complete deal-breaker for us, I assume it would be a deal breaker for many people. According to the Bazaar-NG website it works on "Linux, Windows and Mac OS X, or any system with