On Jun 27, 1:29 pm, "J.O. Aho" wrote:
> miamia wrote:
> > hello,
>
> > I find out that my program needs
> > Microsoft.VC90.CRT.manifest,msvcm90.dll,msvcp90.dll,msvcr90.dll files
> > when I want to run it on win 64bit systems. I find these files in
> > some other software.
> > Can I simply take it
ample of this?
TIA,
Chaz.
--
http://mail.python.org/mailman/listinfo/python-list
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
?
Peace,
Chaz
--
http://mail.python.org/mailman/listinfo/python-list
using ezsetup with no luck (it seems not everything can be
installed with it). I was hoping to find something as nice (and
complete) as Perl's CPAN but can't seem to find anything.
Does anyone have any recommendations?
Peace,
Chaz.
--
http://mail.python.org/mailman/listinfo/python-list
n the '80s from the NYU Ultra project. They did a
great deal of work on using atomic incr/decr for all sorts of algorithms
to get around locking on parallel processors.
Chaz.
--
http://mail.python.org/mailman/listinfo/python-list
onent is recognized in a particular
> way, often so that the component can interact if necessary with its
> container and/or visual site.
>
> OK, I have proselytized enough . Python is a great language and I
> truly love it and its flexibility and ease of programming use. If there
> is no impetus to create a component model for re-usable components for
> visual RAD environments in Python, that's fine with me. But I thought
> someone from the Python development community, given the use of visual
> RAD environments for other languages as mentioned above, to create GUI
> and large-scale applications, would have considered it.
Why not propose something. That is the easiest way to get things moving.
Chaz.
--
http://mail.python.org/mailman/listinfo/python-list
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,
>
iminate it, or to compare it to every element in
>> smallList.
>
> Maybe the application should use sets instead of lists for these
> collections.
What would sets do for me over lists?
Chaz
--
http://mail.python.org/mailman/listinfo/python-list
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 enl
recommendations on how to do this and keep performance
high? Is there a better way than
[ i for i in bigList if i not in smallList ]
Thanks.
Chaz
--
http://mail.python.org/mailman/listinfo/python-list
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
):
> pass
>
> class B(A):
> def cmd1(self, args):
> pass
> def cmd2(self, args):
> pass
>
> print "A additionals:", A().list_cmds()
> print "B additionals:", B().list_cmds()
>
>
> [EMAIL PROTECTED] ~
> $ python test01.py
> A additionals: []
> B additionals: ['cmd1', 'cmd2']
>
> [EMAIL PROTECTED] ~
> $
>
> Hope this helps.
>
> regards
> Steve
You don't really want to use dir(A), since this will not pick up all the
classes that make up A. Don't you want to use the MRO instead?
Chaz
--
http://mail.python.org/mailman/listinfo/python-list
party libraries the application will need.
If it is present, great. If it isn't, I would like to automatically
install it. This is the heart of my problem: is there a Python
equivalent to PERL's CPAN?
Peace,
Chaz
--
http://mail.python.org/mailman/listinfo/python-list
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
me. If I change b.py to
import a
def b(): print a.foo
I get the following (which is what I expected originally):
per a.a() None
expect 245 245
245
Can someone explain what is really going on here?
TIA,
Chaz
--
http://mail.python.org/mailman/listinfo/python-list
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
__init__(self,a1,a2):
self.c = a1
self.t = A(a2)
def bar(self) :
self.t.bar()
Other than the obvious difference of B2 having an attribute 't', I can't
see any other obvious differences. Is there something I am missing?
TIA
Chaz
--
http://mail.python.org/m
test it first. For example
if foo.has_key('bar'):
print 'we have it'
else :
print 'we don't have bar.'
That'll do it for me.
Chaz.
--
http://mail.python.org/mailman/listinfo/python-list
to be visible to my someClass methods.
> Why? What should I do?
>
Is it an oversight that you forgot the ':' on the getValue definition?
You also forgot to do the return. I say the code should look like:
def getValue(self,v) :
return myGlobalDictionary[v]
I am also confuse
[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):
> """
>
34 matches
Mail list logo