<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pl">
	<id>http://brain.fuw.edu.pl/edu/index.php?action=history&amp;feed=atom&amp;title=TI%2FSkrypty_z_zaj%C4%99%C4%87%2Fk5</id>
	<title>TI/Skrypty z zajęć/k5 - Historia wersji</title>
	<link rel="self" type="application/atom+xml" href="http://brain.fuw.edu.pl/edu/index.php?action=history&amp;feed=atom&amp;title=TI%2FSkrypty_z_zaj%C4%99%C4%87%2Fk5"/>
	<link rel="alternate" type="text/html" href="http://brain.fuw.edu.pl/edu/index.php?title=TI/Skrypty_z_zaj%C4%99%C4%87/k5&amp;action=history"/>
	<updated>2026-04-21T17:58:30Z</updated>
	<subtitle>Historia wersji tej strony wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>http://brain.fuw.edu.pl/edu/index.php?title=TI/Skrypty_z_zaj%C4%99%C4%87/k5&amp;diff=8352&amp;oldid=prev</id>
		<title>Tgub: Utworzono nową stronę &quot;&lt;source lang=&quot;python&quot;&gt; # -*- coding: utf-8 -*- &quot;&quot;&quot; Created on Wed May 20 11:17:56 2020  @author: Tomek &quot;&quot;&quot;  class A():     def __str__(self):         return 'Jestem obie...&quot;</title>
		<link rel="alternate" type="text/html" href="http://brain.fuw.edu.pl/edu/index.php?title=TI/Skrypty_z_zaj%C4%99%C4%87/k5&amp;diff=8352&amp;oldid=prev"/>
		<updated>2020-05-20T22:18:40Z</updated>

		<summary type="html">&lt;p&gt;Utworzono nową stronę &amp;quot;&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt; # -*- coding: utf-8 -*- &amp;quot;&amp;quot;&amp;quot; Created on Wed May 20 11:17:56 2020  @author: Tomek &amp;quot;&amp;quot;&amp;quot;  class A():     def __str__(self):         return &amp;#039;Jestem obie...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nowa strona&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
# -*- coding: utf-8 -*-&lt;br /&gt;
&amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
Created on Wed May 20 11:17:56 2020&lt;br /&gt;
&lt;br /&gt;
@author: Tomek&lt;br /&gt;
&amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
class A():&lt;br /&gt;
    def __str__(self):&lt;br /&gt;
        return 'Jestem obiektem klasy A'&lt;br /&gt;
    &lt;br /&gt;
    def __call__(self, *args):&lt;br /&gt;
        return 'Jestem metoda call wywolana z argumentami '+str(args)&lt;br /&gt;
    &lt;br /&gt;
    def __getitem__(self,index):&lt;br /&gt;
        return str(index)&lt;br /&gt;
    &lt;br /&gt;
    def __setitem__(self,ind,val):&lt;br /&gt;
        print('index =', ind, 'value =', val)&lt;br /&gt;
    &lt;br /&gt;
a = A()&lt;br /&gt;
&lt;br /&gt;
#a+b = a.__add__(b)&lt;br /&gt;
#a(x) = a.__call__(x)&lt;br /&gt;
#a[n] = a.__getitem__(x)&lt;br /&gt;
&lt;br /&gt;
class naszSlownik():&lt;br /&gt;
    def __init__(self,dic={}):&lt;br /&gt;
        self.__sl = dic.copy()&lt;br /&gt;
        &lt;br /&gt;
    def __str__(self):&lt;br /&gt;
        return 'Nasz Slownik ' + str(self.__sl)&lt;br /&gt;
    &lt;br /&gt;
    def __getitem__(self,index):&lt;br /&gt;
        return self.__sl[index]&lt;br /&gt;
    &lt;br /&gt;
    def __setitem__(self,ind,val):&lt;br /&gt;
        if ind == 1:&lt;br /&gt;
            print('nie wolno Ci!!!')&lt;br /&gt;
            return None&lt;br /&gt;
        self.__sl[ind] = val&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a = {1:2,2:3,3:4}&lt;br /&gt;
b = naszSlownik(a)&lt;br /&gt;
a[1] = 100&lt;br /&gt;
print(b)&lt;br /&gt;
        &lt;br /&gt;
        &lt;br /&gt;
        &lt;br /&gt;
        &lt;br /&gt;
        &lt;br /&gt;
        &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tgub</name></author>
		
	</entry>
</feed>