1.0.4 • Published 5 years ago

pythonlang v1.0.4

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

pythonlang

Description

pythonlang's intention is to import all Python 3 Built-In Functions to Javascript, while keeping the performance hit to a minimum.

Motivation

  1. Javascript is rife with facepalm inducing quirks and unexpected behaviors
  2. Python is fun; Its built-ins are reliable, simple and consistent
  3. Therefore, translating Python's built-ins into JS will reduce the amount of facepalms and make things better overall

Rigorousness

Progress (July 26 2019)

Built-inTests written% Tests passingStatus
int603100%Stable ✅
bool560%Lacking features, stable
abs8100%Lacking features, stable
any1100%Lacking features, stable

... > 60 untouched

Known Issues

  • Strict equality doesn't work yet, eg:

    int(3) == 3
    >>> true
    
    int(3) === 3
    >>> false
  • No bundling tools

FAQ

Q: Are you really going to implement all 69 built-ins? A: Probably not. Some of them can't be implemented anyway (like classmethod), and some of them are rarely used and are too complex to justify including them (like memoryview)

Contact and Contributing

PM me at giladbrn@gmail.com if you have any questions, ideas as to what behaviors you would like to see, etc. You're welcome to submit PRs at https://github.com/giladbarnea/pythonlang.