Re: Friday fun: Rusty python


Baohua Yang
 

Python is a very vigorous, and it is still evolving!


On Fri, May 24, 2019 at 11:28 PM Middleton, Dan <dan.middleton@...> wrote:

I came across python like this in Indy:

 

   

    def verify_multi_sig(self, signature: str, message: bytes, pks: Sequence[str]) -> bool:     

 

[Link]

 

Are those types in the function parameters and a return type? In Python?? Yes!

Technically old news (came out in python 3.5) but still pretty uncommon to see.

 

When you combined it with

https://www.python.org/dev/peps/pep-0554/

which seeks to enhance concurrency, python starts looking just a little bit rusty. (Put down the flame throwers. I said, “a little bit.”)

 

Indy and Sawtooth are both doing a lot of python -> rust porting. Now some stronger weak typing and hope of a future concurrency model aren’t going to affect those plans, but still cool to see python’s constant evolution. Read more on python threading here.

 

You can hear from the former BDFL of Python in this October interview. He doesn’t get into any of these peps, but it’s interesting to hear him talk about governance. At the time code I link to he also talks about diversity and inclusion.

https://youtu.be/qxMcGDnT8uc?t=1382

 

 

Happy Friday,

Dan Middleton

Intel Principal Engineer 

 



--
Best wishes!

Baohua Yang

Join tsc@lists.hyperledger.org to automatically receive all group messages.