__import__ |
? |
Need to see how easy this would be to implement with the import system. |
abs |
0 |
|
all |
0 |
|
ascii |
0 |
|
any |
0 |
|
bin |
0 |
Not demonstrably parsing binary data in the first place. |
bool |
3 |
|
bytearray |
0 |
very low priority since any scripting doing this will probably use the host runtime's own data types. |
bytes |
|
very low priority since any scripting doing this will probably use the host runtime's own data types. |
breakpoint |
-1 |
A major foul in an embedded interpreter, but we'll probably give an interpreter user hook to react to this. |
callable |
2 |
Doesn't exist but appears trivial to support. |
chr |
0 |
|
classmethod |
-1 |
Would rather focus on class method decorator |
compile |
-1 |
It's bad enough to use an embedded interpreter but arbitrary code execution is even worse. Probably create a callback hook for how to react with reference on how to compile if that's what you want to do!. |
complex |
0 |
No complex number support at all. |
dict |
1 |
Dictionaries have basic functionality. The dict() function itself cannot be called with arguments. |
dir |
3 |
Should even behave consistently to Python's own dir() when it comes to inheritance. |
divmod |
0 |
|
delattr |
2 |
Uses the __delattr__ dunder and should work on most .NET containers, but function not implemented |
enumerate |
1 |
Initial draft of implementation. Does not support .NET types. Needs to hit some FAANG coding interview integration tests. |
eval |
-1 |
It's bad enough to use an embedded interpreter but arbitrary code execution is even worse. Probably create a callback hook for how to react. |
filter |
0 |
|
float |
2 |
Can cast and create floats but I expect technicalities would screw up like NaN, infinity and such. |
format |
0 |
Not too keen on fulling supporting this, and I'd rather go in on f-strings. |
frozenset |
0 |
I have to compare with the regular set type. If they are the same, no probs. |
getattr |
1 |
The __getattr__ dunder is supported but we haven't implemented this actual function. |
globals |
0 |
|
hash |
2 |
We should use an object-ID-based hash like Python's default and we support hashing, but didn't make this function yet. |
hasattr |
0 |
Unlike lots of other *attr functions, we don't seem to have any plumbing for hasattr. |
help |
0 |
|
hex |
0 |
|
id |
2 |
Object ID is implemented, but this function is not. |
input |
-1 |
The embedded interpreter would need to decide how to handle this call. |
int |
3 |
|
isinstance |
3 |
A lot of pain and suffering went here and it should behave like Python's. |
issubclass |
3 |
A lot of blood and sweat went into this and it should behave like Python's. |
iter |
1 |
Iterators are a thing but next() isn't nor is this function itself. |
len |
3 |
Should also work on .NET containers. |
locals |
0 |
|
list |
2 |
Actual lists have very good support, but we think we may have missed parts of the list() function itself. |
map |
0 |
|
memoryview |
? |
Given the focus on C with memoryview, I am not sure what we'd actually do to support this. |
max |
1 |
min and max are surprisingly detailed functions! I support just basic iterators for now. |
min |
1 |
min and max are surprisingly detailed functions! I support just basic iterators for now. |
next |
2 |
The function isn't implemented itself, but all of the generator mechanisms for it are there |
object |
1 |
The function itself isn't implemented at all and I don't know about the technicalities of using it directly |
oct |
0 |
I don't know if we're even parsing octal numbers yet. |
open |
? |
We're not sure what we really want to do with file I/O. It might be restricted. We also don't yet support context managers nor Python file I/O in general |
ord |
0 |
Except lots of inconsistencies over Unicode. |
pow |
0 |
|
print |
-1 |
Printing is peculiar in an embedded runtime and this will probably defer to a user-specified callback |
property |
0 |
Will probably require a lot of scrutiny to ensure it works in the typical cases |
range |
3 |
|
repr |
2 |
The __repr__ dunde is supported but we haven't actually implemented this function. |
reversed |
2 |
It works for Python types but has not been enabled for most .NET types |
round |
0 |
|
set |
2 |
Python sets are well-supported but there's no interoperation with .NET types |
setattr |
2 |
The __setattr__ dunder is supported but we haven't implemented this actual function. |
slice |
2 |
We have slice objects and list slicing, but I haven't explored if slicing is used elsewhere, and I haven't tested crazy corner cases. |
sorted |
? |
There's some decisionmaking that has to happen first. Do we defer to .NET sorting? Mimic TimSort? |
staticmethod |
0 |
We don't support static methods yet and this could ruin things if we did. Class methods are supported. |
str |
2 |
You have to throw five million asterisks on this for Unicode alone. Strings generally work though. |
sum |
0 |
|
super |
3 |
Implemented like Python3's: horrifically. It's amazing. You should look it up. |
tuple |
2 |
You can do it but it will probably fail on technicalities. Tuples generally are supported |
type |
2 |
Exists but unconfident in fullness of implementation. This gets ugly. |
vars |
0 |
|
zip |
2 |
Needs to iterate .NET types too |