making some language changes.

This commit is contained in:
Paul Tagliamonte 2012-12-18 21:11:38 -05:00
parent 42612456a5
commit cda5c6534b
4 changed files with 10 additions and 7 deletions

View File

@ -3,7 +3,7 @@ from hy.lang.hyobj import HYObject
class HYList(HYObject, list):
def __init__(self, nodes):
self += nodes
[self.append(node) for node in nodes]
def get_children(self):
return self

View File

@ -1,7 +1,7 @@
from hy.lang.hyobj import HYObject
class HYMap(dict, HYObject):
class HYMap(HYObject, dict):
def __init__(self, nodes):
for node in nodes:
self[node] = nodes[node]

View File

@ -8,6 +8,9 @@ else:
_str_type = unicode
class HYString(_str_type, HYObject):
class HYString(HYObject, _str_type):
def __init__(self, string):
self += string
def eval(self, ln, *args, **kwargs):
return str(self)

View File

@ -1,7 +1,7 @@
# content of: tox.ini , put in same dir as setup.py
[tox]
envlist = py27,pypy,py32,py33
# jython -- jython fails?
envlist = py27,pypy,py32
[testenv]
commands = nosetests
deps = nose
deps =
nose
setuptools