Re: Problem building ObjectHandler

Posted by Erik Schlogl on
URL: http://quantlib.414.s1.nabble.com/Problem-building-ObjectHandler-tp8266p8269.html

Thanks Bojan, Luigi - switching to Python 2.6 did the trick.

Best regards,
Erik



-----Original Message-----
From: Bojan Nikolic [mailto:[hidden email]]
Sent: Friday, 14 May 2010 11:45 PM
To: [hidden email]
Cc: Erik Schlogl; [hidden email]
Subject: Re: [Quantlib-users] Problem building ObjectHandler


Luigi Ballabio <[hidden email]> writes:

> On Fri, 2010-05-14 at 14:54 +1000, Erik Schlogl wrote:
>> This looks like Python doesn’t understand the gensrc.py script. I
>> have
>> Python 3.1.2 (r312:79149, Mar 21 2010, 00:41:52) [MSC v.1500 32 bit
>> (Intel)] on win32
>
> I suggest you use a Python from the 2.x series (the current 2.6 should
> work.)  The Python 3 series is still kind of experimental.

Not just experimental, but also it intentionally breaks compatibility
with the 2.x series:

http://www.python.org/dev/peps/pep-3000/#compatibility-and-transition

In the particular case shown by Erik, I think it is the change in
meaning of "print" from a statement to a function that is breaking
things.

Best,
Bojan





--
Bojan Nikolic          ||          http://www.bnikolic.co.uk

UTS CRICOS Provider Code:  00099F
DISCLAIMER: This email message and any accompanying attachments may contain confidential information.  If you are not the intended recipient, do not
read, use, disseminate, distribute or copy this message or attachments.  If
you have received this message in error, please notify the sender immediately
and delete this message. Any views expressed in this message are those of the individual sender, except where the sender expressly, and with authority,
states them to be the views of the University of Technology Sydney. Before
opening any attachments, please check them for viruses and defects.

Think. Green. Do.

Please consider the environment before printing this email.
------------------------------------------------------------------------------

_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users