<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>new feature Archives - Creatronix</title>
	<atom:link href="https://creatronix.de/tag/new-feature/feed/" rel="self" type="application/rss+xml" />
	<link>https://creatronix.de/tag/new-feature/</link>
	<description>My adventures in code &#38; business</description>
	<lastBuildDate>Wed, 12 Nov 2025 07:08:18 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Python data classes</title>
		<link>https://creatronix.de/python-data-classes/</link>
		
		<dc:creator><![CDATA[Jörn]]></dc:creator>
		<pubDate>Fri, 20 Jul 2018 07:39:42 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[data classes]]></category>
		<category><![CDATA[new feature]]></category>
		<category><![CDATA[python3.7]]></category>
		<guid isPermaLink="false">http://creatronix.de/?p=1788</guid>

					<description><![CDATA[<p>A cool new feature made its way into Python 3.7: Data classes. When You&#8217;ve already read my article about Lombok the concept isn&#8217;t so new at all: With the new decorator @dataclass You can save a huge amount of time because the methods __init__() __repr__() __eq__() are created for you! from dataclasses import dataclass @dataclass&#8230;</p>
<p>The post <a href="https://creatronix.de/python-data-classes/">Python data classes</a> appeared first on <a href="https://creatronix.de">Creatronix</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>A cool new feature made its way into Python 3.7: Data classes.</p>
<p>When You&#8217;ve already read my article about <a href="https://creatronix.de/lombok/">Lombok</a> the concept isn&#8217;t so new at all: With the new decorator @dataclass You can save a huge amount of time because the methods</p>
<ul>
<li>__init__()</li>
<li>__repr__()</li>
<li>__eq__()</li>
</ul>
<p>are created for you!</p>
<div class="hcb_wrap">
<pre class="prism line-numbers lang-python" data-lang="Python"><code>from dataclasses import dataclass 

@dataclass 
class CinemaEvent: 
    location: str 
    url: str 

my_event = CinemaEvent("Cinecitta", "https://www.cinecitta.de/de/A-Quiet-Place-4552.html") 
print(my_event)</code></pre>
</div>
<h2>Further readings:</h2>
<p><a href="https://realpython.com/python-data-classes/">https://realpython.com/python-data-classes/</a></p>
<p>The post <a href="https://creatronix.de/python-data-classes/">Python data classes</a> appeared first on <a href="https://creatronix.de">Creatronix</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
