News for hackers. Stuff that matters.
Re:Show HN: a compiler from Python syntax to JavaScript synt... by endian on Friday October 29, 2010 @04:31PM (#1848899)
Thanks. I'll change

  pj.transformations.special.Call_print
to have the emitted code check if you've defined a print function, using console.log only if you haven't.

  ((typeof print !== "undefined" && print !== null) || console.log)(...)

There are no comments on this comment yet.