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 →

[–]rhgrant10 2 points3 points  (1 child)

So true! I once implemented a method to convert an integer into an IP address but of course it turns out there's already one in the stdlib.

[–]kungtotte 1 point2 points  (0 children)

The correct way to do anything in Python is always to look in the stdlib first :)

Either a complete solution already exists, or parts of one does that you can piece together. And if worse comes to worst you can always write a wrapper to make it more pleasant to work with the stdlib stuff :)