Re: strange comparison result with 'is'

2011-10-18 Thread alex23
On Oct 18, 3:53 am, Terry Reedy wrote: > This has come up enough that I opened http://bugs.python.org/issue13203 I really don't get the new Python user obsession with id(). I don't think I've ever used it, in production code or otherwise. -- http://mail.python.org/mailman/listinfo/python-list

Re: Benefit and belief

2011-10-18 Thread alex23
On Oct 18, 6:52 am, Ben Finney wrote: > A belief that doesn't match reality is a delusion. That doesn't change > when someone thinks it's an epiphany: it's still a delusion. Apparently there was some talk about removing delusional as a classification from the DSM due to its definition being, in p

Re: Benefit and belief

2011-10-18 Thread alex23
DevPlayer wrote: > Ever hear/read the term: "It's all good."? A reference to Karma and > how things will work out for the better in the end inspite of what you > see now... A great example of "Everything is Symantics". "Semantics". Also: nonsense. You're conflating an ethical system with a _compl

Re: [OT] Re: Benefit and belief

2011-10-18 Thread Steven D'Aprano
On Tue, 18 Oct 2011 14:23:49 +, Curt wrote: > On 2011-10-17, Steven D'Aprano > wrote: >> >> That is no more deep and meaningful than the fact that while some >> people say "one plus one equals two", others say "eins und eins gleich >> zwei", some say "un et un fait deux" and some say "один и

ssl module with C

2011-10-18 Thread Kristen J. Webb
Hi All, I'm hoping that the answer to this question will shed light on the Python/C interface and make me a much better python programer. I have a test TLS connection program in python (very breif) import socket, ssl news=socket.socket() news.connect() new_ssl=ssl.wrap_socket() new_ssl.read()/ne

Re: Re-raise different exception with original stack trace

2011-10-18 Thread Ian Kelly
On Tue, Oct 18, 2011 at 12:23 PM, Prasad, Ramit wrote: > Yes, but raising the CustomException replaces the last traceback and even > with the saved exception, how would you get the original stacktrace? The only > thing I can think is get the stacktrace and store it in the exception. That > does

RE: Re-raise different exception with original stack trace

2011-10-18 Thread Prasad, Ramit
-Original Message- From: python-list-bounces+ramit.prasad=jpmorgan@python.org [mailto:python-list-bounces+ramit.prasad=jpmorgan@python.org] On Behalf Of MRAB Sent: Friday, October 14, 2011 5:50 PM To: python-list@python.org Subject: Re: Re-raise different exception with original

Re: [OT] Re: Benefit and belief

2011-10-18 Thread Curt
On 2011-10-17, Steven D'Aprano wrote: > > That is no more deep and meaningful than the fact that while some people > say "one plus one equals two", others say "eins und eins gleich zwei", > some say "un et un fait deux" and some say "один и один дает два". Most of us

Re: callling python function in c

2011-10-18 Thread Anssi Saari
masood shaik writes: > Hi > > I am trying to call python function from c code.The following > program i got from the web source while i am trying to run this > program it throws an segmentation fault. Yes, the call to PyImport_Import fails and returns a NULL. You could use the more complete ex