Re: Python Forum

2010-06-04 Thread Terry Reedy
On 6/4/2010 3:04 PM, Emile van Sebille wrote: On 6/4/2010 11:27 AM Terry Reedy said... On 6/4/2010 12:28 PM, Emile van Sebille wrote: Is there now a non-email method of posting to this list? Google <==> comp.lang.python <==> python-list <==> gmane.comp.python.general where <==> is a bi-dire

Re: Python Forum

2010-06-04 Thread Lie Ryan
On 06/05/10 06:57, John Bokma wrote: > Lie Ryan writes: > >> On 06/04/10 11:56, John Bokma wrote: >>> Phlip writes: >>> On Jun 3, 3:20 pm, geremy condra wrote: >> You mean like how I never get answers, to my super-easy GED-level >> questions, here??! > > I agree. This

Re: Diff of Text

2010-06-04 Thread Lie Ryan
On 06/05/10 07:51, GZ wrote: > Hi Pat, > > On Jun 4, 2:55 pm, Patrick Maupin wrote: >> On Jun 3, 9:54 pm, GZ wrote: >> >>> Hi All, >> >>> I am looking for an algorithm that can compare to source code files >>> line by line and find the minimum diff. I have looked at the difflib >>> included in p

Re: bz2 module doesn't work properly with all bz2 files

2010-06-04 Thread Steven D'Aprano
On Fri, 04 Jun 2010 12:53:26 -0700, Magdoll wrote: > I'm not sure what's causing this, but depending on the compression > program used, the bz2 module sometimes exits earlier. [...] The current bz2 module only supports files written as a single stream, and not multiple stream files. This is why

Re: Python Forum

2010-06-04 Thread Steven D'Aprano
On Fri, 04 Jun 2010 08:56:34 -0500, Jim Byrnes wrote: > I thought his point was they are big enough to have the resources to > offer newsgroups but don't. If I want fast internet I must use Comcast > and Comcast doesn't offer newsgroups either. Sadly is seems getting > access to newsgroups is ge

Re: Python Forum

2010-06-04 Thread Steven D'Aprano
On Sat, 05 Jun 2010 05:22:21 +1000, Lie Ryan wrote: > Probably. A vote up/down feature tend to highlight popular problems, but > it also buries less popular problems that might have perfectly good > answers. I think Google Groups have 5-star-rating system? You might want > to check on that. I don

Re: An empty object with dynamic attributes (expando)

2010-06-04 Thread Alf P. Steinbach
* Terry Reedy, on 05.06.2010 03:01: On 6/4/2010 8:01 PM, dmtr wrote: Why does it have to be a one-liner? Is the Enter key on your keyboard broken? Nah. I was simply looking for something natural and intuitive, like: m = object(); m.a = 1; Usually python is pretty good providing these natural a

Re: Python Forum

2010-06-04 Thread Steven D'Aprano
On Fri, 04 Jun 2010 02:29:58 -0400, D'Arcy J.M. Cain wrote: > On 04 Jun 2010 05:41:17 GMT > Steven D'Aprano wrote: >> Sure, a lot of those 1,800 posts are spam, but the spammers wouldn't >> waste their time if they didn't think there were people still on >> Usenet. > > Kidding, right? Cost to s

Re: Python Forum

2010-06-04 Thread John Bokma
Grant Edwards writes: > On 2010-06-04, John Bokma wrote: >> Lie Ryan writes: >> >>> On 06/05/10 04:19, John Bokma wrote: Steven D'Aprano writes: > But the really sad thing is that you think that "bigger" automatically > equals "better". I don't think that was the

Re: Python Forum

2010-06-04 Thread John Bokma
Lie Ryan writes: > If you look at Stack Overflow, the highest voted questions are: > > - Hidden Features of C#? > - What is the single most influential book every programmer should read? > - What's your favorite "programmer" cartoon? > - What is your best programmer joke? > ... and so on > > many

Re: Python Forum

2010-06-04 Thread Steven D'Aprano
On Fri, 04 Jun 2010 15:55:08 -0500, John Bokma wrote: > "Alf P. Steinbach" writes: [...] >> It started, as I see it, back in the early 90's with Playboy attempting >> to sue anyone who used the Lena picture in photo processing tests etc. >> (it's the standard image for that). They failed in that

Re: Python Forum

2010-06-04 Thread John Bokma
Steven D'Aprano writes: > On Fri, 04 Jun 2010 08:56:34 -0500, Jim Byrnes wrote: > >> I thought his point was they are big enough to have the resources to >> offer newsgroups but don't. If I want fast internet I must use Comcast >> and Comcast doesn't offer newsgroups either. Sadly is seems gett

Re: An empty object with dynamic attributes (expando)

2010-06-04 Thread Terry Reedy
On 6/4/2010 10:25 PM, Alf P. Steinbach wrote: As far as I can think of now, one cannot add attributes to *any* builtin-class instance, but can add attributes to any user class which does not have them disabled. >>> [].a = 3 Traceback (most recent call last): File "", line 1, in [].a = 3 Attrib

Re: Diff of Text

2010-06-04 Thread GZ
On Jun 4, 8:37 pm, Lie Ryan wrote: > On06/05/10 07:51, GZ wrote: > > > > > > > Hi Pat, > > > On Jun 4, 2:55 pm, Patrick Maupin wrote: > >> On Jun 3, 9:54 pm, GZ wrote: > > >>> Hi All, > > >>> I am looking for an algorithm that can compare to source code files > >>> line by line and find the mini

<    1   2