Opened 14 years ago
Closed 13 years ago
#1890 closed Bugs (invalid)
Missing parameters in example code
| Reported by: | Owned by: | Dave Abrahams | |
|---|---|---|---|
| Milestone: | Boost 1.36.0 | Component: | python USE GITHUB | 
| Version: | Boost 1.35.0 | Severity: | Problem | 
| Keywords: | Cc: | rwgk@… | 
Description
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);
Change History (2)
comment:1 by , 14 years ago
| Component: | Documentation → Python | 
|---|---|
| Owner: | changed from to | 
comment:2 by , 13 years ago
| Cc: | added | 
|---|---|
| Resolution: | → invalid | 
| Status: | new → closed | 
  Note:
 See   TracTickets
 for help on using tickets.
    

svn trunk rev. 55640 verifies that the code as shown under embedding.html compiles and runs as intended. The third argument is optional and defaults to None, which is just fine in this case. I suggest leaving the example as is. Ralf