3 ms·
Good news on the generator front - VOC fully supports generators, lambdas, passing functions as arguments, and all sorts of things that Python allows but Java (
by freakboy3742 10y ago
Good news on the generator front - VOC fully supports generators, lambdas, passing functions as arguments, and all sorts of things that Python allows but Java (the language) doesn't.
As for a guide to calling Java from Python - we don't have any good documentation for this (yet), but it's entirely possible. Here's a sample Android application. If you're familiar with the Android APIs, you should be able to see the syntax conventions in place. https://gist.github.com/freakboy3742/7beb22c587e57240610777a44af645d8 https://gist.github.com/freakboy3742/7beb22c587e57240610777a...
- rtpg 10y agoOh, so you simply import java packages in the same way you import python packages? That's a pretty transparent mechanism. Thanks for the clarifications! I suppose that this is more "Python (the language) for other systems" more than "Python (the environment) for other systems". Is any of the standard library supported given this import scenario?
- freakboy3742 10y agoThe full standard library is a work in progress; at the moment, there's only a couple of key parts of sys, os, and the like. But Ouroboros (https://github.com/pybee/ouroboros https://github.com/pybee/ouroboros) is a project to develop a full standard library that can be integrated into any Python implementation. Effectively, you can use all the bits of the standard library that are written in Python by just compiling them; the rest requires native integration (which is the work in progress).
- kingosticks 10y agoThat is good news. Perhaps the website could be updated to reflect that, it might be putting people off. "there are some language features (like generators and context managers) that still need to be implemented"