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
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*
*
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
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
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
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