<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Handle multithreading in Python? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/handle-multithreading-in-python/m-p/1283755#M67538</link>
    <description>&lt;P&gt;&lt;SPAN&gt;As a user in a community forum, I am curious about the use cases of lambda functions in Python and how they differ from regular functions. Can someone provide a clear explanation and some examples? Moreover, I would like to know how to handle multithreading &lt;/SPAN&gt;What is the purpose of the "yield" keyword in Python?What is a Python module and how do you create one?What is the purpose of the "self" keyword in Python?How do you handle file input/output in Python?What are the different types of data structures in Python?How do you use regular expressions in Python?&lt;SPAN&gt;Python and what are the best practices to follow while implementing it in my code. Any tips or advice on this topic would be greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Apr 2023 10:05:28 GMT</pubDate>
    <dc:creator>volkswagon</dc:creator>
    <dc:date>2023-04-28T10:05:28Z</dc:date>
    <item>
      <title>Handle multithreading in Python?</title>
      <link>https://community.esri.com/t5/python-questions/handle-multithreading-in-python/m-p/1283755#M67538</link>
      <description>&lt;P&gt;&lt;SPAN&gt;As a user in a community forum, I am curious about the use cases of lambda functions in Python and how they differ from regular functions. Can someone provide a clear explanation and some examples? Moreover, I would like to know how to handle multithreading &lt;/SPAN&gt;What is the purpose of the "yield" keyword in Python?What is a Python module and how do you create one?What is the purpose of the "self" keyword in Python?How do you handle file input/output in Python?What are the different types of data structures in Python?How do you use regular expressions in Python?&lt;SPAN&gt;Python and what are the best practices to follow while implementing it in my code. Any tips or advice on this topic would be greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 10:05:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/handle-multithreading-in-python/m-p/1283755#M67538</guid>
      <dc:creator>volkswagon</dc:creator>
      <dc:date>2023-04-28T10:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Handle multithreading in Python?</title>
      <link>https://community.esri.com/t5/python-questions/handle-multithreading-in-python/m-p/1283813#M67540</link>
      <description>&lt;P&gt;That is a lot to answer all at once - each of those is probably it's own discussion!&amp;nbsp; I can't hit everything but here are some highlights:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Use&lt;A href="https://peps.python.org/pep-0008/" target="_self"&gt; PEP 8&lt;/A&gt; for guidelines - they are what most use and it will help with readability of your code&lt;/LI&gt;&lt;LI&gt;Lambda - it's a small, anonymous expression.&amp;nbsp; Takes multiple arguments but only has one expression.&amp;nbsp; Regular functions are a block of code that can do multiple things.&amp;nbsp; Check out &lt;A href="https://www.w3schools.com/python/python_functions.asp" target="_self"&gt;W3Schools.com&lt;/A&gt; for some testing &amp;amp; brief explanations.&lt;/LI&gt;&lt;LI&gt;Multithreading can be interesting, and if you look into that, you should know the difference between that and multiprocessing.&amp;nbsp; Check out &lt;A href="https://www.e-education.psu.edu/geog489/node/2254" target="_self"&gt;this course&lt;/A&gt; from PennState world campus that looks at it from a GIS standpoint.&lt;/LI&gt;&lt;LI&gt;handling file input/output - are you looking to manipulate certain file types or are you looking for a prompt that lets you enter in a value?&lt;/LI&gt;&lt;LI&gt;Regular expressions - they can be useful for narrowing down what is allowed to be inputted - basically they form a search pattern that you check strings against.&amp;nbsp; i.e. it will only let you enter a value that resembles a phone number in this particular format (###) ###-#### or other things like that.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 12:53:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/handle-multithreading-in-python/m-p/1283813#M67540</guid>
      <dc:creator>Kara_Shindle</dc:creator>
      <dc:date>2023-04-28T12:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Handle multithreading in Python?</title>
      <link>https://community.esri.com/t5/python-questions/handle-multithreading-in-python/m-p/1284060#M67546</link>
      <description>&lt;P&gt;And `yield` is the syntax for creating a &lt;A href="https://realpython.com/introduction-to-python-generators/" target="_self"&gt;generator function&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 19:23:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/handle-multithreading-in-python/m-p/1284060#M67546</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2023-04-28T19:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Handle multithreading in Python?</title>
      <link>https://community.esri.com/t5/python-questions/handle-multithreading-in-python/m-p/1284297#M67553</link>
      <description>&lt;P&gt;Look through the content that is available here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.e-education.psu.edu/geog485/node/91" target="_blank" rel="noopener"&gt;geog 485&lt;/A&gt; &amp;amp; &lt;A href="https://www.e-education.psu.edu/geog489/home.html" target="_self"&gt;geog 489&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They provide most, if not all answers to your questions and provide examples that you can step through to see it on your own.&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2023 13:30:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/handle-multithreading-in-python/m-p/1284297#M67553</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2023-05-01T13:30:21Z</dc:date>
    </item>
  </channel>
</rss>

