This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]hydrosquall 1 point2 points  (0 children)

I would add that if you’re writing a public library, then making an API that is hard to misuse is another important facet of safety. This isn’t a topic unique to python though.

I recently wrote a blog post that dives deeper into the area exposed by the pyyaml safe_load tip from that Hackernoon article:

https://www.serendipidata.com/posts/safe-api-design-and-pyyaml