Re: RELEASED: Python 2.6.9 final

2013-10-30 Thread Metallicow
On Thursday, October 31, 2013 1:05:13 AM UTC-5, Metallicow wrote: > On Wednesday, October 30, 2013 10:19:48 AM UTC-5, Skip Montanaro wrote: > > > Thanks Barry for all the hard work. > > > > Ditto. Wish I still had my Guido van Rossum World Tour t-shirt! > > > > Skip > > try: > BlackT() # htt

Re: RELEASED: Python 2.6.9 final

2013-10-30 Thread Metallicow
On Wednesday, October 30, 2013 10:19:48 AM UTC-5, Skip Montanaro wrote: > > Thanks Barry for all the hard work. > > Ditto. Wish I still had my Guido van Rossum World Tour t-shirt! > > Skip try: BlackT() # http://www.python.org/~guido/images/IMG_2192.jpg except Exception as pocketT: Embr

Re: small regexp help

2013-10-30 Thread jianbing . tai
On Thursday, October 31, 2013 12:56:49 AM UTC+8, rusi wrote: > Well it seems that we are considerably closer to a solution to the GG > double-spaced crap problem. > > > > Just wondering if someone can suggest a cleanup of the regexp part > > > > Currently I have (elisp) > > > > (defun cle

OT: Hierarchies (was Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.)

2013-10-30 Thread Chris Angelico
On Thu, Oct 31, 2013 at 1:53 PM, wrote: > Your hierarchy is particularly unappealing to me. We all > know that such hierarchies exist in the real world, but > there is a question: should they be promoted as a natural > and desirable state of society to be encouraged? > > There are people like Ay

Re: Algorithm that makes maximum compression of completly diffused data.

2013-10-30 Thread Dave Angel
On 30/10/2013 14:21, jonas.thornv...@gmail.com wrote: > I am searching for the program or algorithm that makes the best possible of > completly (diffused data/random noise) and wonder what the state of art > compression is. > > I understand this is not the correct forum but since i think i have

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Dave Angel
On 30/10/2013 12:31, jonas.thornv...@gmail.com wrote: > > No that is not my problem, apparently so it is that the newsreader > constructors do not like the competition of Google groups otherwise they > would had written the five lines of codes necessary to remove the empty > linebreaks. > I li

Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.

2013-10-30 Thread rurpy
On 10/29/2013 12:22 AM, Chris Angelico wrote: > On Tue, Oct 29, 2013 at 3:03 PM, wrote: >> Regarding esr's "smart-questions", although I acknowledge >> it has useful advice, I have always found it elitist and >> abrasive. I wish someone would rewrite it without the >> "we are gods" attitude. >

Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.

2013-10-30 Thread rurpy
On 10/30/2013 04:22 AM, Steven D'Aprano wrote: > On Tue, 29 Oct 2013 13:00:07 -0700, rurpy wrote: >> On Tuesday, October 29, 2013 8:08:16 AM UTC-6, Steven D'Aprano wrote: >>> On Tue, 29 Oct 2013 12:37:36 +0100, Skybuck Flying wrote: >>>[...] >>> Skybuck, please excuse my question, but have you ever

Re: Error Testing

2013-10-30 Thread Chris Angelico
On Thu, Oct 31, 2013 at 8:43 AM, Albert van der Horst wrote: > In article , > Chris Angelico wrote: >>Pascal tried to create a new operator, := to be read "becomes"... > > This suggests that Pascal went against established practice. > This is false. As acknowledged earlier in the thread, my "cr

Re: Algorithm that makes maximum compression of completly diffused data.

2013-10-30 Thread Chris Angelico
On Thu, Oct 31, 2013 at 10:01 AM, Tim Chase wrote: > On 2013-10-30 21:30, Joshua Landau wrote: >> started talking about compressing *random data* > > If it's truly random bytes, as long as you don't need *the same* > random data, you can compress it quite easily. Lossy compression is > acceptable

Re: trying to strip out non ascii.. or rather convert non ascii

2013-10-30 Thread Roy Smith
In article , Michael Torrie wrote: > On 10/30/2013 10:08 AM, wxjmfa...@gmail.com wrote: > > My comment had nothing to do with Python, it was a > > general comment. A diacritical mark just makes a letter > > a different letter; a "ï " and a "i" are "as > > diferent" as a "a" from a "z". A diacri

Re: Algorithm that makes maximum compression of completly diffused data.

2013-10-30 Thread Tim Chase
On 2013-10-30 21:30, Joshua Landau wrote: > started talking about compressing *random data* If it's truly random bytes, as long as you don't need *the same* random data, you can compress it quite easily. Lossy compression is acceptable for images, so why not random files? :-) import os inn

Re: function got multiple values for keyword argument for value

2013-10-30 Thread Mark Lawrence
On 30/10/2013 21:56, KR wrote: On Wednesday, October 30, 2013 2:50:03 PM UTC-7, KR wrote: On Wednesday, October 30, 2013 2:34:19 PM UTC-7, Mark Lawrence wrote: On 30/10/2013 21:10, search(lane,value=None,start=105,stop=115,GUI=True) -> function definition search(lane,value=value,start=start, s

Re: function got multiple values for keyword argument for value

2013-10-30 Thread Mark Lawrence
On 30/10/2013 21:50, KR wrote: On Wednesday, October 30, 2013 2:34:19 PM UTC-7, Mark Lawrence wrote: On 30/10/2013 21:10, search(lane,value=None,start=105,stop=115,GUI=True) -> function definition search(lane,value=value,start=start, stop=stop,GUI=True) -> function call I get the err

Re: function got multiple values for keyword argument for value

2013-10-30 Thread KR
On Wednesday, October 30, 2013 2:50:03 PM UTC-7, KR wrote: > On Wednesday, October 30, 2013 2:34:19 PM UTC-7, Mark Lawrence wrote: > > On 30/10/2013 21:10, > > > search(lane,value=None,start=105,stop=115,GUI=True) -> function definition > > > search(lane,value=value,start=start, stop=stop,GUI=True

Re: trying to strip out non ascii.. or rather convert non ascii

2013-10-30 Thread Terry Reedy
On 10/30/2013 12:08 PM, wxjmfa...@gmail.com wrote: From a unicode perspective. Unicode.org "knows", these chars a very important, that's the reason why they exist in two forms, precomposed and composed forms. Only some chars have both forms. I believe the precomposed forms are partly a histo

Re: function got multiple values for keyword argument for value

2013-10-30 Thread KR
On Wednesday, October 30, 2013 2:34:19 PM UTC-7, Mark Lawrence wrote: > On 30/10/2013 21:10, > > > search(lane,value=None,start=105,stop=115,GUI=True) -> function definition > > > search(lane,value=value,start=start, stop=stop,GUI=True) -> function call > > > > > > I get the error "search()" g

Re: Algorithm that makes maximum compression of completly diffused data.

2013-10-30 Thread Mark Lawrence
On 30/10/2013 21:30, Joshua Landau wrote: On 30 October 2013 19:18, Mark Lawrence wrote: On 30/10/2013 19:01, jonas.thornv...@gmail.com wrote: And your still a stupid monkey i dare you to go test your IQ. It's you're as in you are and not your as in belongs to me. I have no intention of ge

Re: personal library

2013-10-30 Thread Tim Delaney
On 31 October 2013 08:43, Tim Delaney wrote: > On 31 October 2013 08:31, Chris Angelico wrote: > >> On Thu, Oct 31, 2013 at 7:19 AM, Tim Delaney >> wrote: >> > What it comes down to for me is that Mercurial usage fits in my head >> and I >> > rarely have to go to the docs, whereas with Git I ha

Re: Error Testing

2013-10-30 Thread Albert van der Horst
In article , Chris Angelico wrote: >On Sun, Oct 20, 2013 at 3:22 AM, rusi wrote: >> The problem is that python is an imperative language and uses the '=' sign >> for assignment. In math of course >'=' stands for equality. > >Pascal tried to create a new operator, := to be read "becomes", to >d

Re: personal library

2013-10-30 Thread Tim Delaney
On 31 October 2013 08:31, Chris Angelico wrote: > On Thu, Oct 31, 2013 at 7:19 AM, Tim Delaney > wrote: > > What it comes down to for me is that Mercurial usage fits in my head and > I > > rarely have to go to the docs, whereas with Git I have to constantly go > to > > the docs for anything but

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Antoon Pardon
Op 30-10-13 21:52, Ned Batchelder schreef: > On 10/30/13 3:59 PM, Antoon Pardon wrote: >> Op 30-10-13 20:13, jonas.thornv...@gmail.com schreef: >>> >>> No it isn't... >>> The programmers of the tools on either of side will have to adapt. >>> I wish it would be Google but it could be a database prob

Re: function got multiple values for keyword argument for value

2013-10-30 Thread Mark Lawrence
On 30/10/2013 21:10, kavithabhaskaran2...@gmail.com wrote: search(lane,value=None,start=105,stop=115,GUI=True) -> function definition search(lane,value=value,start=start, stop=stop,GUI=True) -> function call I get the error "search()" got multiple keyword argument for value" I understand when t

Re: personal library

2013-10-30 Thread Chris Angelico
On Thu, Oct 31, 2013 at 7:19 AM, Tim Delaney wrote: > What it comes down to for me is that Mercurial usage fits in my head and I > rarely have to go to the docs, whereas with Git I have to constantly go to > the docs for anything but the most trivial usage - even when it's something > I've done ma

Re: function got multiple values for keyword argument for value

2013-10-30 Thread Chris Angelico
On Thu, Oct 31, 2013 at 8:10 AM, wrote: > search(lane,value=None,start=105,stop=115,GUI=True) -> function definition > search(lane,value=value,start=start, stop=stop,GUI=True) -> function call > > I get the error "search()" got multiple keyword argument for value" Cut your example down to just w

Re: Algorithm that makes maximum compression of completly diffused data.

2013-10-30 Thread Joshua Landau
On 30 October 2013 19:18, Mark Lawrence wrote: > On 30/10/2013 19:01, jonas.thornv...@gmail.com wrote: >> >> And your still a stupid monkey i dare you to go test your IQ. > > It's you're as in you are and not your as in belongs to me. > > I have no intention of getting my IQ tested, but I do know

Re: Algorithm that makes maximum compression of completly diffused data.

2013-10-30 Thread Mark Janssen
On Wed, Oct 30, 2013 at 11:21 AM, wrote: > I am searching for the program or algorithm that makes the best possible of > completly (diffused data/random noise) and wonder what the state of art > compression is. Is this an April Fool's Joke? A key idea of "completely" random is that you *can't

Re: function got multiple values for keyword argument for value

2013-10-30 Thread kavithabhaskaran2013
> > > > > search(lane,value=None,start=105,stop=115,GUI=True) -> function definition > > > search(lane,value=value,start=start, stop=stop,GUI=True) -> function call > > > > > I get the error "search()" got multiple keyword argument for value" > > > > > I dont follow why I get it when the

Re: personal library

2013-10-30 Thread Grant Edwards
On 2013-10-30, Mark Lawrence wrote: > On 30/10/2013 20:52, Antoon Pardon wrote: > >> So start a small project and try to use a number of them simultaneously >> and then decide which feels more natural to you. > > And if the worst comes to the worst there's always Visual Source Safe. > Starts runn

Re: Algorithm that makes maximum compression of completly diffused data.

2013-10-30 Thread Grant Edwards
On 2013-10-30, jonas.thornv...@gmail.com wrote: > I am searching for the program or algorithm that makes the best > possible of completly (diffused data/random noise) and wonder what > the state of art compression is. [...] > It is of course lossless compression i am speaking of. For completel

Re: function got multiple values for keyword argument for value

2013-10-30 Thread John Gordon
In <3c5cfc8d-885e-439d-8e66-5c7630e00...@googlegroups.com> kavithabhaskaran2...@gmail.com writes: > search(lane,value=None,start=105,stop=115,GUI=True) -> function definition > search(lane,value=value,start=start, stop=stop,GUI=True) -> function call > I get the error "search()" got multiple key

function got multiple values for keyword argument for value

2013-10-30 Thread kavithabhaskaran2013
search(lane,value=None,start=105,stop=115,GUI=True) -> function definition search(lane,value=value,start=start, stop=stop,GUI=True) -> function call I get the error "search()" got multiple keyword argument for value" I understand when this error comes up - if I had a function definition like bel

Re: personal library

2013-10-30 Thread paul . nospam
patrick vrijlandt writes: > Thanks. Do you all agree that Mercurial is the way to go, or is there > another "distributed version control system" that I should shortlist? git is popular too. In the long run it's probably worth getting experience with both. -- https://mail.python.org/mailman/li

Re: personal library

2013-10-30 Thread Mark Lawrence
On 30/10/2013 20:52, Antoon Pardon wrote: Op 30-10-13 21:02, patrick vrijlandt schreef: Chris Angelico wrote: On Wed, Oct 30, 2013 at 3:33 PM, Ben Finney wrote: Chris Angelico writes: *Definitely* use source control. +1, but prefer to call it a “version control system” which is (a) more

Re: Algorithm that makes maximum compression of completly diffused data.

2013-10-30 Thread Gene Heskett
On Wednesday 30 October 2013 16:29:12 jonas.thornv...@gmail.com did opine: > Den onsdagen den 30:e oktober 2013 kl. 20:46:57 UTC+1 skrev Modulok: > > On Wed, Oct 30, 2013 at 12:21 PM, wrote: > > > > > > > > I am searching for the program or algorithm that makes the best > > possible of comple

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Ned Batchelder
On 10/30/13 3:59 PM, Antoon Pardon wrote: Op 30-10-13 20:13, jonas.thornv...@gmail.com schreef: Den onsdagen den 30:e oktober 2013 kl. 20:05:07 UTC+1 skrev Mark Lawrence: On 30/10/2013 18:43, jonas.thornv...@gmail.com wrote: And ***that is not by having every stupid anal monkey sitting manual

Re: personal library

2013-10-30 Thread Antoon Pardon
Op 30-10-13 21:02, patrick vrijlandt schreef: > Chris Angelico wrote: >> On Wed, Oct 30, 2013 at 3:33 PM, Ben Finney >> wrote: >>> Chris Angelico writes: >>> *Definitely* use source control. >>> >>> +1, but prefer to call it a “version control system” which is (a) more >>> easily searched

Re: sorting german characters äöü...

2013-10-30 Thread Christian Heimes
Am 30.10.2013 19:38, schrieb Ulrich Goebel: > Hello, > > for a SQLite database I would like to prepare a collating function in > python. It has to compare two (unicode-)strings s, t and should return > -1 if st. > > The strings are german names/words, and what I would like is to have a > case-ins

Re: personal library

2013-10-30 Thread Ben Finney
patrick vrijlandt writes: > Thanks. Do you all agree that Mercurial is the way to go, or is there > another "distributed version control system" that I should shortlist? My vote is for Bazaar http://bazaar.canonical.com/> for its excellent user interface and workflow support. -- \ “

shared libraries symbols visibility

2013-10-30 Thread David Froger
Hi list, Python documentation on Extending Python with C or C++ says [1]: When modules are used as shared libraries, however, the symbols defined in one module may not be visible to another module. Suppose I have an extension module that call functions provided by a shared library, for ex

Re: sorting german characters äöü... solved

2013-10-30 Thread Ulrich Goebel
Hi, Am 30.10.2013 19:48, schrieb Skip Montanaro: Perhaps this? http://stackoverflow.com/questions/816285/where-is-pythons-best-ascii-for-this-unicode-database There I found the module unidecode (http://pypi.python.org/pypi/Unidecode), and I found it very helpful. Thanks a lot! So my function

Re: personal library

2013-10-30 Thread Tim Delaney
On 31 October 2013 07:02, patrick vrijlandt wrote: > Chris Angelico wrote: > > On Wed, Oct 30, 2013 at 3:33 PM, Ben Finney > wrote: > >> Chris Angelico writes: > >> > >>> *Definitely* use source control. > >> > >> +1, but prefer to call it a “version control system” which is (a) more > >> easil

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Antoon Pardon
Op 30-10-13 20:13, jonas.thornv...@gmail.com schreef: Den onsdagen den 30:e oktober 2013 kl. 20:05:07 UTC+1 skrev Mark Lawrence: On 30/10/2013 18:43, jonas.thornv...@gmail.com wrote: And ***that is not by having every stupid anal monkey sitting manually removing linebreaks by hand*** I

Re: personal library

2013-10-30 Thread patrick vrijlandt
Chris Angelico wrote: > On Wed, Oct 30, 2013 at 3:33 PM, Ben Finney > wrote: >> Chris Angelico writes: >> >>> *Definitely* use source control. >> >> +1, but prefer to call it a “version control system” which is (a) more >> easily searched on the internet, and (b) somewhat more accurate. > >

Re: Algorithm that makes maximum compression of completly diffused data.

2013-10-30 Thread Antoon Pardon
Op 30-10-13 20:01, jonas.thornv...@gmail.com schreef: Den onsdagen den 30:e oktober 2013 kl. 19:53:59 UTC+1 skrev Mark Lawrence: On 30/10/2013 18:21, jonas.thornv...@gmail.com wrote: I am searching for the program or algorithm that makes the best possible of completly (diffused data/random no

Re: Algorithm that makes maximum compression of completly diffused data.

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 20:46:57 UTC+1 skrev Modulok: > On Wed, Oct 30, 2013 at 12:21 PM, wrote: > > > > I am searching for the program or algorithm that makes the best possible of > completly (diffused data/random noise) and wonder what the state of art > compression is. > >

Re: Algorithm that makes maximum compression of completly diffused data.

2013-10-30 Thread Modulok
On Wed, Oct 30, 2013 at 12:21 PM, wrote: > I am searching for the program or algorithm that makes the best possible > of completly (diffused data/random noise) and wonder what the state of art > compression is. > > I understand this is not the correct forum but since i think i have an > algorithm

Re: Algorithm that makes maximum compression of completly diffused data.

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 20:46:57 UTC+1 skrev Modulok: > On Wed, Oct 30, 2013 at 12:21 PM, wrote: > > > > I am searching for the program or algorithm that makes the best possible of > completly (diffused data/random noise) and wonder what the state of art > compression is. > >

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 20:09:45 UTC+1 skrev Antoon Pardon: > Op 30-10-13 19:02, jonas.thornv...@gmail.com schreef: > > > Den onsdagen den 30:e oktober 2013 kl. 18:44:20 UTC+1 skrev MRAB: > > >> On 30/10/2013 16:31, jonas.thornv...@gmail.com wrote: > > >> > > >>> Den onsdagen den

Re: Algorithm that makes maximum compression of completly diffused data.

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 20:35:59 UTC+1 skrev Tim Delaney: > On 31 October 2013 05:21, wrote: > > I am searching for the program or algorithm that makes the best possible of > completly (diffused data/random noise) and wonder what the state of art > compression is. > > > > >

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 20:05:07 UTC+1 skrev Mark Lawrence: > On 30/10/2013 18:43, jonas.thornv...@gmail.com wrote: > > > And ***that is not by having every stupid anal monkey sitting manually > > removing linebreaks by hand*** > > > > > > Is that understood? > > > > > > > No

Re: Algorithm that makes maximum compression of completly diffused data.

2013-10-30 Thread Mark Lawrence
On 30/10/2013 19:23, jonas.thornv...@gmail.com wrote: Den onsdagen den 30:e oktober 2013 kl. 20:18:30 UTC+1 skrev Mark Lawrence: On 30/10/2013 19:01, jonas.thornv...@gmail.com wrote: And your still a stupid monkey i dare you to go test your IQ. It's you're as in you are and not you

Re: Algorithm that makes maximum compression of completly diffused data.

2013-10-30 Thread Mark Lawrence
On 30/10/2013 19:22, jonas.thornv...@gmail.com wrote: Den onsdagen den 30:e oktober 2013 kl. 20:18:30 UTC+1 skrev Mark Lawrence: On 30/10/2013 19:01, jonas.thornv...@gmail.com wrote: And your still a stupid monkey i dare you to go test your IQ. It's you're as in you are and not you

Re: Algorithm that makes maximum compression of completly diffused data.

2013-10-30 Thread Tim Delaney
On 31 October 2013 05:21, wrote: > I am searching for the program or algorithm that makes the best possible > of completly (diffused data/random noise) and wonder what the state of art > compression is. > > I understand this is not the correct forum but since i think i have an > algorithm that ca

Re: Algorithm that makes maximum compression of completly diffused data.

2013-10-30 Thread Dan Stromberg
xz compression is pretty hard, if a little bit slow. Also, if you want really stellar compression ratios and you don't care about time to compress, you might check out one of the many paq implementations. I have a module that does xz compression in 4 different ways: http://stromberg.dnsalias.org/

Re: Algorithm that makes maximum compression of completly diffused data.

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 20:18:30 UTC+1 skrev Mark Lawrence: > On 30/10/2013 19:01, jonas.thornv...@gmail.com wrote: > > > > > > And your still a stupid monkey i dare you to go test your IQ. > > > > > > > It's you're as in you are and not your as in belongs to me. > > > > I h

Re: Algorithm that makes maximum compression of completly diffused data.

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 20:18:30 UTC+1 skrev Mark Lawrence: > On 30/10/2013 19:01, jonas.thornv...@gmail.com wrote: > > > > > > And your still a stupid monkey i dare you to go test your IQ. > > > > > > > It's you're as in you are and not your as in belongs to me. > > > > I h

Re: Algorithm that makes maximum compression of completly diffused data.

2013-10-30 Thread Mark Lawrence
On 30/10/2013 19:01, jonas.thornv...@gmail.com wrote: And your still a stupid monkey i dare you to go test your IQ. It's you're as in you are and not your as in belongs to me. I have no intention of getting my IQ tested, but I do know that it's a minimum of 120 as that was required for me t

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Antoon Pardon
Op 30-10-13 19:02, jonas.thornv...@gmail.com schreef: Den onsdagen den 30:e oktober 2013 kl. 18:44:20 UTC+1 skrev MRAB: On 30/10/2013 16:31, jonas.thornv...@gmail.com wrote: Den onsdagen den 30:e oktober 2013 kl. 17:22:23 UTC+1 skrev Mark Lawrence: No that is not my problem, apparently so i

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Mark Lawrence
On 30/10/2013 18:43, jonas.thornv...@gmail.com wrote: And ***that is not by having every stupid anal monkey sitting manually removing linebreaks by hand*** Is that understood? Nobody would have to remove line breaks by hand if you, yes you jonasthornvall at GMAIL.COM didn't use a tool that

Re: Algorithm that makes maximum compression of completly diffused data.

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 19:53:59 UTC+1 skrev Mark Lawrence: > On 30/10/2013 18:21, jonas.thornv...@gmail.com wrote: > > > I am searching for the program or algorithm that makes the best possible of > > completly (diffused data/random noise) and wonder what the state of art > > com

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Antoon Pardon
Op 30-10-13 16:50, Grant Edwards schreef: On 2013-10-30, Antoon Pardon wrote: Because it is a pain in the ass. Now suddenly my program doesn't work because I somehow inserted a tab instead of spaces. Then don't do that. I'm only half-kidding. Inserting incorrect tokens into program source

Re: Algorithm that makes maximum compression of completly diffused data.

2013-10-30 Thread Mark Lawrence
On 30/10/2013 18:21, jonas.thornv...@gmail.com wrote: I am searching for the program or algorithm that makes the best possible of completly (diffused data/random noise) and wonder what the state of art compression is. I understand this is not the correct forum but since i think i have an algo

Re: sorting german characters äöü...

2013-10-30 Thread Skip Montanaro
> That works, but my be there is a more intelligent way? Especially there > could be much more r.replace to handle all the accents as ^ ° ´ ` and so on. Perhaps this? http://stackoverflow.com/questions/816285/where-is-pythons-best-ascii-for-this-unicode-database There is also a rather long-ish r

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 19:01:40 UTC+1 skrev Antoon Pardon: > Op 30-10-13 17:31, jonas.thornv...@gmail.com schreef: > > > Den onsdagen den 30:e oktober 2013 kl. 17:22:23 UTC+1 skrev Mark Lawrence: > > >> > > >> I have no need to implement a newsreader as I can quite happily send a

Re: trying to strip out non ascii.. or rather convert non ascii

2013-10-30 Thread wxjmfauth
Le mercredi 30 octobre 2013 18:54:05 UTC+1, Michael Torrie a écrit : > On 10/30/2013 10:08 AM, wxjmfa...@gmail.com wrote: > > > My comment had nothing to do with Python, it was a > > > general comment. A diacritical mark just makes a letter > > > a different letter; a "ï " and a "i" are "as > >

sorting german characters äöü...

2013-10-30 Thread Ulrich Goebel
Hello, for a SQLite database I would like to prepare a collating function in python. It has to compare two (unicode-)strings s, t and should return -1 if st. The strings are german names/words, and what I would like is to have a case-insensitive ordering, which treates ä as a ö as ö

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Antoon Pardon
Op 30-10-13 17:31, jonas.thornv...@gmail.com schreef: Den onsdagen den 30:e oktober 2013 kl. 17:22:23 UTC+1 skrev Mark Lawrence: I have no need to implement a newsreader as I can quite happily send and receive data using Thunderbird. There are several other similar email options available.

Algorithm that makes maximum compression of completly diffused data.

2013-10-30 Thread jonas . thornvall
I am searching for the program or algorithm that makes the best possible of completly (diffused data/random noise) and wonder what the state of art compression is. I understand this is not the correct forum but since i think i have an algorithm that can do this very good, and do not know where

Re: trying to strip out non ascii.. or rather convert non ascii

2013-10-30 Thread Michael Torrie
On 10/30/2013 10:08 AM, wxjmfa...@gmail.com wrote: > My comment had nothing to do with Python, it was a > general comment. A diacritical mark just makes a letter > a different letter; a "ï " and a "i" are "as > diferent" as a "a" from a "z". A diacritical mark > is more than a simple ornementation.

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 18:44:20 UTC+1 skrev MRAB: > On 30/10/2013 16:31, jonas.thornv...@gmail.com wrote: > > > Den onsdagen den 30:e oktober 2013 kl. 17:22:23 UTC+1 skrev Mark Lawrence: > > > No that is not my problem, apparently so it is that the newsreader > > constructors do

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 18:44:20 UTC+1 skrev MRAB: > On 30/10/2013 16:31, jonas.thornv...@gmail.com wrote: > > > Den onsdagen den 30:e oktober 2013 kl. 17:22:23 UTC+1 skrev Mark Lawrence: > > > No that is not my problem, apparently so it is that the newsreader > > constructors do

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread MRAB
On 30/10/2013 16:31, jonas.thornv...@gmail.com wrote: Den onsdagen den 30:e oktober 2013 kl. 17:22:23 UTC+1 skrev Mark Lawrence: No that is not my problem, apparently so it is that the newsreader constructors do not like the competition of Google groups otherwise they would had written the five

Re: trying to strip out non ascii.. or rather convert non ascii

2013-10-30 Thread Ned Batchelder
On 10/30/13 12:08 PM, wxjmfa...@gmail.com wrote: Le mercredi 30 octobre 2013 13:44:47 UTC+1, Ned Batchelder a écrit : On 10/30/13 4:49 AM, wxjmfa...@gmail.com wrote: Le mardi 29 octobre 2013 06:24:50 UTC+1, Steven D'Aprano a écrit : On Mon, 28 Oct 2013 09:23:41 -0500, Tim Chase wrote: On 201

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread rurpy
On 10/30/2013 08:22 AM, Alister wrote: > On Wed, 30 Oct 2013 13:42:37 +0100, Antoon Pardon wrote: >> Op 30-10-13 13:17, Chris Angelico schreef: >>> On Wed, Oct 30, 2013 at 11:01 PM, Antoon Pardon >>> wrote: >>> I broadly agree with your post (I'm of the school of thought that >>> braces are better

small regexp help

2013-10-30 Thread rusi
Well it seems that we are considerably closer to a solution to the GG double-spaced crap problem. Just wondering if someone can suggest a cleanup of the regexp part Currently I have (elisp) (defun clean-gg () (interactive) 1 (replace-regexp "^> *\n> *\n> *$" "-=\=-" nil 0 (point-max)) 2 (f

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread rusi
Super Kushal! Below is the result of that First the original Then emacs' cleaned up version! -Original -- On Wednesday, October 30, 2013 10:00:47 PM UTC+5:30, Kushal Kumaran wrote: > rusi writes: > > > > > On Wednesday, October 30, 2013 9:05:29 PM UT

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Mark Lawrence
On 30/10/2013 16:16, rusi wrote: On Wednesday, October 30, 2013 9:27:08 PM UTC+5:30, jonas.t...@gmail.com wrote: Den onsdagen den 30:e oktober 2013 kl. 16:54:19 UTC+1 skrev Mark Lawrence: The simplest solution is that you stop posting, as you've been spewing this double spaced crap all day and

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 17:22:23 UTC+1 skrev Mark Lawrence: > On 30/10/2013 15:57, jonas.thornv...@gmail.com wrote: > > > Den onsdagen den 30:e oktober 2013 kl. 16:54:19 UTC+1 skrev Mark Lawrence: > > >> On 30/10/2013 15:35, jonas.thornv...@gmail.com wrote: > > >> > > >>> Den ons

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Kushal Kumaran
rusi writes: > On Wednesday, October 30, 2013 9:05:29 PM UTC+5:30, Jonas Thornval wrote: >> Den onsdagen den 30:e oktober 2013 kl. 16:09:25 UTC+1 skrev Mark Lawrence: >> > On 30/10/2013 14:31, Jonas Thornval wrote: >> > Would you please be kind enough to read, digest and action this >> > https:/

Re: trying to strip out non ascii.. or rather convert non ascii

2013-10-30 Thread Mark Lawrence
On 30/10/2013 16:08, wxjmfa...@gmail.com wrote: Would you please read, digest and action this https://wiki.python.org/moin/GoogleGroupsPython TIA. -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence -- https://

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Mark Lawrence
On 30/10/2013 15:57, jonas.thornv...@gmail.com wrote: Den onsdagen den 30:e oktober 2013 kl. 16:54:19 UTC+1 skrev Mark Lawrence: On 30/10/2013 15:35, jonas.thornv...@gmail.com wrote: Den onsdagen den 30:e oktober 2013 kl. 16:09:25 UTC+1 skrev Mark Lawrence: On 30/10/2013 14:31, jonas.thornv

Re: trying to strip out non ascii.. or rather convert non ascii

2013-10-30 Thread wxjmfauth
Le mercredi 30 octobre 2013 13:44:47 UTC+1, Ned Batchelder a écrit : > On 10/30/13 4:49 AM, wxjmfa...@gmail.com wrote: > > > Le mardi 29 octobre 2013 06:24:50 UTC+1, Steven D'Aprano a écrit : > > >> On Mon, 28 Oct 2013 09:23:41 -0500, Tim Chase wrote: > > >> > > >> > > >> > > >>> On 2013-10-2

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 16:54:19 UTC+1 skrev Mark Lawrence: > On 30/10/2013 15:35, jonas.thornv...@gmail.com wrote: > > > Den onsdagen den 30:e oktober 2013 kl. 16:09:25 UTC+1 skrev Mark Lawrence: > > >> On 30/10/2013 14:31, jonas.thornv...@gmail.com wrote: > > >> > > >> > > >>

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Alister
On Wed, 30 Oct 2013 16:07:47 +, Alister wrote: > On Wed, 30 Oct 2013 15:56:32 +0100, Antoon Pardon wrote: > >> Op 30-10-13 15:22, Alister schreef: >>> On Wed, 30 Oct 2013 13:42:37 +0100, Antoon Pardon wrote: >>> Op 30-10-13 13:17, Chris Angelico schreef: > On Wed, Oct 30, 2013 at 11

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread rusi
On Wednesday, October 30, 2013 9:27:08 PM UTC+5:30, jonas.t...@gmail.com wrote: > Den onsdagen den 30:e oktober 2013 kl. 16:54:19 UTC+1 skrev Mark Lawrence: > > The simplest solution is that you stop posting, as you've been spewing > > this double spaced crap all day and show no inclination to do

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 16:51:58 UTC+1 skrev Alister: > On Wed, 30 Oct 2013 08:35:29 -0700, jonas.thornvall wrote: > > > > > Den onsdagen den 30:e oktober 2013 kl. 16:09:25 UTC+1 skrev Mark > > > Lawrence: > > >> On 30/10/2013 14:31, jonas.thornv...@gmail.com wrote: > > >> >

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Alister
On Wed, 30 Oct 2013 08:57:08 -0700, jonas.thornvall wrote: > Den onsdagen den 30:e oktober 2013 kl. 16:54:19 UTC+1 skrev Mark > Lawrence: >> On 30/10/2013 15:35, jonas.thornv...@gmail.com wrote: >> >> > Den onsdagen den 30:e oktober 2013 kl. 16:09:25 UTC+1 skrev Mark >> > Lawrence: >> >> >> On 3

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Alister
On Wed, 30 Oct 2013 15:56:32 +0100, Antoon Pardon wrote: > Op 30-10-13 15:22, Alister schreef: >> On Wed, 30 Oct 2013 13:42:37 +0100, Antoon Pardon wrote: >> >>> Op 30-10-13 13:17, Chris Angelico schreef: On Wed, Oct 30, 2013 at 11:01 PM, Antoon Pardon wrote: I broadly agree with

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 16:54:19 UTC+1 skrev Mark Lawrence: > On 30/10/2013 15:35, jonas.thornv...@gmail.com wrote: > > > Den onsdagen den 30:e oktober 2013 kl. 16:09:25 UTC+1 skrev Mark Lawrence: > > >> On 30/10/2013 14:31, jonas.thornv...@gmail.com wrote: > > >> > > >> > > >>

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 16:50:43 UTC+1 skrev Grant Edwards: > On 2013-10-30, Antoon Pardon wrote: > > > Op 30-10-13 08:07, Tim Roberts schreef: > > >> jonas.thornv...@gmail.com wrote: > > >>> > > >>> Why did Python not implement end... The end is really not necessary for > > >>

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Alister
On Wed, 30 Oct 2013 08:35:29 -0700, jonas.thornvall wrote: > Den onsdagen den 30:e oktober 2013 kl. 16:09:25 UTC+1 skrev Mark > Lawrence: >> On 30/10/2013 14:31, jonas.thornv...@gmail.com wrote: >> >> >> >> Would you please be kind enough to read, digest and action this >> >> https://wiki.pyth

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 16:35:29 UTC+1 skrev jonas.t...@gmail.com: > Den onsdagen den 30:e oktober 2013 kl. 16:09:25 UTC+1 skrev Mark Lawrence: > > > On 30/10/2013 14:31, jonas.thornv...@gmail.com wrote: > > > > > > > > > > > > Would you please be kind enough to read, digest

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread rusi
On Wednesday, October 30, 2013 9:05:29 PM UTC+5:30, Jonas Thornval wrote: > Den onsdagen den 30:e oktober 2013 kl. 16:09:25 UTC+1 skrev Mark Lawrence: > > On 30/10/2013 14:31, Jonas Thornval wrote: > > Would you please be kind enough to read, digest and action this > > https://wiki.python.org/moin

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Grant Edwards
On 2013-10-30, Antoon Pardon wrote: > Op 30-10-13 08:07, Tim Roberts schreef: >> jonas.thornv...@gmail.com wrote: >>> >>> Why did Python not implement end... The end is really not necessary for >>> the programming language it can be excluded, but it is a courtesy to >>> the programmer and could ea

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Mark Lawrence
On 30/10/2013 15:35, jonas.thornv...@gmail.com wrote: Den onsdagen den 30:e oktober 2013 kl. 16:09:25 UTC+1 skrev Mark Lawrence: On 30/10/2013 14:31, jonas.thornv...@gmail.com wrote: Would you please be kind enough to read, digest and action this https://wiki.python.org/moin/GoogleGroupsPyth

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread jonas . thornvall
Den onsdagen den 30:e oktober 2013 kl. 16:09:25 UTC+1 skrev Mark Lawrence: > On 30/10/2013 14:31, jonas.thornv...@gmail.com wrote: > > > > Would you please be kind enough to read, digest and action this > > https://wiki.python.org/moin/GoogleGroupsPython > > > > TIA. > > > > -- > > Pyt

Re: trying to strip out non ascii.. or rather convert non ascii

2013-10-30 Thread Mark Lawrence
On 30/10/2013 08:13, wxjmfa...@gmail.com wrote: Le mercredi 30 octobre 2013 03:17:21 UTC+1, Chris Angelico a écrit : On Wed, Oct 30, 2013 at 2:56 AM, Mark Lawrence wrote: You've stated above that logically unicode is badly handled by the fsr. You then provide a trivial timing example. WT

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread Alister
On Wed, 30 Oct 2013 07:31:04 -0700, jonas.thornvall wrote: > Den onsdagen den 30:e oktober 2013 kl. 15:22:50 UTC+1 skrev Alister: >> On Wed, 30 Oct 2013 13:42:37 +0100, Antoon Pardon wrote: >> >> >> >> > Op 30-10-13 13:17, Chris Angelico schreef: >> >> >> On Wed, Oct 30, 2013 at 11:01 PM, Anto

Re: RELEASED: Python 2.6.9 final

2013-10-30 Thread Skip Montanaro
> Thanks Barry for all the hard work. Ditto. Wish I still had my Guido van Rossum World Tour t-shirt! Skip -- https://mail.python.org/mailman/listinfo/python-list

  1   2   >