Re: Python 3.5.1 Not Working

2016-05-13 Thread Aidan Silcock via Python-list
Sent from Yahoo Mail on Android On Fri, 13 May, 2016 at 16:59, Aidan Silcock wrote: HelloI have tried to download python 3.5.1 today and it has downloaded but each time I try to open it it says I need to Modify, Repair or Uninstall the program.I have tried repairing it neumerous times

Re: Functions continuing to ru after returning something?

2010-08-30 Thread Aidan
Bradley Hintze wrote: I may be having a brain fart, but is it at all possible to have a function first return a value then continue its calculation. Like this simple example: my_var = 5 def my_function(): return my_var my_var +=1 This obviously won't work as written but is there a cleav

Re: Hi, I am getting the following errorTypeError: sort() takes no keyword arguments

2008-10-16 Thread Aidan
gaurav kashyap wrote: Hi all, I am using python version 2.3.in a program , I have called the sort function.Wherein, a.sort(reverse=True) is giving the following error: TypeError: sort() takes no keyword arguments. It works in python 2.4,What can be the alternative in python 2.3 Thanks , Gaurav

Re: Pr. Euler 18, recursion problem

2008-10-06 Thread Aidan
process wrote: On Oct 6, 8:13 am, Aidan <[EMAIL PROTECTED]> wrote: process wrote: I am trying to solve project euler problem 18 with brute force(I will move on to a better solution after I have done that for problem 67). http://projecteuler.net/index.php?section=problems&id=18 Howev

Re: Pr. Euler 18, recursion problem

2008-10-05 Thread Aidan
process wrote: I am trying to solve project euler problem 18 with brute force(I will move on to a better solution after I have done that for problem 67). http://projecteuler.net/index.php?section=problems&id=18 However I can't get the recursive function right. I always have to use return right?

Re: Python arrays and sting formatting options

2008-09-30 Thread Aidan
Ivan Reborin wrote: Hello everyone, I was wondering if anyone here has a moment of time to help me with 2 things that have been bugging me. 1. Multi dimensional arrays - how do you load them in python For example, if I had: --- 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 --- with "i"

Re: how can i check whether a variable is iterable in my code?

2008-09-20 Thread Aidan
satoru wrote: hi, all i want to check if a variable is iterable like a list, how can i implement this? this would be one way, though I'm sure others exist: if hasattr(yourVar, '__iter__'): # do stuff -- http://mail.python.org/mailman/listinfo/python-list

Re: Hrounding error

2008-06-17 Thread Aidan
[EMAIL PROTECTED] wrote: Hi, I am new to python. I was messing around in the interperator checking out the floating point handling and I believe I may have found a rounding bug: 234 - 23234.2345 -23000.2344 This is not correct by my calculations. I am using python 2.5.2 in ubuntu 8

Re: Decimals in python

2008-06-15 Thread Aidan
[EMAIL PROTECTED] wrote: Hello. New to using Python. Python automatically round off watver i calculate using the floor function. How wud i make the exact value appear? Tried out fabs() in the math library but still confused. Cud some1 elaborate on it. If you're working with integers, the resul

Re: boolian logic

2008-06-13 Thread Aidan
marc wyburn wrote: HI all, I'm a bit stuck with how to work out boolian logic. I'd like to say if A is not equal to B, C or D: do something. I've tried if not var == A or B or C: and various permutations but can't seem to get my head around it. I'm pretty sure I need to know what is calula

Re: Comments on my first script?

2008-06-13 Thread Aidan
Chris wrote: On Jun 13, 9:38 am, Phillip B Oldham <[EMAIL PROTECTED]> wrote: Thanks guys. Those comments are really helpful. The odd semi-colon is my PHP background. Will probably be a hard habbit to break, that one! ;) If I do accidentally drop a semi-colon at the end of the line, will that cau

Re: Summing a 2D list

2008-06-12 Thread Aidan
Aidan wrote: Mark wrote: John, it's a QuerySet coming from a database in Django. I don't know enough about the structure of this object to go into detail I'm afraid. Aidan, I got an error trying your suggestion: 'zip argument #2 must support iteration', I don't kn

Re: Summing a 2D list

2008-06-12 Thread Aidan
Mark wrote: John, it's a QuerySet coming from a database in Django. I don't know enough about the structure of this object to go into detail I'm afraid. Aidan, I got an error trying your suggestion: 'zip argument #2 must support iteration', I don't know what this m

Re: Summing a 2D list

2008-06-12 Thread Aidan
Mark wrote: Hi all, I have a scenario where I have a list like this: UserScore 1 0 1 1 1 5 2 3 2 1 3 2 4 3 4 3 4 2 And I need to add up th

Re: Dynamic HTML from Python Script

2008-06-10 Thread Aidan
Aidan wrote: asdf wrote: On Wed, 11 Jun 2008 11:20:48 +1000, Aidan wrote: asdf wrote: Well, there's a few ways you could approach it. You could create a cgi program from your script - this is probably the solution you're looking for. Output from the script does come up very of

Re: Dynamic HTML from Python Script

2008-06-10 Thread Aidan
asdf wrote: On Wed, 11 Jun 2008 11:20:48 +1000, Aidan wrote: asdf wrote: Well, there's a few ways you could approach it. You could create a cgi program from your script - this is probably the solution you're looking for. Output from the script does come up very often. Ther

Re: Dynamic HTML from Python Script

2008-06-10 Thread Aidan
asdf wrote: Well, there's a few ways you could approach it. You could create a cgi program from your script - this is probably the solution you're looking for. Output from the script does come up very often. There is a new output every 10 secs and it's possible that the script might be run i

Re: Dynamic HTML from Python Script

2008-06-10 Thread Aidan
asdf wrote: I have a python script whose output i want to dynamically display on a webpage which will be hosted using Apache. How do I do that? thanks Well, there's a few ways you could approach it. You could create a cgi program from your script - this is probably the solution you're looki

Re: Python, subprocess, dump, gzip and Cron

2008-06-10 Thread Aidan
Sebastian "lunar" Wiesner wrote: Aidan <[EMAIL PROTECTED]> at Dienstag 10 Juni 2008 07:21: TT wrote: On Jun 10, 2:37 pm, Aidan <[EMAIL PROTECTED]> wrote: Hi, I'm having a bit of trouble with a python script I wrote, though I'm not sure if it's rela

Re: Python, subprocess, dump, gzip and Cron

2008-06-09 Thread Aidan
TT wrote: On Jun 10, 2:37 pm, Aidan <[EMAIL PROTECTED]> wrote: Hi, I'm having a bit of trouble with a python script I wrote, though I'm not sure if it's related directly to python, or one of the other software packages... The situation is that I'm trying to create a

Python, subprocess, dump, gzip and Cron

2008-06-09 Thread Aidan
Hi, I'm having a bit of trouble with a python script I wrote, though I'm not sure if it's related directly to python, or one of the other software packages... The situation is that I'm trying to create a system backup script that creates an image of the system, filters the output though gzip

Re: Password, trust and user notification

2006-12-14 Thread Aidan Steele
On 14 Dec 2006 15:22:35 -0800, placid <[EMAIL PROTECTED]> wrote: Dennis Lee Bieber wrote: > On Thu, 14 Dec 2006 11:44:14 +1100, "Aidan Steele" <[EMAIL PROTECTED]> > declaimed the following in gmane.comp.python.general: > > > While what you said is technical

Re: Password, trust and user notification

2006-12-13 Thread Aidan Steele
On 12/14/06, Gabriel Genellina <[EMAIL PROTECTED]> wrote: At Wednesday 13/12/2006 21:44, Aidan Steele wrote: >While what you said is technically correct, I think you misread >their original question. They want to send email *from* the Gmail >account *to* the work account. I su

Re: Password, trust and user notification

2006-12-13 Thread Aidan Steele
send email *from* the Gmail account *to* the work account. I suggested that he use Gmail's SMTP server to send the email. Aidan Steele. -- http://mail.python.org/mailman/listinfo/python-list

Re: Password, trust and user notification

2006-12-13 Thread Aidan Steele
smtplib, just use the values found in that provided URL. Hope this helps, Aidan Steele. -- http://mail.python.org/mailman/listinfo/python-list

Re: speed of python vs matlab.

2006-12-13 Thread Aidan Steele
lman/listinfo/python-list Have you considered looking into Psyco? (http://psyco.sourceforge.net/) For all the numeric operations that image processing algorithms entail, such a tool will probably make a tremendous difference in terms of speed of execution for you. Do yourself a favour and check it out

Re: Password, trust and user notification

2006-12-11 Thread Aidan Steele
Hi, As you said yourself -- it's all about trust. If this person knows nothing of programming, then (s)he is obviously at the mercy of the programmers, which is why we have warranties in commerical software, reputuations to uphold in the open source arena and malware elsewhere. ;-) Sure, there wi

Re: Tarfile .bz2

2006-12-11 Thread Aidan Steele
x27;t want to put any hyperlinks in this email lest it is marked as spam. Hope I've helped, Aidan. On 11 Dec 2006 17:32:58 -0800, Jordan <[EMAIL PROTECTED]> wrote: So that would explain why a tar.bz2 archive can't be appended to wouldn't it... And also explain why winrar

Re: enable pop3 for gmail from python

2006-12-11 Thread Aidan Steele
He wants to automate the process of enabling POP access to Gmail, not access his Inbox via POP (which he can already do). That much said, a quick looksee at the Google site shows no mention of an automated method of doing this. That is not to say it is impossible, but it may be infeasible to do as

Re: Thread termination

2006-10-13 Thread Aidan Steele
G'day,As far as my understanding pertains, the thread dies shortly after the function returns (ends). You can call "return" anywhere within the function and kill the thread in the middle of its execution.On 13 Oct 2006 02:38:28 -0700, Teja <[EMAIL PROTECTED]> wrote: Hi all,Does any one know how to

Re: Earthquake and Tornado Forecasting Programs June 13, 2006

2006-06-14 Thread Aidan Karley
e cross-post filtering code ... I'll leave the lot in. -- Aidan Karley, FGS Aberdeen, Scotland Written at Wed, 14 Jun 2006 08:14 +0100, but posted later. -- http://mail.python.org/mailman/listinfo/python-list

Re: EOL created by .write or .encode

2005-04-09 Thread Aidan Kehoe
Ar an naoià là de mà AibrÃan, scrÃobh Xah Lee: > If you open a file in emacs, it will open fine regardless whether the > EOL is ascii 10 or 13. (unix or mac) This is a nice feature. However, > the what-cursor-position which is used to show cursor position and the > char's ascii code, says t