leerssej / freebase-python

Automatically exported from code.google.com/p/freebase-python
Other
0 stars 0 forks source link

error in README sample code #20

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. do the first code example in the README
2. freebase.mqlread(query)
3. for album in result.album:
    print album
4. NameError: name 'result' is not defined

What is the expected output? What do you see instead?

I expected to see the list of albums, I got an error.

What version of the product are you using? On what operating system?

1.06

Please provide any additional information below.

freebase.mqlread(query)
should be 

result = freebase.mqlread(query)

Original issue reported on code.google.com by efmph...@gmail.com on 11 Aug 2011 at 2:27