adriank / ObjectPath

The agile query language for semi-structured data
http://objectpath.org
MIT License
380 stars 93 forks source link

typo in example #11

Closed mateuszklimek closed 10 years ago

mateuszklimek commented 10 years ago

I think tree=Tree({a:1}) should be tree=Tree({'a':1}) :)

Also I was having troubles with printing tree, getting error like:

>>> tree
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/site-packages/objectpath/core/interpreter.py", line 523, in __repr__
    return self.__str__()
  File "/usr/local/lib/python2.7/site-packages/objectpath/core/interpreter.py", line 520, in __str__
    return "TreeObject(%s)"%str(self.tree)
AttributeError: 'Tree' object has no attribute 'tree'
adriank commented 10 years ago

Is it python or OP console?

adriank commented 10 years ago

Ah, you took PyPi version. It's heavily outdated, get newest version from github.

mateuszklimek commented 10 years ago

Ok, thanks. Some note about it would be cool, since from somebody's perspective it may look like it doesn't work :)

adriank commented 10 years ago

I'm working on new pypi egg right now:).

Greetings, Adrian Kalbarczyk

http://about.me/akalbarczyk

2014-09-03 14:28 GMT+02:00 mateuszklimek notifications@github.com:

Ok, thanks. Some note about it would be cool, since from somebody's perspective it may look like it doesn't work :)

— Reply to this email directly or view it on GitHub https://github.com/adriank/ObjectPath/issues/11#issuecomment-54288632.

adriank commented 10 years ago

OK. OP 0.3 is on PyPI now. I'm working on including interactive shell there.