GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: a ruby-to-pyc compiler
Clone URL: git://github.com/why/unholy.git
 * lib/unholy/pyasm.rb: the `unpop` logic was causing trouble in simpler 
 scripts.
 * python/Kernel.py: allow no args to `puts`.
why (author)
Mon May 05 09:50:23 -0700 2008
commit  31dc98d7cedff4745bdd9f5deca8913d3329af84
tree    ea4bac4c25bed8d5b9dd5602cd5c25eef62b6789
parent  260c68c75ef81e442a99d78e2dd9d75da19dc321
...
202
203
204
205
 
206
207
208
...
202
203
204
 
205
206
207
208
0
@@ -202,7 +202,7 @@ class Pyasm
0
     @nopop = 2
0
   end
0
   def pop
0
- pop_top unless @nopop > 0
0
+ pop_top # unless @nopop > 0
0
   end
0
   def opt_eq arg
0
     compare_op :==
...
1
2
 
...
1
2
3
0
@@ -1,2 +1,3 @@
0
 def puts(*args):
0
   for x in args: print x
0
+ if not args: print

Comments

    No one has commented yet.