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

2013-10-25 Thread Chris Angelico
On Sat, Oct 26, 2013 at 5:19 PM, Steven D'Aprano wrote: > C does not natively provide garbage collection, or exceptions, or many > other features. But that doesn't make it *impossible* to use these > features in C, it just makes them *inconvenient and difficult*. To get > the advantage of such fea

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

2013-10-25 Thread Steven D'Aprano
On Fri, 25 Oct 2013 01:12:12 -0700, Peter Cacioppi wrote: > 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+

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 t

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

2013-10-25 Thread Chris Angelico
On Sat, Oct 26, 2013 at 10:55 AM, Yaşar Arabacı 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 rewriting ast of th

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 Thunderbir

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 th

Re: Python Front-end to GCC

2013-10-25 Thread Chris Angelico
On Sat, Oct 26, 2013 at 8:37 AM, Mark Janssen wrote: > On Fri, Oct 25, 2013 at 2:07 PM, Ned Batchelder > 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 floating-point makes it pretty clear that a

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 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 parallelize at all. >

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 many

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 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 as you describe, bu

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

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

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

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

2013-10-25 Thread Roy Smith
In article , Dennis Lee Bieber wrote: > Memory is cheap -- I/O is slow. Just how massive are these CSV > files? Actually, these days, the economics of hardware are more like, "CPU is cheap, memory is expensive". I suppose it all depends on what kinds of problems you're solving, but my

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 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 'with extreme prej

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 li

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 4

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 gmane.comp

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

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: 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: http://sourceforge.net/apps/mediawiki/pangaia/index.php?title=User:Avera

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: 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 Janssen
On Fri, Oct 25, 2013 at 2:07 PM, Ned Batchelder 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. That is correct. >

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 years

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. https://mail

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

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 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 Usenet newsgroup. Googl

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 surn

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

Re: Python Front-end to GCC

2013-10-25 Thread Tim Delaney
On 26 October 2013 07:36, Mark Lawrence 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 not a bot per-se, but

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 an

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 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 see. Do you not

Re: Python Front-end to GCC

2013-10-25 Thread Tim Delaney
On 26 October 2013 06: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

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

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 -- https://mai

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; pdb.

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

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 = method_self.__

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

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

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 anyt

Re: Python Front-end to GCC

2013-10-25 Thread Grant Edwards
On 2013-10-25, 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 m

Re: Python Front-end to GCC

2013-10-25 Thread Mark Janssen
On Fri, Oct 25, 2013 at 11:59 AM, rusi 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 memory), I'm re

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 distin

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 init

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 contributi

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

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 distin

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

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

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 th

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 Nick the Gr33k
Στις 25/10/2013 6:36 μμ, ο/η Joel Goldstick έγραψε: On Fri, Oct 25, 2013 at 11:34 AM, Chris Angelico wrote: On Sat, Oct 26, 2013 at 2:29 AM, Nick the Gr33k wrote: Assiciate the cookie with the url? You mean add a domain directive to the cookie like: Do you understand: 1) what cookies are?

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 wrote: > On Sat, Oct 26, 2013 at 2:29 AM, Nick the Gr33k 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) ho

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 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 when it does not?

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 t

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 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 weeks ago, and it will be the

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 i

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 cal

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 a

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 wrote: Στις 25/10/2013 3:11 μμ, ο/η Chris Angelico έγρ

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 wrote: Στις 25/10/2013 3:11 μμ, ο/η Chris Angelico έγραψε: On Fri, Oct 25, 2013 at 10:46 PM, Nic

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

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 wrote: Στις 25/10/2013 3:11 μμ, ο/η Chris Angelico έγραψε: On Fri, Oct 25, 2013 at 10:46 PM, Nick the Gr33k wrote: Can you reproduce this simple

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

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 mak

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

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 wrote: Στις 25/10/2013 3:11 μμ, ο/η Chris Angelico έγραψε: On Fri, Oct 25, 2013 at 10:46 PM, Nick the Gr33k wrote: Can you reproduce this simple problem on your side to see if it behaves th

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 wrote: > Στις 25/10/2013 3:11 μμ, ο/η Chris Angelico έγραψε: >> >> On Fri, Oct 25, 2013 at 10:46 PM, Nick the Gr33k >> wrote: >>> >>> Can you reproduce this simple problem on your side to see if it behaves >>> the >>> same way as in me? >> >> >> Li

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

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 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 -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Front-end to GCC

2013-10-25 Thread Mark Janssen
On Thu, Oct 24, 2013 at 8:40 PM, Mark Lawrence 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 this list become? --

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

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 wrote: > On 25/10/2013 02:13, Chris Angelico wrote: > >> 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

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. -- https://ma

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

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 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 specific. These are

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

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

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 "", l

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 chequ

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, Νίκος Αλεξόπουλος 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 re

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, Νίκος Αλεξόπουλος 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 _not_ from a > refe

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, Νίκος Αλεξόπουλος 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/myt

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, Νίκος Αλεξόπουλος 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/myt

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 collecti

Re: Maintaining a backported module

2013-10-25 Thread Oscar Benjamin
On Oct 24, 2013 9:38 PM, "Terry Reedy" 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 modu

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 spec

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, Νίκος Αλεξόπουλος 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 in 2nd occasio

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

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