Hey, guys:

The python.js v0.5.0 is released. https://github.com/monkeycz/python.js

Usage:
-------------------

Example 1:

// javascript code
var python = require('python.js');
var os = python.import('os');
var path = require('path');
assert(os.path.basename(os.getcwd()) == path.basename(process.cwd()));


Example 2:

## python code
def test():
    try:
        ## do samething
    except Exception as e:
        raise e
    return 'done'

// javascript code
PYMODULE.test.async = true;
PYMODULE.test(function (result, error) {
    if (!error)
        console.log(result);
});

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/9e3a6938-8f2f-4758-8502-cbe6ad0c3871%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to