Showing content from http://mail.python.org/pipermail/python-dev/attachments/20171012/785ec56b/attachment.html below:
<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 12, 2017 at 10:20 AM, Mike Miller <span dir="ltr"><<a href="mailto:python-dev@mgmiller.net" target="_blank">python-dev@mgmiller.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-"><br>
On 2017-10-12 00:36, Stéfane Fermigier wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
"An object that is not defined by its attributes, but rather by a thread of continuity and its identity." (from <a href="https://en.wikipedia.org/wiki/Domain-driven_design#Building_blocks" rel="noreferrer" target="_blank">https://en.wikipedia.org/wiki/<wbr>Domain-driven_design#Building_<wbr>blocks</a>)<br>
</blockquote>
<br></span>
Not sure I follow all this, but Python objects do have identities once instantiated. e.g. >>> id('')</blockquote><div><br></div><div>Yes, for the lifetime of the object in the Python VM.</div><div><br></div><div>But if you are dealing with objects that are persisted using some kind of ORM, ODM, OODB, then it wont work.</div><div><br></div><div>It's quite common (but not always the best solution) to use some kind of UUID to represent the identity of each entity.</div><div><br></div><div>Also, there can be circumstances where two objects can exist at the same time in the VM which represent the same object, in which case one should ensure that a == b iff a.uid == a.uid (in the case 'uid' is the attribute used to carry the unique identifier).</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">
<br></span>
I don't believe either module particularly supports or restricts immutability?</blockquote><div><br></div><div><a href="http://www.attrs.org/en/stable/examples.html#immutability">http://www.attrs.org/en/stable/examples.html#immutability</a></div><div><a href="https://www.python.org/dev/peps/pep-0557/#frozen-instances">https://www.python.org/dev/peps/pep-0557/#frozen-instances</a><br></div><div><br></div><div>Â S.</div><div>Â </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-HOEnZb"><font color="#888888"><br>
<br>
-Mike</font></span><div class="gmail-HOEnZb"><div class="gmail-h5"><br>
______________________________<wbr>_________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org" target="_blank">Python-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-dev" rel="noreferrer" target="_blank">https://mail.python.org/mailma<wbr>n/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/sfermigier%2Blists%40gmail.com" rel="noreferrer" target="_blank">https://mail.python.org/mailma<wbr>n/options/python-dev/sfermigie<wbr>r%2Blists%40gmail.com</a><br>
</div><div class="gmail-h5"><br></div></div></blockquote></div><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Stefane Fermigier - <a href="http://fermigier.com/" target="_blank">http://fermigier.com/</a> - <a href="http://twitter.com/sfermigier" target="_blank">http://twitter.com/sfermigier</a> - <a href="http://linkedin.com/in/sfermigier" target="_blank">http://linkedin.com/in/sfermigier</a><br>Founder & CEO, Abilian - Enterprise Social Software - <a href="http://www.abilian.com/" target="_blank">http://www.abilian.com/</a><br>Chairman, Free&OSS Group / Systematic Cluster - <a href="http://www.gt-logiciel-libre.org/" target="_blank">http://www.gt-logiciel-libre.org/</a><br>Co-Chairman, National Council for Free & Open Source Software (CNLL) - <a href="http://cnll.fr/" target="_blank">http://cnll.fr/</a><div>Founder & Organiser, PyData Paris - <a href="http://pydata.fr/" target="_blank">http://pydata.fr/</a><br></div><div>---</div><div><div>âYou never change things by ï¬ghting the existing reality. To change something, build a new model that makes the existing model obsolete.â <span style="font-size:12.8px">â R. Buckminster Fuller</span></div></div><div><br><br></div></div></div></div></div></div></div></div>
</div></div>
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4