I have a web service that I built and it requires using SSL. I have
found a few examples of clients using SSL but none that allow me to
change the client's certificate or the chain of certificates the client
will use to authenticate the server.
I was wondering if anyone knows of a good example
geoffbache wrote:
>> Twisted *should* be able to do this, as it uses non-blocking IO.
>>
>> http://twistedmatrix.com/trac/
>
> Thanks for the tip. I'll take a look if nobody has any better
> suggestions.
>
> It still seems to me that what I'm trying to do is essentially quite
> simple, and should
I have been looking for a server application as an example of how to use
TLSLite or PyOpenSSL X509 certificates for authentication. Does any one
have a pointer or two?
Peace,
Chaz
--
http://mail.python.org/mailman/listinfo/python-list
Thomas Krüger wrote:
> Chaz Ginger schrieb:
>> I am writing a distributed server system using Python. I need to support
>> authentication and was wondering what approaches are available under
>> Python and what are the best practices.
>
> Well, there are many ways o
I am writing a distributed server system using Python. I need to support
authentication and was wondering what approaches are available under
Python and what are the best practices.
Thanks in advance
Chaz
--
http://mail.python.org/mailman/listinfo/python-list
I have a need for the minimal Linux system to run Python. Basically I
want the system to boot up and instead of starting up Init/etc. I would
love it to run python (and a python script I have written).
Before embarking on doing it myself I was wondering if anyone knew of
just such a system?
Peace
I have a rather large Python/Twisted Matrix application that will be run
on Windows, Linux and perhaps Macs. I was wondering if there are any
tools that can be used to create an installer that will bring in Python,
Twisted Matrix, my application libraries and anything else I need?
I have tried
Joe Seigh wrote:
> Martin v. Löwis wrote:
>> You still didn't say what you would suggest to make it thread-safe
>> again; most likely, you proposal would be to add locking. If I
>> understand Joe's approach correctly, he has a solution that does
>> not involve locking (although I don't understand h
Edward Diener No Spam wrote:
> [EMAIL PROTECTED] wrote:
>> Edward> The definition of a component model I use below is a class
>> which
>> Edward> allows properties, methods, and events in a structured way
>> which
>> Edward> can be recognized, usually through some form of introspection
Jeremy Sanders wrote:
> Jeremy Sanders wrote:
>
>> Chaz Ginger wrote:
>>
>>> What would sets do for me over lists?
>> It's faster to tell whether something is in a set or dict than in a list
>> (for some minimum size).
>
> As a footnote, thi
Larry Bates wrote:
> Chaz Ginger wrote:
>> I have a system that has a few lists that are very large (thousands or
>> tens of thousands of entries) and some that are rather small. Many times
>> I have to produce the difference between a large list and a small one,
>
Paul Rubin wrote:
> Sybren Stuvel <[EMAIL PROTECTED]> writes:
>>> I don't know enough about Python internals, but the suggested
>>> solutions all seem to involve scanning bigList. Can this presumably
>>> linear operation be avoided by using dict or similar to find all
>>> occurrences of smallist it
I've done that and decided that Python's 'list comprehension' isn't a
way to go. I was hoping that perhaps someone had some experience with
some C or C++ library that has a Python interface that would make a
difference.
Chaz
Sybren Stuvel wrote:
> Bill Williams enlightened us with:
>> I don't kno
I have a system that has a few lists that are very large (thousands or
tens of thousands of entries) and some that are rather small. Many times
I have to produce the difference between a large list and a small one,
without destroying the integrity of either list. I was wondering if
anyone has any r
Steve Holden wrote:
> Chaz Ginger wrote:
>> Steve Holden wrote:
>>
>>> [EMAIL PROTECTED] wrote:
>>>
>>>> Hi,
>>>>
>>>> I am writing a library in which I need to find the names of methods
>>>> which are implemented in
Steve Holden wrote:
> [EMAIL PROTECTED] wrote:
>> Hi,
>>
>> I am writing a library in which I need to find the names of methods
>> which are implemented in a class, rather than inherited from another
>> class. To explain more, and to find if there is another way of doing
>> it, here is what I want
Here is a problem I am trying to solve; I am sure there must be an easy
way to do it and I just don't know how.
I have a rather large application that I am writing. To make it easy for
the user to run I have them run a startup.py script. This script will
try to load each of the third party libr
Neil Cerutti wrote:
> On 2006-08-30, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote:
>> On Wed, 30 Aug 2006 14:22:16 +1000, Ben Finney <[EMAIL PROTECTED]> wrote:
>>> "glenn" <[EMAIL PROTECTED]> writes:
>>>
Bruno Desthuilliers wrote:
> It might be better to use newstyle classes if you can. A
Georg Brandl wrote:
> Chaz Ginger wrote:
>> glenn wrote:
>>>> Shouldn't that be
>>>>
>>>> beagle = animal.dog()
>>>>
>>>> to create an instance?
>>>>
>>>> We've all done it ...
>&
glenn wrote:
>> Shouldn't that be
>>
>> beagle = animal.dog()
>>
>> to create an instance?
>>
>> We've all done it ...
> lol - actually Im confused about this - there seem to be cases where
> instantiaing with:
> instance=module.classname()
> gives me an error, but
> instance=module.classname
> doe
Jason wrote:
> Chaz Ginger wrote:
>> Chaz Ginger wrote:
>>> glenn wrote:
>>>> hi - Im quite new to python, wondering if anyone can help me understand
>>>> something about inheritance here. In this trivial example, how could I
>>>> modify the vo
Chaz Ginger wrote:
> glenn wrote:
>> hi - Im quite new to python, wondering if anyone can help me understand
>> something about inheritance here. In this trivial example, how could I
>> modify the voice method of 'dog' to call the base class 'creatu
glenn wrote:
> hi - Im quite new to python, wondering if anyone can help me understand
> something about inheritance here. In this trivial example, how could I
> modify the voice method of 'dog' to call the base class 'creatures'
> voice method from with in it?
>
> class creature:
> def __ini
John Machin wrote:
> Chaz Ginger wrote:
>> I am somewhat new to Python (last year). As such I encounter little
>> "gotchas" all the time. I am wondering is someone can explain this to me:
>>
>> If have three simple files:
>>
>> a.py
Duncan Booth wrote:
> Chaz Ginger wrote:
>
>> Can someone explain what is really going on here?
>
> Think of 'from x import y' as an assignment. Roughly equivalent to:
>
>y = sys.modules['x'].y
>
> (except of course you don't have to h
I am somewhat new to Python (last year). As such I encounter little
"gotchas" all the time. I am wondering is someone can explain this to me:
If have three simple files:
a.py -
foo = None
def a(b):
global foo
foo = b
b.py --
from a impor
unexpected wrote:
> I have a program where based on a specific value from a dictionary, I
> call a different function. Currently, I've implemented a bunch of
> if..elsif statements to do this, but it's gotten to be over 30 right
> now and has gotten rather tedious. Is there a more efficient way to
Gabriel Genellina wrote:
> At Thursday 24/8/2006 16:23, Chaz Ginger wrote:
>
>> I was writing some code that used someone else class as a subclass. He
>> wrote me to tell me that using his class as a subclass was incorrect. I
>> am wondering under what conditions, if ev
Fredrik Lundh wrote:
> please don't hit reply to arbitrary messages when you're posting new
> messages; it messes up the message threading.
>
> Chaz Ginger wrote:
>
>> I was writing some code that used someone else class as a subclass. He
>> wrote me
I was writing some code that used someone else class as a subclass. He
wrote me to tell me that using his class as a subclass was incorrect. I
am wondering under what conditions, if ever, does a class using a
subclass not work.
Here is an example. For instance the original class might look like
KraftDiner wrote:
> I have a dictionary and sometime the lookup fails...
> it seems to raise an exception when this happens.
> What should I do to fix/catch this problem?
>
> desc = self.numericDict[k][2]
> KeyError: 589824 < This is the error that is being produced,
> because there is n
KraftDiner wrote:
> I have a question..
>
> myGlobalDictionary = dictionary()
>
>
> class someClass:
>def __init__(self):
> self.x = 0;
>def getValue(self, v)
> myGlobalDictionary.getVal(v)
>
>
> myGlobalDictionary doesn't seem to be visible to my someClass methods.
> Why?
[EMAIL PROTECTED] wrote:
> Andre Meyer:
>> What is the preferred pythonic way of implementing singleton elegantly?
>
> Maybe to just use a module.
>
> Bye,
> bearophile
>
Here is some sample code for both singleton classes and named classes
that I use:
> class Singleton(type):
> """
>
33 matches
Mail list logo