Today (turns out to be intrinsics day :slightly_sm...
# python-contributors
s
Today (turns out to be intrinsics day 🙂): • Worked with try-catch a bit, bumped into many problems. • The first one was with unsupported isinstance check, supported it (two intrinsics), +15 box tests pass. • The second one was with secondary constructors. Tried to continue Piotr's PR, added some workarounds, but always bumped into some more problems. The last problem was with not working super and this that some secondary constructors can have at the same time. Started over and searched out that Python supports creating an uninitialized object via
__new__
, so was able to implement Python-compatible variant of
Object_create
intrinsic. Looks like the current state is working, but maybe we could make compilation more python-ish in the future if we want. +47 box tests pass (we have 1999/5787 passing now 😅). Next time: • Maybe some more unimplemented intrinsics. • Continue with IrTry but there can be some more blockers on the way.
👏 1
p
Wow, great that you found this ___new__ thing! And 1999 indeed looks nice :D great_ job Sergei! Looks exciting!
🙏 1
🦜 1
s
searching "python create empty object of type" didn't give me much: https://stackoverflow.com/questions/19476816/creating-an-empty-object-in-python but "python create object without calling init" worked out 😎: https://stackoverflow.com/a/2169191/6639500
🤣 1