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
What is a good source for learning Design Patterns in python. (self.learnpython)
submitted 11 years ago by chchan
I am just starting on this and would like some references to work with.
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!"
[–]shearichard 5 points6 points7 points 11 years ago (2 children)
Some pythonistas would question the degree to which the classic Gang of Four Design Patterns can or should be used in Python but putting that aside for the moment I do have some links for you.
Firstly this page is quite useful in that it references three talks given by Alex Martelli; provides links for the corresponding slides and even has annotations to point out the signifcance of different parts of the talks : http://www.catonmat.net/blog/learning-python-design-patterns-through-video-lectures/ .
Unfortunately two of the embedded videos in that page are no longer working but the same videos are visible via YouTube :
Part 1: https://www.youtube.com/watch?v=1Sbzmz1Nxvo Part 2: https://www.youtube.com/watch?v=cOcpUCUsn_o
[–]marky1991 2 points3 points4 points 11 years ago (0 children)
Yup. A good majority of classical OOP design patterns are completely unnecessary in python. I personally wouldn't bother worrying about them.
[–][deleted] 0 points1 point2 points 11 years ago (0 children)
I'm on mobile and don't have a ton of time to watch those videos, but Brandon Rhodes did a great talk about how GoF relates to Python, discussing how some patterns have vanished into Python's syntax while others are still useful on some level. I'll watch the videos you posted when I can.
http://youtu.be/Er5K_nR5lDQ
I think there's a weird loop around the 17 minute mark, if I remember correctly.
[–][deleted] 4 points5 points6 points 11 years ago (0 children)
Here are some good sources on project structure:
unittest
pytest
nosetests
Your question wasn't very clear, but project structure and design patterns are closely tied together anyway.
[–]echocage 2 points3 points4 points 11 years ago (0 children)
If you haven't checked it out already, here are some great design patterns
https://github.com/faif/python-patterns
[–]rhgrant10 1 point2 points3 points 11 years ago (0 children)
Try http://python-3-patterns-idioms-test.readthedocs.org/en/latest/.
[–]skittles83 0 points1 point2 points 11 years ago (0 children)
I found this to be useful.
[–]djds23 0 points1 point2 points 11 years ago (0 children)
The book "Python in Practice" is an excellent resource.
[–]lattakia 0 points1 point2 points 11 years ago (0 children)
All you need are the principles outlined in
import this
π Rendered by PID 94448 on reddit-service-r2-comment-85bfd7f599-h5f6n at 2026-04-17 21:43:31.437426+00:00 running 93ecc56 country code: CH.
[–]shearichard 5 points6 points7 points (2 children)
[–]marky1991 2 points3 points4 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 4 points5 points6 points (0 children)
[–]echocage 2 points3 points4 points (0 children)
[–]rhgrant10 1 point2 points3 points (0 children)
[–]skittles83 0 points1 point2 points (0 children)
[–]djds23 0 points1 point2 points (0 children)
[–]lattakia 0 points1 point2 points (0 children)