<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>http://micropython.aundz.net/index.php?action=history&amp;feed=atom&amp;title=Das_Module_Collections</id>
	<title>Das Module Collections - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="http://micropython.aundz.net/index.php?action=history&amp;feed=atom&amp;title=Das_Module_Collections"/>
	<link rel="alternate" type="text/html" href="http://micropython.aundz.net/index.php?title=Das_Module_Collections&amp;action=history"/>
	<updated>2026-12-04T00:51:24Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Micropython</subtitle>
	<generator>MediaWiki 1.46.4</generator>
	<entry>
		<id>http://micropython.aundz.net/index.php?title=Das_Module_Collections&amp;diff=1376&amp;oldid=prev</id>
		<title>Peter am 1. Juni 2025 um 15:30 Uhr</title>
		<link rel="alternate" type="text/html" href="http://micropython.aundz.net/index.php?title=Das_Module_Collections&amp;diff=1376&amp;oldid=prev"/>
		<updated>2025-06-01T15:30:44Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 1. Juni 2025, 16:30 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l25&quot;&gt;Zeile 25:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 25:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     if limit &amp;lt; 0:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     if limit &amp;lt; 0:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         break&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         break&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;print(end=&#039;\n&#039;)   &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;print(&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;...&#039;, &lt;/ins&gt;end=&#039;\n&#039;)   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;start = time.ticks_us()&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;start = time.ticks_us()&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l38&quot;&gt;Zeile 38:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 38:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     if limit &amp;lt; 0:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     if limit &amp;lt; 0:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         break&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         break&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;print(end=&#039;\n&#039;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;print(&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;...&#039;, &lt;/ins&gt;end=&#039;\n&#039;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Peter</name></author>
	</entry>
	<entry>
		<id>http://micropython.aundz.net/index.php?title=Das_Module_Collections&amp;diff=1375&amp;oldid=prev</id>
		<title>Peter: Die Seite wurde neu angelegt: „   == deque==  &lt;pre&gt; # deque_test_001.py   import time from collections import deque  numbers_list = list(range(10000)) numbers_deque = deque(range(10000), 10100)  start = time.ticks_us() numbers_list.insert(0, 99) duration = time.ticks_us() - start print(f&#039;List insert: {duration} µs.&#039;)  limit = 10 for i in numbers_list:     print(i, end=&#039;, &#039;)     limit -= 1     if limit &lt; 0:         break print(end=&#039;\n&#039;)    start = time.ticks_us() numbers_deque.appendle…“</title>
		<link rel="alternate" type="text/html" href="http://micropython.aundz.net/index.php?title=Das_Module_Collections&amp;diff=1375&amp;oldid=prev"/>
		<updated>2025-06-01T09:51:31Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „   == deque==  &amp;lt;pre&amp;gt; # deque_test_001.py   import time from collections import deque  numbers_list = list(range(10000)) numbers_deque = deque(range(10000), 10100)  start = time.ticks_us() numbers_list.insert(0, 99) duration = time.ticks_us() - start print(f&amp;#039;List insert: {duration} µs.&amp;#039;)  limit = 10 for i in numbers_list:     print(i, end=&amp;#039;, &amp;#039;)     limit -= 1     if limit &amp;lt; 0:         break print(end=&amp;#039;\n&amp;#039;)    start = time.ticks_us() numbers_deque.appendle…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== deque==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# deque_test_001.py&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
import time&lt;br /&gt;
from collections import deque&lt;br /&gt;
&lt;br /&gt;
numbers_list = list(range(10000))&lt;br /&gt;
numbers_deque = deque(range(10000), 10100)&lt;br /&gt;
&lt;br /&gt;
start = time.ticks_us()&lt;br /&gt;
numbers_list.insert(0, 99)&lt;br /&gt;
duration = time.ticks_us() - start&lt;br /&gt;
print(f&amp;#039;List insert: {duration} µs.&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
limit = 10&lt;br /&gt;
for i in numbers_list:&lt;br /&gt;
    print(i, end=&amp;#039;, &amp;#039;)&lt;br /&gt;
    limit -= 1&lt;br /&gt;
    if limit &amp;lt; 0:&lt;br /&gt;
        break&lt;br /&gt;
print(end=&amp;#039;\n&amp;#039;)  &lt;br /&gt;
&lt;br /&gt;
start = time.ticks_us()&lt;br /&gt;
numbers_deque.appendleft(99)&lt;br /&gt;
duration = time.ticks_us() - start&lt;br /&gt;
print(f&amp;#039;Deque insert: {duration} µs.&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
limit = 10&lt;br /&gt;
for i in numbers_deque:&lt;br /&gt;
    print(i, end=&amp;#039;, &amp;#039;)&lt;br /&gt;
    limit -= 1&lt;br /&gt;
    if limit &amp;lt; 0:&lt;br /&gt;
        break&lt;br /&gt;
print(end=&amp;#039;\n&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Das Ergebnis:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; %Run -c $EDITOR_CONTENT&lt;br /&gt;
&lt;br /&gt;
MPY: soft reboot&lt;br /&gt;
List insert: 629 µs.&lt;br /&gt;
99, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, &lt;br /&gt;
Deque insert: 25 µs.&lt;br /&gt;
99, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, &lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Peter</name></author>
	</entry>
</feed>