Re: [Python-Dev] io.BufferedReader.peek() Behaviour in python3.1

2009-06-17 Thread Greg Ewing
Cameron Simpson wrote: But people not using threads, or at any rate not dedicating a thread to the reading task, don't have such luxury. But without a dedicated thread you need to use select() or poll(), and then buffering causes other headaches. Are we disputing the utility of being able to

Re: [Python-Dev] SSL Certificate Validation

2009-06-17 Thread Bill Janssen
I think if you check the issue tracker, there's already a patch for this somewhere, IIRC. Bill Devin Cook wrote: > Ok, thanks for all the feedback. Just for clarity, I'll summarize > everything as I understand it: > > * OpenSSL does the all validation of the certificate itself. > (http://opens

Re: [Python-Dev] SSL Certificate Validation

2009-06-17 Thread Devin Cook
Ok, thanks for all the feedback. Just for clarity, I'll summarize everything as I understand it: * OpenSSL does the all validation of the certificate itself. (http://openssl.org/docs/apps/verify.html) * httplib should have a way to enable validation of the certificate. * httplib should have a way

Re: [Python-Dev] SSL Certificate Validation

2009-06-17 Thread Bill Janssen
Martin v. Löwis wrote: > FWIW, I actually don't know the answer for sure, either, so I would have > to research this myself, too. In any case, _ssl.c is *not* the place > where any of the certificate validation actually happens - nor does it > happen elsewhere in the Python source code, IIUC. St

Re: [Python-Dev] SSL Certificate Validation

2009-06-17 Thread Bill Janssen
Bill Janssen wrote: > > Does it check that the host the socket is connected to is the same as > > what's given in the CN field in the certificate? > > No. That, in general, doesn't work very well. The IETF working group > on this is considering deprecating putting a hostname in the CN field at

Re: [Python-Dev] Python script language or not

2009-06-17 Thread Terry Reedy
Dirkjan Ochtman wrote: On Wed, Jun 17, 2009 at 12:27, abhishek goswami wrote: Can anyone clarify me. Please let me know also it is right forum or not. This is not the right forum. This mailing list is about developing the CPython interpreter. For general questions, you may want to try the com

Re: [Python-Dev] CPython in the web browser under Native Client

2009-06-17 Thread tav
Hey Mark, > http://lackingrhoticity.blogspot.com/2009/06/python-standard-library-in-native.html Really glad to see that you carried on with this -- great work!! I guess the elders will simply say that it's history repeating itself, but Grails 2.0 is looking promising! We can finally give that up

Re: [Python-Dev] Python script language or not

2009-06-17 Thread Dirkjan Ochtman
On Wed, Jun 17, 2009 at 12:27, abhishek goswami wrote: > Can anyone clarify me. Please let me know also it is right forum or not. This is not the right forum. This mailing list is about developing the CPython interpreter. For general questions, you may want to try the comp.lang.python newsgroup.

[Python-Dev] Python script language or not

2009-06-17 Thread abhishek goswami
Hi, I have very basic question about Python that do we consider pyhton as script language. I searched in google but it becomes more confusion for me. After some analysis I came to know that Python support oops . Can anyone clarify me. Please let me know also it is right forum or not. I was lo

Re: [Python-Dev] Functions that steal references (Re: [pygame] [patch] minor memory leaks...)

2009-06-17 Thread Hrvoje Niksic
Christian Heimes wrote: I assumed that since PyModule_AddObject is documented as stealing a reference, it always stole a reference. But in reality it only does so conditionally, when it succeeds. As an aside, is this a general feature of functions that steal references, or is PyModule_AddObject