| « 0.2-rc1 | Subway's new Ajax framework » |
Psst...CrackAJAX is in SVN.
http://svn.subway.python-hosting.com/crackajax/trunk
For some reason, itunes.py doesn't have remote_eval functionality in Opera. It used to work, I swear...I just broke it...
2 comments
I made a small patch to py2js to allow for augmented assignment. Unfortunately that file causes a problem when using svn diff as svn:eol-style == 'lf'. When I use svn diff I get this
C:\Tmp\crackajax>svn diff
svn: 'py2js.py' has unknown value for svn:eol-style property
Probably the text files should have svn:eol-style set to native
anyhow here's the difference
74a75,80
def process_augAssign(self, node):<br /> lval = node.node<br /> if lval.__class__ == ast.AssTuple:<br /> return "// xxx: can't assign tuples yet"<br /> else:<br /> return self.python2js(lval) + node.op + self.python2js(node.expr) + ";" + os.linesep<br />123a130,134
elif nodetype == ast.AugAssign:
parsechildren = False
#jsbuf.write(self.python2js(node.nodes[0]) + " = " + self.python2js(node.expr))
#closechar = ";" + os.linesep
jsbuf.write(self.process_augAssign(node))
I made a small patch to py2js to allow for augmented assignment. Unfortunately that file causes a problem when using svn diff as svn:eol-style == 'lf'. When I use svn diff I get this
C:\Tmp\crackajax>svn diff
svn: 'py2js.py' has unknown value for svn:eol-style property
Probably the text files should have svn:eol-style set to native
anyhow here's the ordinary difference
74a75,80
def process_augAssign(self, node):<br /> lval = node.node<br /> if lval.__class__ == ast.AssTuple:<br /> return "// xxx: can't assign tuples yet"<br /> else:<br /> return self.python2js(lval) + node.op + self.python2js(node.expr) + ";" + os.linesep<br />123a130,134
elif nodetype == ast.AugAssign:
parsechildren = False
#jsbuf.write(self.python2js(node.nodes[0]) + " = " + self.python2js(node.expr))
#closechar = ";" + os.linesep
jsbuf.write(self.process_augAssign(node))