Yes, all SDKs are generated from the original Go Code, where this is facilitated by interfaces which were not properly translated into python namespaces/packages. It is one of the reasons I'm migrating from python to TypeScript because in TS I do not have to deal with long names so often.
r
rhythmic-branch-12845
02/22/2023, 3:14 AM
are you saying that the translation is somehow done properly in TS, and that the TS side of things gets more love vs Python?
b
billowy-army-68599
02/22/2023, 7:36 AM
Yes, all SDKs are generated from the original Go Code, where this is facilitated by interfaces which were not properly translated into python namespaces/packages
this isn’t correct.
The general reason the Python type system is as it is is because of the way the Python type system works.
There is an upcoming project to convert python’s typings to `TypedDict`: https://github.com/pulumi/pulumi/issues/11732
Typescript doesn’t get more love than the other languages, it’s just the case that TS is good at expressing the complex types needed
billowy-army-68599
02/22/2023, 7:37 AM
ultimately, Python’s type system is bolted on to the language
billowy-army-68599
02/22/2023, 7:37 AM
I’m sure there are ways that we could have improved the python SDK before typed dict, but typed dict is going to dramatically improve things
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.