Re: [Tutor] Urgent Help Required

2012-02-04 Thread Dave Angel
On 02/04/2012 08:17 AM, Zafrullah Syed wrote: Hi, I need urgent help: I am unable to commit code to svn, I am getting this warning: *svn: Commit failed (details follow):* *svn: Commit blocked by pre-commit hook (exit code 1) with output:* *:17: Warning: 'with' will become a reserved keyword in

[Tutor] Urgent Help Required

2012-02-04 Thread Zafrullah Syed
Hi, I need urgent help: I am unable to commit code to svn, I am getting this warning: *svn: Commit failed (details follow):* *svn: Commit blocked by pre-commit hook (exit code 1) with output:* *:17: Warning: 'with' will become a reserved keyword in Python 2.6* *writeConf.py:17: invalid syntax* *

Re: [Tutor] urgent help required! invalid syntax

2011-02-18 Thread James Reynolds
There's a few things I've noticed: 1. I would recommend using an IDE of some sort. I copy and pasted this into eclipse, and it told me straight away that you had a parenthesis problem on this line: d1=(log(s/x)+((r+v**2/2)*t)/(v*sqrt(t)) 2. Your function "dividend" isn't returning a value. 3. Un

Re: [Tutor] urgent help required! invalid syntax

2011-02-18 Thread Steven D'Aprano
lim chee siong wrote: > > > Hi, > I was writing a module for the black-scholes pricing model in python, but I > keep getting this error message: > Traceback (most recent call last): File "", line 1, in File > "C:\Python26\lib\blackscholes.py", line 25d2=d1-v*sqrt(t) Please COPY A

[Tutor] urgent help required! invalid syntax

2011-02-18 Thread lim chee siong
Hi, I was writing a module for the black-scholes pricing model in python, but I keep getting this error message: Traceback (most recent call last): File "", line 1, in File "C:\Python26\lib\blackscholes.py", line 25d2=d1-v*sqrt(t) This is the code in my blackscholes.py file:#Black

Re: [Tutor] urgent help required! invalid syntax

2011-02-18 Thread Timo
On 18-02-11 09:42, lim chee siong wrote: > > > Hi, > > I was writing a module for the black-scholes pricing model in python, > but I keep getting this error message: > > Traceback (most recent call last): > File "", line 1, in > File "C:\Python26\lib\blackscholes.py", line 25 > d2=d1-v*sqrt(t) Tha