mastodontech.de ist einer von vielen unabhängigen Mastodon-Servern, mit dem du dich im Fediverse beteiligen kannst.
Offen für alle (über 16) und bereitgestellt von Markus'Blog

Serverstatistik:

1,5 Tsd.
aktive Profile

#ListComprehension

0 Beiträge0 Beteiligte0 Beiträge heute
sudonem<p>I am finally getting comfortable with comprehensions in Python. I understand the benefits, and they are already becoming useful for me. Great. Fine. Good.</p><p>Although I do wish it was possible to include some sort of separator between the individual components (even if it was entirely cosmetic) to improve readability in more complex comprehensions. </p><p>For example, when using filters, or complex expressions or nested comprehensions, it would be useful to be able to include a semi-colon (or something) as a visual separator between the main loop and the filter etc.</p><p>I'll get used to it I'm sure. So it's fine. But spicy brain wants what it wants sometimes.</p><p><a href="https://infosec.exchange/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> <a href="https://infosec.exchange/tags/PythonComprehension" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PythonComprehension</span></a> <a href="https://infosec.exchange/tags/ListComprehension" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ListComprehension</span></a> <a href="https://infosec.exchange/tags/AiringOfGrievances" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AiringOfGrievances</span></a> <a href="https://infosec.exchange/tags/WhinyNerd" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WhinyNerd</span></a></p>