<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>
<div>I think you should take a look a this talk:</div>
<div><a href="http://blip.tv/pycon-us-videos-2009-2010-2011/the-lack-of-design-patterns-in-python-2091776">http://blip.tv/pycon-us-videos-2009-2010-2011/the-lack-of-design-patterns-in-python-2091776</a></div>
<div>TL;DR: Things that require design patterns in a language like java are so simple in python that they aren't really discussed explicitly.</div>
<div><br>
</div>
<div>/Craig J</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>卐天卍 <<a href="mailto:54linhao@gmail.com">54linhao@gmail.com</a>><br>
<span style="font-weight:bold">Date: </span>Thursday, February 27, 2014 6:55 PM<br>
<span style="font-weight:bold">To: </span>"Dustin J. Mitchell" <<a href="mailto:dustin@mozilla.com">dustin@mozilla.com</a>><br>
<span style="font-weight:bold">Cc: </span>openstack <<a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a>><br>
<span style="font-weight:bold">Subject: </span>[Openstack] 回复: Python Design Patterns in OpenStack<br>
</div>
<div><br>
</div>
<div>
<div>
<div>Thanks Dustin,</div>
<div><br>
</div>
Actually, my friends learn design patterns from the source code like Java design patterns in Android.
<div><br>
</div>
<div>They also learn it from some technical blogs! But after searching "openstack design patterns" in google, there is no useful information.</div>
<div><br>
</div>
<div>I am wondering whether the openstack developers will take some notes relevant to design patterns.</div>
<div>I think it can help the beginners to read openstack source code.</div>
<div><br>
</div>
<div><br>
</div>
<div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ 原始邮件 ------------------</div>
<div style="font-size: 12px;background:#efefef;padding:8px;">
<div><b>发件人:</b> "Dustin J. Mitchell"<dustin@mozilla.com>; </dustin@mozilla.com></div>
<div><b>发送时间:</b> 2014年2月27日(星期四) 晚上9:38</div>
<div><b>收件人:</b> "54linhao"<<a href="mailto:54linhao@gmail.com">54linhao@gmail.com</a>>;
</div>
<div><b>抄送:</b> "openstack"<openstack@lists.openstack.org>; </openstack@lists.openstack.org>
</div>
<div><b>主题:</b> Re: [Openstack] Python Design Patterns in OpenStack</div>
</div>
<div><br>
</div>
----- Original Message -----<br>
> Hi, guys:<br>
> I am learning Python and Design Patterns, I want to know how Design Patterns<br>
> can be used in real world project especially python project.<br>
> <br>
> I know OpenStack is developed using python. So is there some materials of<br>
> Design Patterns used in OpenStack?<br>
<br>
Design patterns tend to be fairly abstract concepts, and become part of the general design of a project, rather than being documented explicitly.  So it may be more instructive for you to look for them yourself.<br>
<br>
As an example, the way that managers are specified in the configuration files to change the behavior of services is an example of a pattern - which one?<br>
<br>
You may also want to look at some smaller Python projects - perhaps discovered by shopping around the cheese shop - to see where they have or have not used patterns, and maybe even practice applying a pattern or two where you think it would improve the project.<br>
<br>
Dustin<br>
</div>
</div>
</span>
</body>
</html>