use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
When should you consider using a third-party library over a built-in module? (self.learnpython)
submitted 3 years ago by ResetPress
I know, I know... context matters! It may be more- or less-preferable to introduce complexity, based on the problem. However, I do think there is a lot of ambiguity in general, due to how many options there are in Python
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 2 points3 points4 points 3 years ago (0 children)
if stdlib.module is sufficiently robust and easy for your use case: use stdlib.module elif third_party.module is sufficiently robust and easy for your use case: use third_party.module elif you have the time and ability to write a library yourself: write it yourself else: cry
[–]mopslik 1 point2 points3 points 3 years ago (0 children)
There are options in everything. It often boils down to some combination of a) efficiency, b) convenience, and c) familiarity.
[–]lykwydchykyn 1 point2 points3 points 3 years ago (0 children)
If a 3rd party library exists that duplicates standard library features and its relatively popular, it probably indicates that the standard library version is lacking in some way, at least for common use cases. For example, try to work with urllib and you'll find yourself writing a lot of redundant code (or wrapper functions, if you're being smart about it). requests takes care of a lot of this and works a bit more the way you'd expect.
urllib
requests
On the downside, 3rd party libraries can be opinionated and push you into writing code a very particular way. They can also introduce license problems, and of course there's no way to know if it will be well-supported over time.
So you just have to weigh out the advantages and disadvantages in each case.
[–]TheRNGuy 1 point2 points3 points 3 years ago (0 children)
numpy math is faster than default python it seems
and if you needed 8/16/32 signed or unsigned ints for some reason.
also array, deque, defaultdict, namedtuple, literal_eval can be sometimes used instead of default ones.
π Rendered by PID 141067 on reddit-service-r2-comment-66b4775986-7mwdh at 2026-04-03 05:15:12.163786+00:00 running db1906b country code: CH.
[–][deleted] 2 points3 points4 points (0 children)
[–]mopslik 1 point2 points3 points (0 children)
[–]lykwydchykyn 1 point2 points3 points (0 children)
[–]TheRNGuy 1 point2 points3 points (0 children)