I verified that the example is fine and went ahead closing the ticket.
Ralf





----- Original Message ----
From: Daniel James <daniel_ja...@fmail.co.uk>
To: cplusplus-sig@python.org
Sent: Wednesday, August 5, 2009 11:47:58 AM
Subject: [C++-sig] Documentation bug

Hi,

Trac ticket 1890, 'Missing parameters in example code' looks like a
pretty trivial fix, if someone can confirm that it's correct, I'll
make the change if no one else can.

https://svn.boost.org/trac/boost/ticket/1890

> On the page:
>
> http://www.boost.org/doc/libs/1_35_0/libs/python/doc/tutorial/doc/html/python/embedding.html
>
> object ignored = exec("hello = file('hello.txt', 'w')\n"
>
>     "hello.write('Hello world!')\n"
>         "hello.close()", main_namespace);
>
> should be:
>
> object ignored = exec("hello = file('hello.txt', 'w')\n"
>
>     "hello.write('Hello world!')\n"
>         "hello.close()", main_namespace, main_namespace);

thanks,

Daniel
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to