[docs] [issue11318] Python 3.2 FAQ example code typo?

Boštjan Mejak report at bugs.python.org
Fri Feb 25 14:57:40 CET 2011


Boštjan Mejak <bostjan.mejak at gmail.com> added the comment:

>
> Caution: within a method of C, an assignment like ``self.count = 42``
> creates a new and unrelated instance named "count" in ``self``'s own dict.

More clear is to say *Caution: within a method of class C, an assignment
like ``self.count = 42`` creates a new and unrelated instance named "count"
in ``self``'s own dict.*
*
*

----------
Added file: http://bugs.python.org/file20888/unnamed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11318>
_______________________________________
-------------- next part --------------
<blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
<span class="Apple-style-span" style="border-collapse: collapse; color: rgb(32, 32, 32); font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 13px; ">Caution: within a method of C, an assignment like ``self.count = 42`` creates a new and unrelated instance named &quot;count&quot; in ``self``&#39;s own dict.</span></blockquote>
<div><br></div><div>More clear is to say <span class="Apple-style-span" style="border-collapse: collapse; color: rgb(32, 32, 32); font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 13px; "><i>Caution: within a method of class C, an assignment like ``self.count = 42`` creates a new and unrelated instance named &quot;count&quot; in ``self``&#39;s own dict.</i></span></div>
<div><span class="Apple-style-span" style="border-collapse: collapse; color: rgb(32, 32, 32); font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 13px; "><i><br></i></span></div>


More information about the docs mailing list