New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Built-in functions porting progress #11
Comments
Beware: some of these procedures are not yet pushed to the repo. |
Yay! 😀👍 |
About the
Next, I 'd say that some of these functions are alreadly implememented by nim itself:
Then, there are still some of them having behaviors that are similar but not the same a bit:
Finally here is a suggestion: |
I'd made a comment in Yardanico/nimpylib#11 But then I found that this types.nim exports a `ascii` However in Python ascii function doesn't the same as str, see https://docs.python.org/3/library/functions.html#ascii
abs()
all()
any()
ascii()
bin()
bool()
note: calledtoBool
in pylibNot really possiblebreakpoint()
bytearray()
bytes()
callable()
chr()
classmethod()
compile()
complex()
delattr()
dict()
dir()
divmod()
enumerate()
Can't be implementedeval()
Can't be implementedexec()
filter()
float()
note: it's calledtoFloat
in pylibformat()
frozenset()
getattr()
Can't be implementedglobals()
hasattr()
hash()
help()
hex()
id()
currently uses unsafeAddr, maybe we can use something else?input()
int()
note: it's calledtoInt
in pylibisinstance()
issubclass()
iter()
len()
list()
Can't be implementedlocals()
map()
max()
memoryview()
min()
next()
object()
oct()
open()
ord()
pow()
print()
property()
range()
repr()
reversed()
round()
set()
setattr()
slice()
sorted()
staticmethod()
str()
sum()
super()
tuple()
type()
vars()
zip()
__import__()
The text was updated successfully, but these errors were encountered: