mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-17 01:51:39 +09:00
34 lines
684 B
Python
34 lines
684 B
Python
objects = [
|
|
bool,
|
|
bytearray,
|
|
bytes,
|
|
complex,
|
|
dict,
|
|
float,
|
|
frozenset,
|
|
int,
|
|
iter,
|
|
list,
|
|
memoryview,
|
|
range,
|
|
set,
|
|
str,
|
|
tuple,
|
|
object
|
|
]
|
|
|
|
header = open("generator/not_impl_header.txt")
|
|
footer = open("generator/not_impl_footer.txt")
|
|
output = open("snippets/whats_left_to_implement.py", "w")
|
|
|
|
output.write(header.read())
|
|
output.write("expected_methods = {\n")
|
|
|
|
for obj in objects:
|
|
output.write(f" '{obj.__name__}': ({obj.__name__}, [\n")
|
|
output.write("\n".join(f" '{attr}'," for attr in dir(obj)))
|
|
output.write("\n ])," + ("\n" if objects[-1] == obj else "\n\n"))
|
|
|
|
output.write("}\n\n")
|
|
output.write(footer.read())
|