batavia
batavia copied to clipboard
Complete implementations of Python builtins
batavia/core/builtins.js is an implementation of all the Python builtins - methods like print(), input(), list(), abs(), min() and so on.
An implementation of these builtins is required.
i'm going to implement filter()
I'm going to work on reversed() 💥
I will implement list()
also doing map()
I'm going to work on len()
Going to work on this issue, is there any particular method that is needed ASAP? otherwise I'll pick one and post.
working on set()
working on oct()
working on all()
working on isinstance()
I m work beginning
Which builtins have yet to be implemented?
@asherScott At the very least, the methods in this file whose implementation is nothing more than throw NotImplmentedError. There are a couple of methods that internally throw NotImplementedError as well, for certain subsets of behavior (e.g., iter with 2 arguments).
I am working on implementing ascii in batavia/core/builtins.js.
I'm dibbing byte, bytearray, and adding to Byte and Bytearray, which depend on each other enough that it doesn't make sense to work on one and not the others.
I've opened a (so far) empty PR to track progress of my work: https://github.com/pybee/batavia/pull/221
Progressing on bytes by vendoring the Buffer JS library, stalled on bytearray because Buffer is mutable, but fixed-length. I'll keep reporting.
Hey @freakboy3742 the link in this (https://github.com/pybee/batavia/issues/47#issuecomment-230678203) points to 404 error page.
@shyam114 Thanks - I've just corrected the link.
Working on max() and min()
Dibbing str(). Currently batavia has implemented the Python2 version of str(), and we want the Python3 version. Taking it over because it fits neatly with the work I'm doing in bytes().
@greeve hey- are you still working on ascii? I've also started work on it, not realizing you had claimed it already.
@thewus - are you still working on len()/__len__? I'd grab that one otherwise.
Sorry for the delayed response. I started but didn't finish implementing ascii. Go ahead with yours.
Thanks, Greg
On Sat, Nov 5, 2016 at 8:20 AM, Daniel Rios [email protected] wrote:
@greeve https://github.com/greeve hey- are you still working on ascii? I've also started work on it, not realizing you had claimed it already.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pybee/batavia/issues/47#issuecomment-258614524, or mute the thread https://github.com/notifications/unsubscribe-auth/AFl-IEZrHDT4yHr5B6HF-0la_UQ5yGhtks5q7JCkgaJpZM4IGM-e .
I think the new link for this (#47 (comment)) is here. Appears to have been moved in the last month or so.
Hi. First time contributor. I was looking for a function to work on implementing, but the previous link provided by @freakboy3742 no longer exists. Is there a list of functions currently up for grabs?
@matthewphillips The builtins are no longer in a single file; this directory contains all the builtins. If you search the files in that directory for "throw new exceptions.NotImplementedError" you'll get the list of stuff that is outstanding.
Going to work on bytearray and bytes constructor overloads with int arguments.
Is this still active? I would like to work on reversed() and sorted().
I think that reversed() and sorted() are already implemented:
https://github.com/pybee/batavia/blob/master/batavia/builtins/sorted.js
https://github.com/pybee/batavia/blob/master/batavia/builtins/reversed.js
Not that they couldn't be improved.
Hi there, working on issubclass()