Re: RUN ALL TEST

2013-10-30 Thread Ben Finney
Chandru Rajendran writes: > Hi all, Welcome! Please remove the mass of legalese nonsense (this is a public discussion forum, your message is clearly not confidential), or use a mail system which does not add that when discussing here. > I am building my script. I want to run all the test scrip

Re: personal library

2013-10-30 Thread Paul Rudin
Chris Angelico writes: > On Wed, Oct 30, 2013 at 1:00 PM, Dave Angel wrote: >> First, I haven't seen any mention of a source control system. Get one, >> learn it, and use it. That should always hold your master copy. And >> the actual repository should be on a system you can access from any o

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

2013-10-30 Thread Tim Roberts
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 easily be transformed to indents automaticly, >that is removed before the compiliation/interpre

Re: Using "with open(filename, 'ab'):" and calling code only if the file is new?

2013-10-30 Thread Antoon Pardon
Op 30-10-13 02:02, Victor Hooi schreef: > Hi, > > I have a CSV file that I will repeatedly appending to. > > I'm using the following to open the file: > > with open(self.full_path, 'r') as input, open(self.output_csv, 'ab') as > output: > fieldnames = (...) > csv_writer = Di

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

2013-10-30 Thread wxjmfauth
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. WTF??? > > > > His idea of bad handl

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

2013-10-30 Thread wxjmfauth
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-28 07:01, wxjmfa...@gmail.com wrote: > > >>> Simply ignoring diactrics won't get you very far. > > >> > > >> Right. As an example, these four French

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. 08:07:31 UTC+1 skrev Tim Roberts: > 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

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

2013-10-30 Thread Mark Lawrence
On 30/10/2013 01:33, Piet van Oostrum wrote: Mark Lawrence writes: Please provide hard evidence to support your claims or stop posting this ridiculous nonsense. Give us real world problems that can be reported on the bug tracker, investigated and resolved. I think it is much better just to

Re: Organising packages/modules - importing functions from a common.py in a separate directory?

2013-10-30 Thread Peter Otten
Victor Hooi wrote: > Wait - err, subpackage != module, right? Do you think you could explain > what a sub-package is please? I tried Googling, and couldn't seem to find > the term in this context. In analogy to subdirectory I em_load and pg_load -- and common if you add an __init__.py would be s

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. 09:52:16 UTC+1 skrev jonas.t...@gmail.com: > Den onsdagen den 30:e oktober 2013 kl. 08:07:31 UTC+1 skrev Tim Roberts: > > > jonas.thornv...@gmail.com wrote: > > > > > > > > > > > > > >Why did Python not implement end... The end is really not necessary

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. 10:48:36 UTC+1 skrev jonas.t...@gmail.com: > Den onsdagen den 30:e oktober 2013 kl. 09:52:16 UTC+1 skrev > jonas.t...@gmail.com: > > > Den onsdagen den 30:e oktober 2013 kl. 08:07:31 UTC+1 skrev Tim Roberts: > > > > > > > jonas.thornv...@gmail.com wrote:

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

2013-10-30 Thread Mark Lawrence
On 30/10/2013 09:52, jonas.thornv...@gmail.com wrote: Please stop sending us double spaced crap. -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

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. 08:07:31 UTC+1 skrev Tim Roberts: > 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

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. 11:08:11 UTC+1 skrev jonas.t...@gmail.com: > Den onsdagen den 30:e oktober 2013 kl. 08:07:31 UTC+1 skrev Tim Roberts: > > > jonas.thornv...@gmail.com wrote: > > > > > > > > > > > > > >Why did Python not implement end... The end is really not necessary

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. 11:00:30 UTC+1 skrev Mark Lawrence: > On 30/10/2013 09:52, jonas.thornv...@gmail.com wrote: > > > > Please stop sending us double spaced crap. > > > > -- > > Python is the second best programming language in the world. > > But the best has yet to be i

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. 11:11:17 UTC+1 skrev jonas.t...@gmail.com: > Den onsdagen den 30:e oktober 2013 kl. 11:08:11 UTC+1 skrev > jonas.t...@gmail.com: > > > Den onsdagen den 30:e oktober 2013 kl. 08:07:31 UTC+1 skrev Tim Roberts: > > > > > > > jonas.thornv...@gmail.com wrote:

Re: Organising packages/modules - importing functions from a common.py in a separate directory?

2013-10-30 Thread Peter Otten
Victor Hooi wrote: > Wait - err, subpackage != module, right? Do you think you could explain > what a sub-package is please? I tried Googling, and couldn't seem to find > the term in this context. [second attempt] In analogy to the term "subdirectory" em_load and pg_load -- and common if you ad

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

2013-10-30 Thread Steven D'Aprano
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 done any >> programming at all? You don't seem to h

Re: Maintaining a backported module

2013-10-30 Thread Metallicow
On Thursday, October 24, 2013 12:46:51 AM UTC-5, Metallicow wrote: > +1 for stdev Steven. Thanks for the extra legs. > Hope all goes well with introductions... I'm sure it will. > :) Good Job. Well, what I am trying to get at is whether it is better as... stddev or stdev...? 6(3standard abc) vs 5

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

2013-10-30 Thread Chris Angelico
On Wed, Oct 30, 2013 at 9:08 PM, wrote: > Well Tim ***one could argue*** why not do a (i think it is called parser) > that react to "loop", "end" and "function". And lazy like me do not have to > think about "what is not part of program". Python actually does have a symbol for what you're thin

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. 11:00:30 UTC+1 skrev Mark Lawrence: > On 30/10/2013 09:52, jonas.thornv...@gmail.com wrote: > > > > Please stop sending us double spaced crap. > > > > -- > > Python is the second best programming language in the world. > > But the best has yet to be i

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

2013-10-30 Thread Antoon Pardon
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 easily be transformed to indents automaticly,

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

2013-10-30 Thread rusi
On Wednesday, October 30, 2013 3:43:03 PM UTC+5:30, jonas.t...@gmail.com wrote: > Den onsdagen den 30:e oktober 2013 kl. 11:00:30 UTC+1 skrev Mark Lawrence: * * Please stop sending us double spaced crap. * * Mark Lawrence * I am not sure what you want. And then again * You want me to remove the

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

2013-10-30 Thread Chris Angelico
On Wed, Oct 30, 2013 at 11:01 PM, 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. I broadly agree with your post (I'm of the school of thought that braces are better than indentation for delimiting

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

2013-10-30 Thread Antoon Pardon
Op 30-10-13 13:17, Chris Angelico schreef: > On Wed, Oct 30, 2013 at 11:01 PM, 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. > > I broadly agree with your post (I'm of the school of thought th

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

2013-10-30 Thread Ned Batchelder
On 10/30/13 6:13 AM, jonas.thornv...@gmail.com wrote: Den onsdagen den 30:e oktober 2013 kl. 11:00:30 UTC+1 skrev Mark Lawrence: On 30/10/2013 09:52, jonas.thornv...@gmail.com wrote: Please stop sending us double spaced crap. -- Python is the second best programming language in the world

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

2013-10-30 Thread Ned Batchelder
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-28 07:01, wxjmfa...@gmail.com wrote: Simply ignoring diactrics won't get you very far. Right. As an example, t

Re: Looking for UNICODE to ASCII Conversioni Example Code

2013-10-30 Thread Roy Smith
On 20/10/2013 03:13, I wrote: > Heck, I can't even really move off 2.6 because we use Amazon's EMR > service, which is stuck on 2.6. On Sunday, October 20, 2013 5:11:32 AM UTC-4, Mark Lawrence wrote: > Dear Amazon, > > Please upgrade to Python 3.3 or similar so that users can have better > unic

Small emacs fix for Google group users

2013-10-30 Thread Rustom Mody
For the double spacing rubbish produced by GG, I hacked up a bit of emacs lisp code - (defun clean-gg () (interactive) (replace-regexp "^> +\n> +\n> +$" "-=\=-" nil 0 (point-max)) (flush-lines "> +$" 0 (point-max)) (replace-regexp "-=\=-" "" nil 0 (point-max))) (global-set-key (kbd

Re: Small emacs fix for Google group users

2013-10-30 Thread rusi
On Wednesday, October 30, 2013 6:43:33 PM UTC+5:30, rusi wrote: > For the double spacing rubbish produced by GG, I hacked up a bit of > emacs lisp code > -- > To try > 1. Eval the following in emacs* Tsk! It should be eval the preceding elisp! -- https://mail.python.org/mailman/listi

Re: Using "with open(filename, 'ab'):" and calling code only if the file is new?

2013-10-30 Thread Neil Cerutti
On 2013-10-30, Victor Hooi wrote: > Hi, > > I have a CSV file that I will repeatedly appending to. > > I'm using the following to open the file: > > with open(self.full_path, 'r') as input, open(self.output_csv, 'ab') as > output: > fieldnames = (...) > csv_writer = DictWriter

Re: how to avoid checking the same condition repeatedly ?

2013-10-30 Thread Mariano Anaya
On Monday, October 28, 2013 6:50:19 AM UTC-3, Wolfgang Maier wrote: > Dear all, > > this is a recurring programming problem that I'm just not sure how to solve > > optimally, so I thought I'd ask for your advice: > > imagine you have a flag set somewhere earlier in your code, e.g., > > > > ne

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

2013-10-30 Thread Alister
On Wed, 30 Oct 2013 03:08:11 -0700, jonas.thornvall wrote: > Den onsdagen den 30:e oktober 2013 kl. 08:07:31 UTC+1 skrev Tim Roberts: >> jonas.thornv...@gmail.com wrote: >> > > I certainly do not like the old bracket style it was a catastrophe, but > in honesty the gui editor of python should ha

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

2013-10-30 Thread 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, Antoon Pardon >> wrote: >> I broadly agree with your post (I'm of the school of thought that >> braces are better than indentation for delimiting blocks), but

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. 11:11:17 UTC+1 skrev jonas.t...@gmail.com: > Den onsdagen den 30:e oktober 2013 kl. 11:08:11 UTC+1 skrev > jonas.t...@gmail.com: > > > Den onsdagen den 30:e oktober 2013 kl. 08:07:31 UTC+1 skrev Tim Roberts: > > > > > > > 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. 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, Antoon Pardon > > >> wrote: > > >> I broadly agree with your post (I'm

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

2013-10-30 Thread Antoon Pardon
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 your post (I'm of the school of thought that >>> braces are better

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

2013-10-30 Thread 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. -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Ma

Re: How do I update a virtualenv?

2013-10-30 Thread Skip Montanaro
> I believe you may have misread the instructions slightly. You should have a > project structure like this: > > my_project/ > /venv > .gitignore > > The instructions mention adding 'venv' to your .gitignore, so it will be > excluded from version control. If you have .git & .git

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

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: 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 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: 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 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 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 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: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 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 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 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 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 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 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: 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 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 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 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: 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 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 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

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 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

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 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: 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: 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.

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: 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.

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: 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 > >

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: 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: 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: 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 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 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: 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: 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: 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 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 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 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 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: 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 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: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: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: 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: 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: 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 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: 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

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

  1   2   >