<?xml version="1.0" encoding="utf-8" ?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>Програмиране с Python</title>
<link>http://oldfmi.py-bg.net/forums/</link>
<description>Последни 35 отговора във форумите на курса Програмиране с Python</description>
<language>en</language>
<pubDate>Fri, 27 Sep 2013 19:09:24 +0000</pubDate>

<item>
<title>nb on "наследници на даден клас"</title>
<link>http://oldfmi.py-bg.net/forums/topic/64#post-452</link>
<pubDate>Fri, 20 Apr 2007 08:59:54 +0000</pubDate>
<dc:creator>nb</dc:creator>
<guid isPermaLink="false">452@http://oldfmi.py-bg.net/forums/</guid>
<description>&#60;p&#62;&#60;strong&#62;Надя&#60;/strong&#62;,&#60;br /&#62;
Погледни по-горе:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;
На картинката стрелка от клас X към клас Y означава, че X е наследник на Y.
&#60;/p&#62;&#60;/blockquote&#62;</description>
</item>
<item>
<title>nadya on "наследници на даден клас"</title>
<link>http://oldfmi.py-bg.net/forums/topic/64#post-451</link>
<pubDate>Thu, 19 Apr 2007 21:58:56 +0000</pubDate>
<dc:creator>nadya</dc:creator>
<guid isPermaLink="false">451@http://oldfmi.py-bg.net/forums/</guid>
<description>&#60;p&#62;от картинката май не стана ясно. А е родител на Б и С. Б е родител на Д
&#60;/p&#62;</description>
</item>
<item>
<title>nadya on "наследници на даден клас"</title>
<link>http://oldfmi.py-bg.net/forums/topic/64#post-450</link>
<pubDate>Thu, 19 Apr 2007 21:57:29 +0000</pubDate>
<dc:creator>nadya</dc:creator>
<guid isPermaLink="false">450@http://oldfmi.py-bg.net/forums/</guid>
<description>&#60;p&#62;A&#60;br /&#62;
    B  C&#60;br /&#62;
   D&#60;/p&#62;
&#60;p&#62;ако тръгнем от клас Д да търсим и С има атрибут а . Връщаме ли атрибут а или не (ако в другите класове съответно не го намерим)
&#60;/p&#62;</description>
</item>
<item>
<title>Dancho on "наследници на даден клас"</title>
<link>http://oldfmi.py-bg.net/forums/topic/64#post-447</link>
<pubDate>Thu, 19 Apr 2007 20:26:27 +0000</pubDate>
<dc:creator>Dancho</dc:creator>
<guid isPermaLink="false">447@http://oldfmi.py-bg.net/forums/</guid>
<description>&#60;p&#62;Dilyana: ми в списъка няма да слага</description>
</item>
<item>
<title>Dilyana on "наследници на даден клас"</title>
<link>http://oldfmi.py-bg.net/forums/topic/64#post-415</link>
<pubDate>Wed, 18 Apr 2007 13:27:06 +0000</pubDate>
<dc:creator>Dilyana</dc:creator>
<guid isPermaLink="false">415@http://oldfmi.py-bg.net/forums/</guid>
<description>&#60;p&#62;</description>
</item>
<item>
<title>nb on "наследници на даден клас"</title>
<link>http://oldfmi.py-bg.net/forums/topic/64#post-380</link>
<pubDate>Sun, 15 Apr 2007 14:34:28 +0000</pubDate>
<dc:creator>nb</dc:creator>
<guid isPermaLink="false">380@http://oldfmi.py-bg.net/forums/</guid>
<description>&#60;p&#62;Търсенето, както си е описано в условието се извър</description>
</item>
<item>
<title>Anislav on "наследници на даден клас"</title>
<link>http://oldfmi.py-bg.net/forums/topic/64#post-377</link>
<pubDate>Sun, 15 Apr 2007 12:35:39 +0000</pubDate>
<dc:creator>Anislav</dc:creator>
<guid isPermaLink="false">377@http://oldfmi.py-bg.net/forums/</guid>
<description>&#60;p&#62;за картинката смятам, че е наистина така&#60;/p&#62;
&#60;p&#62;class D: pass&#60;br /&#62;
class C: pass&#60;br /&#62;
class B(D): pass&#60;br /&#62;
class A(B, C): pass&#60;br /&#62;
C.x = 4&#60;br /&#62;
D.x = 9&#60;/p&#62;
&#60;p&#62;bases проработи :)&#60;/p&#62;
&#60;p&#62;a = A()&#60;br /&#62;
print a.__class__.__bases__
&#60;/p&#62;</description>
</item>
<item>
<title>uZer on "наследници на даден клас"</title>
<link>http://oldfmi.py-bg.net/forums/topic/64#post-376</link>
<pubDate>Sun, 15 Apr 2007 11:21:54 +0000</pubDate>
<dc:creator>uZer</dc:creator>
<guid isPermaLink="false">376@http://oldfmi.py-bg.net/forums/</guid>
<description>&#60;p&#62;и още въпрос&#60;br /&#62;
задължително ли да се предефинира __getattribute__&#60;br /&#62;
аз предефинирах __getattr__&#60;br /&#62;
щото класа ми е написан по старому
&#60;/p&#62;</description>
</item>
<item>
<title>uZer on "наследници на даден клас"</title>
<link>http://oldfmi.py-bg.net/forums/topic/64#post-375</link>
<pubDate>Sun, 15 Apr 2007 10:18:30 +0000</pubDate>
<dc:creator>uZer</dc:creator>
<guid isPermaLink="false">375@http://oldfmi.py-bg.net/forums/</guid>
<description>&#60;p&#62;въпрос:&#60;br /&#62;
ето тази картинка&#60;br /&#62;
&#60;a href=&#34;http://fmi.py-bg.net/files/2007/04/p5-sample.gif&#34; rel=&#34;nofollow&#34;&#62;http://fmi.py-bg.net/files/2007/04/p5-sample.gif&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;дали съответства на този код&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;class D: pass
class C: pass
class B(D): pass
class A(B, C): pass
C.x = 4
D.x = 9&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;ако да, то djv е прав и търсенето става назад по иерархията и всичко е красиво и разбираемо.&#60;br /&#62;
фактически в рисунката трябва да се обърне посоката на стрелките...&#60;/p&#62;
&#60;p&#62;надявам се на скор отговор от авторите
&#60;/p&#62;</description>
</item>
<item>
<title>Anislav on "наследници на даден клас"</title>
<link>http://oldfmi.py-bg.net/forums/topic/64#post-374</link>
<pubDate>Sun, 15 Apr 2007 00:00:23 +0000</pubDate>
<dc:creator>Anislav</dc:creator>
<guid isPermaLink="false">374@http://oldfmi.py-bg.net/forums/</guid>
<description>&#60;p&#62;class A(object): pass&#60;br /&#62;
class D(object): pass&#60;br /&#62;
class B(A): pass&#60;/p&#62;
&#60;p&#62;print B.__mro__&#60;br /&#62;
#(&#38;lt;class '__main__.B'&#38;gt;, &#38;lt;class '__main__.A'&#38;gt;, &#38;lt;class '__main__.D'&#38;gt;, &#38;lt;type 'object'&#38;gt;)&#60;/p&#62;
&#60;p&#62;само това успях да намеря...
&#60;/p&#62;</description>
</item>
<item>
<title>Anislav on "наследници на даден клас"</title>
<link>http://oldfmi.py-bg.net/forums/topic/64#post-373</link>
<pubDate>Sat, 14 Apr 2007 23:10:36 +0000</pubDate>
<dc:creator>Anislav</dc:creator>
<guid isPermaLink="false">373@http://oldfmi.py-bg.net/forums/</guid>
<description>&#60;p&#62;djv - май не си прав за __bases__&#60;/p&#62;
&#60;p&#62;аз си направих следния тест:&#60;/p&#62;
&#60;p&#62;class A(object): pass&#60;br /&#62;
class B(A): pass&#60;/p&#62;
&#60;p&#62;b = B()&#60;br /&#62;
#print b.__bases__ - AttributeError: B instance has no attribute '__bases__'&#60;/p&#62;
&#60;p&#62;c = type('C', (A,), {})&#60;br /&#62;
print c.__bases__ # (&#38;lt;class '__main__.A'&#38;gt;,)&#60;/p&#62;
&#60;p&#62;тоест __bases__ работи само за динамични класове
&#60;/p&#62;</description>
</item>
<item>
<title>djv on "наследници на даден клас"</title>
<link>http://oldfmi.py-bg.net/forums/topic/64#post-371</link>
<pubDate>Sat, 14 Apr 2007 20:14:24 +0000</pubDate>
<dc:creator>djv</dc:creator>
<guid isPermaLink="false">371@http://oldfmi.py-bg.net/forums/</guid>
<description>&#60;p&#62;В задачата се иска да търси</description>
</item>
<item>
<title>uZer on "наследници на даден клас"</title>
<link>http://oldfmi.py-bg.net/forums/topic/64#post-370</link>
<pubDate>Sat, 14 Apr 2007 19:38:03 +0000</pubDate>
<dc:creator>uZer</dc:creator>
<guid isPermaLink="false">370@http://oldfmi.py-bg.net/forums/</guid>
<description>&#60;p&#62;понеже аз не мога да ходя на лекции (няма достъп за количка в ФМ</description>
</item>

</channel>
</rss>
