Re: Does Python really follow its philosophy of "Readability counts"?

2009-01-16 Thread Éric Daigneault
Hendrik van Rooyento keep the monkeys away from the typewriter. Love it... just fully describes why we should keep some parts hidden from the pointyHairedBossHired Code monkeys... I'd like to think I know what I am doing... can't say the same of all people that have access to the code unfortunat

RE: why would anyone use python when java is there?

2006-11-28 Thread Éric Daigneault
> wtf a reasonable question... But before I run circle yelling "the trolls are here, the trolls are here" I got one for you... why would anyone use java when python is there?? ;-) .^_^. Eric :D, -- http://mail.python.org/mailman/listinfo/python-list

RE: Question about unreasonable slowness

2006-11-16 Thread Éric Daigneault
[ Warning: I'm new to Python. Don't know it at all really yet, but had to examine some 3rd party code because of performance problems with it. ] Here's a code snippet: i = 0 while (i < 20): i = i + 1 (shellIn, shellOut) = os.popen4("/bin/sh -c ':'") # for testing, the spawned shell does not

Re: Python development time is faster.

2006-11-14 Thread Éric Daigneault
"Chris Brat" <[EMAIL PROTECTED]> writes: > I've seen a few posts, columns and articles which state that one of the > advantages of Python is that code can be developed x times faster than > languages such as <>. > > Does anyone have any comments on that statement from personal > experience? Wel

Re: PyDev + Eclipse (Was: Re: What's the best IDE?)

2006-10-27 Thread Éric Daigneault
olive wrote: > > Michael B. Trausch wrote: > > > >> >> Yep. Still does it. >> > > > > I'm running PyDev 1.2.4 without completion problem so far. > > > > Are you up to date ? > > > > Maybe you should install the latest from scratch. > > > > >Yep, I am up to date. As I said, I am t

RE:What's the best IDE?

2006-10-25 Thread Éric Daigneault
/What's your favorite IDE?/ Eclipse with pydev and extentions, and subclipse for subversion / What do you like about it? /When I started Python I tried a whole bunch of IDEs, Komodo, Idle, active state but got tired by having to learn to navigate through a new environment, so I settled for PyDev

Re: Using classes in python

2006-10-25 Thread Éric Daigneault
trevor lock wrote: > Hello, > > I've just started using python and have observed the following : > > class foo: > a=[] > def __init__(self, val): > self.a.append ( val ) > def getA(self): > print self.a > return self.a > > z = foo(5) > y = foo(4) > z.

Re: mean ans std dev of an array?

2006-10-23 Thread Éric Daigneault lists
Simplest I see is to do it manually. If your array data is numeric compatible mean = sum(a)/len(a) as for the standard Deviation it depends on the nature of your data... check out http://en.wikipedia.org/wiki/Standard_deviation for info on that... but in all a for loop with a few calculati

Re: python class instantiation

2006-10-23 Thread Éric Daigneault
Fredrik Lundh wrote: > Éric Daigneault lists wrote: > > >> When creating a class with data members but no __init__ method. Python >> deals differently with data members that are muatable and immutables. >> > > no, it doesn't. it's your code tha

python class instantiation

2006-10-23 Thread Éric Daigneault lists
Got a question for you all... I noticed a behaviour in python class creation that is strange, to say the least. When creating a class with data members but no __init__ method. Python deals differently with data members that are muatable and immutables. Ex: class A(object): stringData = "W