Thank you Wayne, Kent,
it's easy to see clearly once told what to focus on ;-)
David
On 07/02/10 00:35, David wrote:
Hello again,
in Knowlton's 2008 book "Python: Create, Modify, Reuse" the author makes
frequent use of the term -1 in his code, but doesn't tell to what aim.
For want of search
Hi,
Hope you will be fine and good.
Following is a snippet of python code i am using for a regression testing.
def StartProc(dir, parm):
global proc
proc_log = open(dir + os.sep + "MyLog.txt","w") #new path for each file
if parm:
proc = subprocess.Popen(path, 0, None, s
"Wayne Watson" wrote
I should have installed NumPy before MPL. How do I uninstall it. I'm
pretty sure it was an msi file.
In that case it should be listed under Add/Remove programs in Control
Panel.
Alan G
___
Tutor maillist - Tutor@python
"David" wrote in message news:4b6d37e4.9050...@gmx.net...
matplotlib. I guess the reason why I discarded it before is that I
understood matplotlib to be a curve plotting tool, and not so much a
tool to draw graphics. I will investigate!
It is but a single point on a an axis is a pretty basic
On Sat, Feb 6, 2010 at 11:35 AM, David wrote:
> Hello again,
>
> in Knowlton's 2008 book "Python: Create, Modify, Reuse" the author makes
> frequent use of the term -1 in his code, but doesn't tell to what aim. For
> want of search terms Google is not helpful. Could someone please enlighten
> me b
On Sat, Feb 6, 2010 at 10:35 AM, David wrote:
> Hello again,
>
> in Knowlton's 2008 book "Python: Create, Modify, Reuse" the author makes
> frequent use of the term -1 in his code, but doesn't tell to what aim. For
> want of search terms Google is not helpful. Could someone please enlighten
> me
Hello again,
in Knowlton's 2008 book "Python: Create, Modify, Reuse" the author makes
frequent use of the term -1 in his code, but doesn't tell to what aim.
For want of search terms Google is not helpful. Could someone please
enlighten me by means of a one-liner as a reply?
Thank you!
David
On Fri, Feb 5, 2010 at 12:29 PM, Owain Clarke wrote:
>
>
> Seems to be a bit of a consensus here about dictionaries. Let me just
> restate my reluctance, using examples from Spanish.
>
> esperar = to hope
> esperar = to wait
> tambien = too [i.e. also]
> demasiado = too [i.e. excessive]
>
> So
I should have installed NumPy before MPL. How do I uninstall it. I'm
pretty sure it was an msi file. My guess is to go to site-packages, and
delete individual pieces. Possibly these:
C:\Python25\Lib\site-packages\pylab.py
C:\Python25\Lib\site-packages\matplotlib
C:\Python25\Lib\site-packages\mp
On Sat, Feb 6, 2010 at 9:19 PM, spir wrote:
> On Sat, 6 Feb 2010 20:18:53 +0900
> Benno Lang wrote:
>
>> > if ((self.start_dot.x > self.end_dot.x) and (self.start_dot.y !=
>> > self.end_dot.y)):
>> (1) Are you sure you want all those superfluous parentheses?
>
> @ Benno: I do not find the _inne
On Sat, 6 Feb 2010 20:18:53 +0900
Benno Lang wrote:
> > if ((self.start_dot.x > self.end_dot.x) and (self.start_dot.y !=
> > self.end_dot.y)):
> (1) Are you sure you want all those superfluous parentheses?
@ Benno: I do not find the _inner_ ones superfluous at all...
@ Stijn: When you ask abo
On Fri, 05 Feb 2010 11:29:30 +
Owain Clarke wrote:
> On Thu, Feb 4, 2010 at 5:43 AM, Owain Clarke wrote:
> >
> >> My question is, that if I proceed like this I will end up with a single
> >> list
> >> of potentially several hundred strings of the form "frword:engword". In
> >> terms of p
On Friday February 5 2010 12:29:30 Owain Clarke wrote:
> What a helpful forum - much thanks to all who've commented. Seems to be
> a bit of a consensus here about dictionaries. Let me just restate my
> reluctance, using examples from Spanish.
>
> esperar = to hope
> esperar = to wait
You could
On Sat, Feb 6, 2010 at 7:56 PM, Stijn . wrote:
> class Line(): #The class
> def __init__( self, start_dot, end_dot, width): #init function
> self.start_dot = start_dot
> self.surface = pygame.Surface((w, h), SRCALPHA)
> self.surface.fill((0,0,0,0))
> self.end_do
First of all I'd like to say that I'm new to python, and new to mailinglists.
So if I make any mistakes, please correct me.
Now, onto my issue: I am trying to put an "else:" statement inside a class:
class Line(): #The class
def __init__( self, start_dot, end_dot, width): #init function
* Antonio de la Fuente [2010-02-05 16:54:59 +]:
> Date: Fri, 5 Feb 2010 16:54:59 +
> From: Antonio de la Fuente
> To: Python Tutor mailing list
> Subject: [Tutor] Simple variable type question
> Organization: (muybien.org)
> User-Agent: Mutt/1.5.20 (2009-06-14)
> Message-ID: <2010020516
On Thu, Feb 4, 2010 at 5:43 AM, Owain Clarke wrote:
My question is, that if I proceed like this I will end up with a single list
of potentially several hundred strings of the form "frword:engword". In
terms of performance, is this a reasonable way to do it, or will the program
increasingly sl
Hello Alan,
thanks for the guidance, I will then dig a little deeper into
matplotlib. I guess the reason why I discarded it before is that I
understood matplotlib to be a curve plotting tool, and not so much a
tool to draw graphics. I will investigate!
David
On 06/02/10 17:15, Alan Gauld w
"David" wrote
is to create a graph in which on the horizontal axis the student's
precentile (i.e. performance vis-a-vis her classmates) is indicated by
means of a needle stuck into the axis:
O (63%)
|__|__|
| |
0 100
I suspect that I cann
Dear List,
given a list of scores (n = 20, say) a group students received in an
exam, I can use
sarray = [list of scores]
score = student's score
scipy.stats.percentileofscore(sarray, score, kind='mean')
to calculate the percentile for a given student. What I would like to do
is to create a
20 matches
Mail list logo