Re: Processing large CSV files - how to maximise throughput?

2013-10-25 Thread Chris Angelico
On Fri, Oct 25, 2013 at 2:57 PM, Dave Angel da...@davea.name wrote: But I would concur -- probably they'll both give about the same speedup. I just detest the pain that multithreading can bring, and tend to avoid it if at all possible. I don't have a history of major pain from threading. Is

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-25 Thread wxjmfauth
Le mardi 15 octobre 2013 23:00:29 UTC+2, Mark Lawrence a écrit : On 15/10/2013 21:11, wxjmfa...@gmail.com wrote: Le lundi 14 octobre 2013 21:18:59 UTC+2, John Nagle a écrit : [...] No, Python went through the usual design screwups. Look at how

Re: Processing large CSV files - how to maximise throughput?

2013-10-25 Thread Stefan Behnel
Chris Angelico, 25.10.2013 08:13: On Fri, Oct 25, 2013 at 2:57 PM, Dave Angel wrote: But I would concur -- probably they'll both give about the same speedup. I just detest the pain that multithreading can bring, and tend to avoid it if at all possible. I don't have a history of major pain

Cookie aint retrieving when visiting happens from a backlink.

2013-10-25 Thread Νίκος Αλεξόπουλος
Hello i having the following code to try and retrieve the visitor's saved cookie form the browser. [CODE] # initialize cookie and retrieve cookie from clients browser try: cookie = cookies.SimpleCookie( os.environ['HTTP_COOKIE'] ) cookieID = cookie['name'].value except:

Re: Processing large CSV files - how to maximise throughput?

2013-10-25 Thread Chris Angelico
On Fri, Oct 25, 2013 at 5:39 PM, Stefan Behnel stefan...@behnel.de wrote: Basically, with multiple processes, you start with independent systems and add connections specifically where needed, whereas with threads, you start with completely shared state and then prune away interdependencies and

Re: Cookie aint retrieving when visiting happens from a backlink.

2013-10-25 Thread Chris Angelico
On Fri, Oct 25, 2013 at 6:22 PM, Νίκος Αλεξόπουλος nikos.gr...@gmail.com wrote: Can somebody explain why this is happening? You can see this action yourself by hitting: 1. superhost.gr as a direct hit 2. by clicking superhost.gr's backlink from ypsilandio.gr/mythosweb.gr You will see than

Re: Re-raising a RuntimeError - good practice?

2013-10-25 Thread Peter Cacioppi
I'm surprised no-one is mentioning what seems the obvious pattern here - exception wrapping. So you define your exception class as containing the root exception. Then your specific job routines wrap the exceptions they encounter in your personal exception class. This is where you go add in

Re: Maintaining a backported module

2013-10-25 Thread Oscar Benjamin
On Oct 24, 2013 9:38 PM, Terry Reedy tjre...@udel.edu wrote: On 10/24/2013 1:46 PM, Ned Batchelder wrote: On Thu, 24 Oct 2013 06:36:04 -0400, Ned Batchelder wrote: coverage.py currently runs on 2.3 through 3.4 I want to thank you for this package. I have used it when writing test modules

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-25 Thread Peter Cacioppi
On Monday, October 21, 2013 9:29:34 PM UTC-5, Steven D'Aprano wrote: On Mon, 21 Oct 2013 01:43:52 -0700, Peter Cacioppi wrote: Challenge: give some examples of things which you can do in Python, but cannot do *at all* in C, C++, C#, Java? Please. No exceptions is huge. No garbage collection

Re: Cookie aint retrieving when visiting happens from a backlink.

2013-10-25 Thread Νίκος Αλεξόπουλος
Στις 25/10/2013 10:32 πμ, ο/η Chris Angelico έγραψε: On Fri, Oct 25, 2013 at 6:22 PM, Νίκος Αλεξόπουλος nikos.gr...@gmail.com wrote: Can somebody explain why this is happening? You can see this action yourself by hitting: 1. superhost.gr as a direct hit 2. by clicking superhost.gr's backlink

Re: Cookie aint retrieving when visiting happens from a backlink.

2013-10-25 Thread Νίκος Αλεξόπουλος
Στις 25/10/2013 10:32 πμ, ο/η Chris Angelico έγραψε: On Fri, Oct 25, 2013 at 6:22 PM, Νίκος Αλεξόπουλος nikos.gr...@gmail.com wrote: Can somebody explain why this is happening? You can see this action yourself by hitting: 1. superhost.gr as a direct hit 2. by clicking superhost.gr's backlink

Re: Cookie aint retrieving when visiting happens from a backlink.

2013-10-25 Thread Chris Angelico
On Fri, Oct 25, 2013 at 7:25 PM, Νίκος Αλεξόπουλος nikos.gr...@gmail.com wrote: Isn't this strange? No matter if you visit a webpage as a direct hit or via a referer the cookie on the visitor's browser should have been present. But it can only can be found and retrieved as a direct hit and

Re: Cookie aint retrieving when visiting happens from a backlink.

2013-10-25 Thread Νίκος Αλεξόπουλος
Στις 25/10/2013 11:33 πμ, ο/η Chris Angelico έγραψε: On Fri, Oct 25, 2013 at 7:25 PM, Νίκος Αλεξόπουλος nikos.gr...@gmail.com wrote: Isn't this strange? No matter if you visit a webpage as a direct hit or via a referer the cookie on the visitor's browser should have been present. But it can

Re: Cookie aint retrieving when visiting happens from a backlink.

2013-10-25 Thread Mark Lawrence
On 25/10/2013 09:46, Νίκος Αλεξόπουλος wrote: Στις 25/10/2013 11:33 πμ, ο/η Chris Angelico έγραψε: Trace your logs. You've been told this before; are you sure the request is even getting to your server? Please be more detailed to what you want me to check. Please send Chris a suitable

Cookie aint retrieving when visiting happens from a backlink.

2013-10-25 Thread Νίκος Αλεξόπουλος
[code] Hello, i was happy to see that a python module for geoip2 came out. But unfortunately when i tried to install it: root@secure [~]# pip install geoip2[DB] Downloading/unpacking geoip2[db] Running setup.py egg_info for package geoip2 Traceback (most recent call last): File

How to design:Use One TCPIP Client connection to Server and work concurrently

2013-10-25 Thread ray
Hi all, The system use ONE tcpip client and connection to server. A large batch transactions send to server.I want to send to server concurrently. any idea ? In my thinking, A.Devide large batch transactions to small batch transactions. B.Create multi-thread or multiprocessing to process small

Re: How to design:Use One TCPIP Client connection to Server and work concurrently

2013-10-25 Thread Chris Angelico
On Fri, Oct 25, 2013 at 9:06 PM, ray yehray...@gmail.com wrote: Hi all, The system use ONE tcpip client and connection to server. A large batch transactions send to server.I want to send to server concurrently. any idea ? In my thinking, A.Devide large batch transactions to small batch

Re: Cookie aint retrieving when visiting happens from a backlink.

2013-10-25 Thread Nick the Gr33k
Στις 25/10/2013 11:46 πμ, ο/η Νίκος Αλεξόπουλος έγραψε: Trace your logs. You've been told this before; are you sure the request is even getting to your server? what do you mean by that Chris? please be more specific. -- What is now proved was at first only imagined! WebHost

Re: Cookie aint retrieving when visiting happens from a backlink.

2013-10-25 Thread Chris Angelico
On Fri, Oct 25, 2013 at 9:30 PM, Nick the Gr33k nikos.gr...@gmail.com wrote: Στις 25/10/2013 11:46 πμ, ο/η Νίκος Αλεξόπουλος έγραψε: Trace your logs. You've been told this before; are you sure the request is even getting to your server? what do you mean by that Chris? please be more

Re: Processing large CSV files - how to maximise throughput?

2013-10-25 Thread Dave Angel
On 25/10/2013 02:13, Chris Angelico wrote: On Fri, Oct 25, 2013 at 2:57 PM, Dave Angel da...@davea.name wrote: But I would concur -- probably they'll both give about the same speedup. I just detest the pain that multithreading can bring, and tend to avoid it if at all possible. I don't have

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

2013-10-25 Thread Skybuck Flying
Because it's logical. If the exit condition was placed on the top, the loop would exit immediatly. Instead the desired behaviour might be to execute the code inside the loop first and then exit. Thus seperating logic into enter and exit conditions makes sense. Bye, Skybuck. --

Re: Processing large CSV files - how to maximise throughput?

2013-10-25 Thread Chris Angelico
On Fri, Oct 25, 2013 at 10:24 PM, Dave Angel da...@davea.name wrote: On 25/10/2013 02:13, Chris Angelico wrote: On Fri, Oct 25, 2013 at 2:57 PM, Dave Angel da...@davea.name wrote: But I would concur -- probably they'll both give about the same speedup. I just detest the pain that

Re: Cookie aint retrieving when visiting happens from a backlink.

2013-10-25 Thread Nick the Gr33k
Στις 25/10/2013 1:51 μμ, ο/η Chris Angelico έγραψε: On Fri, Oct 25, 2013 at 9:30 PM, Nick the Gr33k nikos.gr...@gmail.com wrote: Στις 25/10/2013 11:46 πμ, ο/η Νίκος Αλεξόπουλος έγραψε: Trace your logs. You've been told this before; are you sure the request is even getting to your server?

Re: Python Front-end to GCC

2013-10-25 Thread Mark Janssen
On Thu, Oct 24, 2013 at 8:40 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 22/10/2013 18:37, Oscar Benjamin wrote: OTOH why in particular would you want to initialise them with zeros? I often initialise arrays to nan which is useful for debugging. Is this some kind of joke? What has

Re: Cookie aint retrieving when visiting happens from a backlink.

2013-10-25 Thread Chris Angelico
On Fri, Oct 25, 2013 at 10:46 PM, Nick the Gr33k nikos.gr...@gmail.com wrote: Can you reproduce this simple problem on your side to see if it behaves the same way as in me? Like I said at the beginning, no it doesn't. Go forth and wield the Google. ChrisA --

Re: Cookie aint retrieving when visiting happens from a backlink.

2013-10-25 Thread Nick the Gr33k
Στις 25/10/2013 3:11 μμ, ο/η Chris Angelico έγραψε: On Fri, Oct 25, 2013 at 10:46 PM, Nick the Gr33k nikos.gr...@gmail.com wrote: Can you reproduce this simple problem on your side to see if it behaves the same way as in me? Like I said at the beginning, no it doesn't. Go forth and wield the

Re: Cookie aint retrieving when visiting happens from a backlink.

2013-10-25 Thread Chris Angelico
On Fri, Oct 25, 2013 at 11:20 PM, Nick the Gr33k nikos.gr...@gmail.com wrote: Στις 25/10/2013 3:11 μμ, ο/η Chris Angelico έγραψε: On Fri, Oct 25, 2013 at 10:46 PM, Nick the Gr33k nikos.gr...@gmail.com wrote: Can you reproduce this simple problem on your side to see if it behaves the same

Re: Cookie aint retrieving when visiting happens from a backlink.

2013-10-25 Thread Nick the Gr33k
Στις 25/10/2013 3:35 μμ, ο/η Chris Angelico έγραψε: On Fri, Oct 25, 2013 at 11:20 PM, Nick the Gr33k nikos.gr...@gmail.com wrote: Στις 25/10/2013 3:11 μμ, ο/η Chris Angelico έγραψε: On Fri, Oct 25, 2013 at 10:46 PM, Nick the Gr33k nikos.gr...@gmail.com wrote: Can you reproduce this simple

Re: Python Front-end to GCC

2013-10-25 Thread Dan Sommers
On Fri, 25 Oct 2013 04:55:43 -0700, Mark Janssen wrote: On Thu, Oct 24, 2013 at 8:40 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 22/10/2013 18:37, Oscar Benjamin wrote: OTOH why in particular would you want to initialise them with zeros? I often initialise arrays to nan which is

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

2013-10-25 Thread Mark Lawrence
On 24/10/2013 21:02, Skybuck Flying wrote: Because it's logical. If the exit condition was placed on the top, the loop would exit immediatly. Instead the desired behaviour might be to execute the code inside the loop first and then exit. Thus seperating logic into enter and exit conditions

Re: Python Front-end to GCC

2013-10-25 Thread Mark Lawrence
On 25/10/2013 12:55, Mark Janssen wrote: On Thu, Oct 24, 2013 at 8:40 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 22/10/2013 18:37, Oscar Benjamin wrote: OTOH why in particular would you want to initialise them with zeros? I often initialise arrays to nan which is useful for debugging.

Re: Cookie aint retrieving when visiting happens from a backlink.

2013-10-25 Thread Mark Lawrence
On 25/10/2013 13:54, Nick the Gr33k wrote: Στις 25/10/2013 3:35 μμ, ο/η Chris Angelico έγραψε: On Fri, Oct 25, 2013 at 11:20 PM, Nick the Gr33k nikos.gr...@gmail.com wrote: Στις 25/10/2013 3:11 μμ, ο/η Chris Angelico έγραψε: On Fri, Oct 25, 2013 at 10:46 PM, Nick the Gr33k

Re: Python Front-end to GCC

2013-10-25 Thread Ned Batchelder
On 10/25/13 7:55 AM, Mark Janssen wrote: On Thu, Oct 24, 2013 at 8:40 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 22/10/2013 18:37, Oscar Benjamin wrote: OTOH why in particular would you want to initialise them with zeros? I often initialise arrays to nan which is useful for debugging.

Re: Cookie aint retrieving when visiting happens from a backlink.

2013-10-25 Thread Nick the Gr33k
Στις 25/10/2013 5:21 μμ, ο/η Mark Lawrence έγραψε: On 25/10/2013 13:54, Nick the Gr33k wrote: Στις 25/10/2013 3:35 μμ, ο/η Chris Angelico έγραψε: On Fri, Oct 25, 2013 at 11:20 PM, Nick the Gr33k nikos.gr...@gmail.com wrote: Στις 25/10/2013 3:11 μμ, ο/η Chris Angelico έγραψε: On Fri, Oct 25,

Re: Cookie aint retrieving when visiting happens from a backlink.

2013-10-25 Thread Mark Lawrence
On 25/10/2013 16:04, Nick the Gr33k wrote: Στις 25/10/2013 5:21 μμ, ο/η Mark Lawrence έγραψε: On 25/10/2013 13:54, Nick the Gr33k wrote: Στις 25/10/2013 3:35 μμ, ο/η Chris Angelico έγραψε: On Fri, Oct 25, 2013 at 11:20 PM, Nick the Gr33k nikos.gr...@gmail.com wrote: Στις 25/10/2013 3:11 μμ,

Re: Cookie aint retrieving when visiting happens from a backlink.

2013-10-25 Thread Steven D'Aprano
On Fri, 25 Oct 2013 10:22:00 +0300, Νίκος Αλεξόπουλος wrote: Can somebody explain why this is happening? Yes -- it's the same answer that was given the previous time you asked this same question, 2-3 weeks ago, and it will be the same answer next time you ask too. Look back at the thread

Re: Cookie aint retrieving when visiting happens from a backlink.

2013-10-25 Thread Denis McMahon
On Fri, 25 Oct 2013 15:54:05 +0300, Nick the Gr33k wrote: Can you reproduce this simple problem on your side to see if it behaves the same way as in me? Like I said at the beginning, no it doesn't. Go forth and wield the Google. Answer me in detail an stop pointing me at vague google

Re: Cookie aint retrieving when visiting happens from a backlink.

2013-10-25 Thread Denis McMahon
On Fri, 25 Oct 2013 12:50:47 +0300, Νίκος Αλεξόπουλος wrote: Hello, i was happy to see that a python module for geoip2 came out. What has this got to do with your cookies problem? UnicodeDecodeError: 'ascii' codec can't decode byte 0xe7 in position 2255: ordinal not in range(128) What is

Re: Cookie aint retrieving when visiting happens from a backlink.

2013-10-25 Thread Chris Angelico
On Sat, Oct 26, 2013 at 2:13 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Fri, 25 Oct 2013 10:22:00 +0300, Νίκος Αλεξόπουλος wrote: Can somebody explain why this is happening? Yes -- it's the same answer that was given the previous time you asked this same question, 2-3

Re: Cookie aint retrieving when visiting happens from a backlink.

2013-10-25 Thread Nick the Gr33k
Στις 25/10/2013 6:17 μμ, ο/η Denis McMahon έγραψε: If the client is not sending the expected cookie to the server, then the most likely problem is that the client does not associate that particular cookie with the server url. If this is the case, then the problem is that when you initially sent

Re: Cookie aint retrieving when visiting happens from a backlink.

2013-10-25 Thread Chris Angelico
On Sat, Oct 26, 2013 at 2:29 AM, Nick the Gr33k nikos.gr...@gmail.com wrote: Assiciate the cookie with the url? You mean add a domain directive to the cookie like: Do you understand: 1) what cookies are? 2) how the browser receives them? 3) how the server gets them back? 4) when #3 happens and

Re: Cookie aint retrieving when visiting happens from a backlink.

2013-10-25 Thread Joel Goldstick
On Fri, Oct 25, 2013 at 11:34 AM, Chris Angelico ros...@gmail.com wrote: On Sat, Oct 26, 2013 at 2:29 AM, Nick the Gr33k nikos.gr...@gmail.com wrote: Assiciate the cookie with the url? You mean add a domain directive to the cookie like: Do you understand: 1) what cookies are? 2) how the

Re: Cookie aint retrieving when visiting happens from a backlink.

2013-10-25 Thread Nick the Gr33k
Στις 25/10/2013 6:36 μμ, ο/η Joel Goldstick έγραψε: On Fri, Oct 25, 2013 at 11:34 AM, Chris Angelico ros...@gmail.com wrote: On Sat, Oct 26, 2013 at 2:29 AM, Nick the Gr33k nikos.gr...@gmail.com wrote: Assiciate the cookie with the url? You mean add a domain directive to the cookie like: Do

Why does lzma hangs for a very long time when run in parallel using python's muptiprocessing module?

2013-10-25 Thread cantor cantor
When trying to run lzma in parallel (see the code below) it hangs for a very long time. The non-parallel version of the code using map() works fine as shown in the code below. Python 3.3.2 [GCC 4.6.3] on linux import lzmafrom functools import partialimport multiprocessing def run_lzma(data,c):

Re: Cookie aint retrieving when visiting happens from a backlink.

2013-10-25 Thread Steve Simmons
On 25/10/2013 16:34, Chris Angelico wrote: Do you understand: 1) what cookies are? 2) how the browser receives them? 3) how the server gets them back? 4) when #3 happens and when it does not? If not, go to Wikipedia and start reading. If you get to the end of Wikipedia without comprehending

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-25 Thread Mark Lawrence
On 25/10/2013 07:14, wxjmfa...@gmail.com wrote: [snip all the double spaced crap - please read, digest and action this https://wiki.python.org/moin/GoogleGroupsPython] Use one of the coding schemes endorsed by Unicode. As I personally know nothing about unicode for the unenlightened such

Re: Cookie aint retrieving when visiting happens from a backlink.

2013-10-25 Thread Mark Lawrence
On 25/10/2013 17:28, Steve Simmons wrote: On 25/10/2013 16:34, Chris Angelico wrote: Do you understand: 1) what cookies are? 2) how the browser receives them? 3) how the server gets them back? 4) when #3 happens and when it does not? If not, go to Wikipedia and start reading. If you get to the

Re: Python Front-end to GCC

2013-10-25 Thread Mark Janssen
OTOH why in particular would you want to initialise them with zeros? I often initialise arrays to nan which is useful for debugging. Is this some kind of joke? What has this list become? It's a useful debugging technique to initialize memory to distinctive values that should never occur in

Re: Python Front-end to GCC

2013-10-25 Thread Mark Lawrence
On 25/10/2013 19:26, Mark Janssen wrote: OTOH why in particular would you want to initialise them with zeros? I often initialise arrays to nan which is useful for debugging. Is this some kind of joke? What has this list become? It's a useful debugging technique to initialize memory to

Re: Python Front-end to GCC

2013-10-25 Thread Mark Janssen
OTOH why in particular would you want to initialise them with zeros? I often initialise arrays to nan which is useful for debugging. Is this some kind of joke? What has this list become? It's a useful debugging technique to initialize memory to distinctive values that should never occur in

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

2013-10-25 Thread Peter Cacioppi
Dave said : Include a quote from whomever you're responding to, and we might actually take you seriously. And of course, make sure you don't delete the attribution. This forum is working for me. One of the more frequent and sophisticated posters emailed me saying he appreciates my

Re: Python Front-end to GCC

2013-10-25 Thread rusi
On Saturday, October 26, 2013 12:15:43 AM UTC+5:30, zipher wrote: Clearly the python list has been taken over by TheKooks. Notice he did not respond to the request. Since we are talking about digital computers (with digital memory), I'm really curious what the hex value for NaN is to

Re: Python Front-end to GCC

2013-10-25 Thread Mark Lawrence
On 25/10/2013 19:45, Mark Janssen wrote: OTOH why in particular would you want to initialise them with zeros? I often initialise arrays to nan which is useful for debugging. Is this some kind of joke? What has this list become? It's a useful debugging technique to initialize memory to

Re: Python Front-end to GCC

2013-10-25 Thread Mark Janssen
On Fri, Oct 25, 2013 at 11:59 AM, rusi rustompm...@gmail.com wrote: On Saturday, October 26, 2013 12:15:43 AM UTC+5:30, zipher wrote: Clearly the python list has been taken over by TheKooks. Notice he did not respond to the request. Since we are talking about digital computers (with digital

Re: Python Front-end to GCC

2013-10-25 Thread Grant Edwards
On 2013-10-25, Mark Janssen dreamingforw...@gmail.com wrote: OTOH why in particular would you want to initialise them with zeros? I often initialise arrays to nan which is useful for debugging. Is this some kind of joke? What has this list become? It's a useful debugging technique to

Re: Python Front-end to GCC

2013-10-25 Thread Mark Janssen
As for the hex value for Nan who really gives a toss? The whole point is that you initialise to something that you do not expect to see. Do you not have a text book that explains this concept? No, I don't think there is a textbook that explains such a concept of initializing memory to

Re: Python Front-end to GCC

2013-10-25 Thread rusi
On Saturday, October 26, 2013 12:39:09 AM UTC+5:30, zipher wrote: On Fri, Oct 25, 2013 at 11:59 AM, rusi wrote: I dont see how thats any more relevant than: Whats the hex value of the add instruction? You don't see. That is correct. Btw, I believe the hex value for the add

Re: Python Front-end to GCC

2013-10-25 Thread Mark Lawrence
On 25/10/2013 20:18, Mark Janssen wrote: As for the hex value for Nan who really gives a toss? The whole point is that you initialise to something that you do not expect to see. Do you not have a text book that explains this concept? No, I don't think there is a textbook that explains such a

decorators and mangled names for private methods

2013-10-25 Thread Tim Chase
Given the following example 2.7 code: from functools import wraps class require_keys: def __init__(self, *keys): self.keys = keys def __call__(decorator_self, fn): @wraps(fn) def result_fn(method_self, *args, **kwargs): # import pdb; pdb.set_trace() req =

Re: Python Front-end to GCC

2013-10-25 Thread Mark Janssen
As for the hex value for Nan who really gives a toss? The whole point is that you initialise to something that you do not expect to see. Do you not have a text book that explains this concept? No, I don't think there is a textbook that explains such a concept of initializing memory to

Re: decorators and mangled names for private methods

2013-10-25 Thread Peter Otten
Tim Chase wrote: Given the following example 2.7 code: from functools import wraps class require_keys: def __init__(self, *keys): self.keys = keys def __call__(decorator_self, fn): @wraps(fn) def result_fn(method_self, *args, **kwargs): # import pdb;

Don't use default Google Group client (was re:....)

2013-10-25 Thread Terry Reedy
On 10/25/2013 2:57 PM, Peter Cacioppi wrote: The default Google Group client is notoriously cruddy with quotes attribution. So don't use it. Get any decent newsreader, such as Thunderbird, and access the list at news.gmane.org as gmane.comp.python.general. -- Terry Jan Reedy --

Re: Python Front-end to GCC

2013-10-25 Thread Mark Janssen
We've been discussing *DEBUGGING*. Are you making it LOUD and *clear* that you don't know what you're talking about? Input: Yes/no no Now please explain what you do not understand about the data below that's been written by Oscar Benjamin, myself and Ned Batchelder, specifically the

Re: Python Front-end to GCC

2013-10-25 Thread Tim Delaney
On 26 October 2013 06:18, Mark Janssen dreamingforw...@gmail.com wrote: As for the hex value for Nan who really gives a toss? The whole point is that you initialise to something that you do not expect to see. Do you not have a text book that explains this concept? No, I don't think

Re: Python Front-end to GCC

2013-10-25 Thread Mark Lawrence
On 25/10/2013 21:11, Tim Delaney wrote: On 26 October 2013 06:18, Mark Janssen dreamingforw...@gmail.com mailto:dreamingforw...@gmail.com wrote: As for the hex value for Nan who really gives a toss? The whole point is that you initialise to something that you do not expect to

Re: Python Front-end to GCC

2013-10-25 Thread Mark Lawrence
On 25/10/2013 21:29, Mark Janssen wrote: We've been discussing *DEBUGGING*. Are you making it LOUD and *clear* that you don't know what you're talking about? Input: Yes/no no Now please explain what you do not understand about the data below that's been written by Oscar Benjamin, myself

Re: Python Front-end to GCC

2013-10-25 Thread Tim Delaney
On 26 October 2013 07:36, Mark Lawrence breamore...@yahoo.co.uk wrote: I can't see it being a bot on the grounds that a bot wouldn't be smart enough to snip a URL that referred to itself as a quack. My thought based on some of the responses is that they seem auto-generated, then tweaked - so

Re: Python Front-end to GCC

2013-10-25 Thread Mark Lawrence
On 25/10/2013 21:48, Tim Delaney wrote: But OTOH, it can also be explained away entirely by (as you previously noted) the Dunning-Kruger effect, with the same uninformed responses trotted out to everything. It was rusi who first mentioned this, I merely replied in my normal dead pan way.

Re: Python Front-end to GCC

2013-10-25 Thread Mark Janssen
But OTOH, it can also be explained away entirely by (as you previously noted) the Dunning-Kruger effect, with the same uninformed responses trotted out to everything. It was rusi who first mentioned this, I merely replied in my normal dead pan way. Slight aside, I spelt your surname

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

2013-10-25 Thread Rhodri James
On Fri, 25 Oct 2013 19:57:37 +0100, Peter Cacioppi peter.cacio...@gmail.com wrote: Some readers can discern context from the previous posts. That's sort of what the word context means. But I understand this skill isn't universal. Some readers are reading this forum as a mailing list or

Re: Python Front-end to GCC

2013-10-25 Thread Mark Lawrence
On 25/10/2013 22:02, Mark Janssen wrote: But OTOH, it can also be explained away entirely by (as you previously noted) the Dunning-Kruger effect, with the same uninformed responses trotted out to everything. It was rusi who first mentioned this, I merely replied in my normal dead pan way.

Add committers according to codeaccess.txt

2013-10-25 Thread Tae Wong
You want to merge codeaccess.txt to the Misc/ACKS file. Here's a list (just look at the sixth line for the names of committers). https://wesnoth-contribcommunity.googlecode.com/svn/codeaccess.txt The mailing list (python-list) has been spammed for many years. Here's some spam posts.

Re: Add committers according to codeaccess.txt

2013-10-25 Thread Mark Lawrence
On 25/10/2013 22:24, Tae Wong wrote: You want to merge codeaccess.txt to the Misc/ACKS file. Here's a list (just look at the sixth line for the names of committers). https://wesnoth-contribcommunity.googlecode.com/svn/codeaccess.txt The mailing list (python-list) has been spammed for many

Re: Python Front-end to GCC

2013-10-25 Thread Mark Janssen
On Fri, Oct 25, 2013 at 2:07 PM, Ned Batchelder n...@nedbatchelder.com wrote: (Offlist) Mark, these conversations would go much more smoothly if you would make direct statements about technical points. Your messages are usually insinuating questions, or personal insults. Yes, thank you.

Re: Add committers according to codeaccess.txt

2013-10-25 Thread Tae Wong
Here is the bug tracker's main page. http://bugs.python.org/ You are not subscribed to this mailing list. -- Tae Wong -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Front-end to GCC

2013-10-25 Thread Mark Lawrence
On 25/10/2013 22:37, Mark Janssen wrote: I'm still waiting on the binary-digit lexer, Ned. The whole Python world is still waiting on your response to this http://code.activestate.com/lists/python-ideas/19908/. You were asked three times originally to respond. I've referenced this twice

Re: Python Front-end to GCC

2013-10-25 Thread xDog Walker
On Friday 2013 October 25 14:11, Mark Lawrence wrote: Will you please do yourself a favour and get a new dealer before you do some real damage, the batch you're currently on is definitely contaminated. Meet Mark Janssen:

Re: Add committers according to codeaccess.txt

2013-10-25 Thread Mark Lawrence
On 25/10/2013 22:46, Tae Wong wrote: Here is the bug tracker's main page. http://bugs.python.org/ You are not subscribed to this mailing list. Oh dear how sad. But who are you talking to and what about? -- Python is the second best programming language in the world. But the best has yet to

Re: Add committers according to codeaccess.txt

2013-10-25 Thread Tae Wong
The Python issue tracker administrators needs to be contacted to grant permission to login to your Python issue tracker account (taewong.seo). The sixth line is the start of the list. Add all names of committers according to codeaccess.txt of the wesnoth-contribcommunity project. -- Tae Wong

Approach to creating a Boolean expression parser in Python?

2013-10-25 Thread vasudevram
Hi list, I'm working on an app in which longish text chunks (could be up to a few MB in size, and stored either in flat text files or in fields of database records - TBD) need to be searched for the presence of a combination of string constants, where the string constants can be combined with

Re: Don't use default Google Group client (was re:....)

2013-10-25 Thread rurpy
On 10/25/2013 02:05 PM, Terry Reedy wrote: On 10/25/2013 2:57 PM, Peter Cacioppi wrote: The default Google Group client is notoriously cruddy with quotes attribution. So don't use it. Get any decent newsreader, such as Thunderbird, and access the list at news.gmane.org as

Debugging decorator

2013-10-25 Thread Yaşar Arabacı
Hi people, I wrote this decorator: https://gist.github.com/yasar11732/7163528 When this code executes: @debugging def myfunc(a, b, c, d = 48): a = 129 return a + b print myfunc(12,15,17) This is printed: function myfunc called a 12 c 17 b 15 d

Re: Don't use default Google Group client (was re:....)

2013-10-25 Thread Mark Lawrence
On 26/10/2013 00:44, ru...@yahoo.com wrote: On 10/25/2013 02:05 PM, Terry Reedy wrote: On 10/25/2013 2:57 PM, Peter Cacioppi wrote: The default Google Group client is notoriously cruddy with quotes attribution. So don't use it. Get any decent newsreader, such as Thunderbird, and access the

Re: Cookie aint retrieving when visiting happens from a backlink.

2013-10-25 Thread Chris Angelico
On Sat, Oct 26, 2013 at 3:28 AM, Steve Simmons square.st...@gmail.com wrote: Chris, You truly are a saint! I simply cannot believe the level of restraint you have shown during this exchange (unless of course you have bought tickets to Greece in order to deal with this issue in person and

Re: Processing large CSV files - how to maximise throughput?

2013-10-25 Thread Roy Smith
In article mailman.1560.1382744694.18130.python-l...@python.org, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: Memory is cheap -- I/O is slow. G Just how massive are these CSV files? Actually, these days, the economics of hardware are more like, CPU is cheap, memory is expensive. I

Re: Don't use default Google Group client (was re:....)

2013-10-25 Thread Chris Angelico
On Sat, Oct 26, 2013 at 10:44 AM, ru...@yahoo.com wrote: Peter, you can ignore Terry's advice if Google Groups works for you. There are a small number of Google haters here who seem larger due to their obnoxious noisiness. I've been using Google Groups to post here for many years and with a

Python interactive segfaults on OS X 10.9 Mavericks

2013-10-25 Thread Ned Deily
Since OS X 10.9 Mavericks is now out, people are running into a severe problem when using some Python interpreters interactively. The symptom is that the interpreter in interactive mode crashes after typing two lines: $ python3.3 Python 3.3.2 (v3.3.2:d047928ae3f6, May 13 2013, 13:52:24) [GCC

Re: Don't use default Google Group client (was re:....)

2013-10-25 Thread Terry Reedy
On 10/25/2013 7:44 PM, ru...@yahoo.com wrote: On 10/25/2013 02:05 PM, Terry Reedy wrote: On 10/25/2013 2:57 PM, Peter Cacioppi wrote: The default Google Group client is notoriously cruddy with quotes attribution. So don't use it. Get any decent newsreader, such as Thunderbird, and access the

Re: Why does lzma hangs for a very long time when run in parallel using python's muptiprocessing module?

2013-10-25 Thread Chris Angelico
On Sat, Oct 26, 2013 at 3:21 AM, cantor cantor cantorma...@gmail.com wrote: When trying to run lzma in parallel (see the code below) it hangs for a very long time. The non-parallel version of the code using map() works fine as shown in the code below. Confirmed that your code does indeed hang

Re: How to design:Use One TCPIP Client connection to Server and work concurrently

2013-10-25 Thread ray
Hi all, Because the server only can accept ONE connect from client. If the client establish connection with the server,the server can not accept other client. One large batch transaction file come from user. client divide the large file to several smaller files. In my thinking: client have

Re: How to design:Use One TCPIP Client connection to Server and work concurrently

2013-10-25 Thread Chris Angelico
On Sat, Oct 26, 2013 at 11:48 AM, ray yehray...@gmail.com wrote: Hi all, Because the server only can accept ONE connect from client. If the client establish connection with the server,the server can not accept other client. Are you sure? If that's the case, you're stuck - you can't

Re: Python Front-end to GCC

2013-10-25 Thread Chris Angelico
On Sat, Oct 26, 2013 at 8:37 AM, Mark Janssen dreamingforw...@gmail.com wrote: On Fri, Oct 25, 2013 at 2:07 PM, Ned Batchelder n...@nedbatchelder.com wrote: (Offlist) You responded on-list to a private email that was even tagged as off-list. Please be more careful and courteous. Anyway, IEEE

Re: Python Front-end to GCC

2013-10-25 Thread Steven D'Aprano
On Fri, 25 Oct 2013 21:36:42 +0100, Mark Lawrence wrote: Mind you, the thought of a bot with a Ph.D. is mind boggling. You can buy degrees on the Internet quite cheaply: http://en.wikipedia.org/wiki/List_of_animals_with_fraudulent_diplomas PhD's are more expensive, which leads me to think

Re: Don't use default Google Group client (was re:....)

2013-10-25 Thread Steven D'Aprano
On Fri, 25 Oct 2013 16:44:45 -0700, rurpy wrote: On 10/25/2013 02:05 PM, Terry Reedy wrote: On 10/25/2013 2:57 PM, Peter Cacioppi wrote: The default Google Group client is notoriously cruddy with quotes attribution. So don't use it. Get any decent newsreader, such as Thunderbird, and

Re: Debugging decorator

2013-10-25 Thread Chris Angelico
On Sat, Oct 26, 2013 at 10:55 AM, Yaşar Arabacı yasar11...@gmail.com wrote: I think I can be used instead of inserting and deleting print statements when trying to see what is passed to a function and what is assingned to what etc. I think it can be helpful during debugging. It works by

Re: How to design:Use One TCPIP Client connection to Server and work concurrently

2013-10-25 Thread ray
In some enviroment,Client connect with Server(Always connect). It is a little like pipe.Many requester use the pipe send request and receive reponse.In client side,it dispatch requests and handle/match response. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-25 Thread Steven D'Aprano
On Fri, 25 Oct 2013 19:05:09 +0100, Mark Lawrence wrote: On 25/10/2013 07:14, wxjmfa...@gmail.com wrote: Use one of the coding schemes endorsed by Unicode. As I personally know nothing about unicode for the unenlightened such as myself please explain this statement with respect to the

[issue16595] Add resource.prlimit

2013-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 87d41a5a9077 by Christian Heimes in branch 'default': Issue #16595: prlimit() needs Linux kernel 2.6.36+ http://hg.python.org/cpython/rev/87d41a5a9077 -- ___ Python tracker rep...@bugs.python.org

[issue16595] Add resource.prlimit

2013-10-25 Thread Christian Heimes
Christian Heimes added the comment: The buildbot is Linux-2.6.35-vs2.3.0.36.32-gentoo-i686-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-gentoo-2.1 but prlimit() requires 2.6.36+. I didn't expect to see a combination of glibc with prlimit() and Kernel without prlimit(). According to man prlimit

[issue16595] Add resource.prlimit

2013-10-25 Thread STINNER Victor
STINNER Victor added the comment: Or we should extend with supress(OSerror, errno=errno.ENOSYS): ... :-) (Just kidding, ignored tests must be marked as skipped.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16595

  1   2   3   >