Documentation bug

View: New views
2 Messages — Rating Filter:   Alert me  

Documentation bug

by Daniel James :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
http://mail.python.org/mailman/listinfo/cplusplus-sig

Re: Documentation bug

by Ralf W. Grosse-Kunstleve :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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





----- Original Message ----
From: Daniel James <daniel_james@...>
To: cplusplus-sig@...
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@...
http://mail.python.org/mailman/listinfo/cplusplus-sig

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