Setproperty Javascript

| | | | |

👻 Check our latest review to choose the best laptop for Machine Learning engineers and Deep learning tasks!

The innerHTML property allows you to define the content of an element using JavaScript.

If you specify an invalid element value with which to use the innerHTML method or if you place the script before the element is displayed on the page, you will encounter the error "Uncaught TypeError: Unable to set the "innerHTML" null "property . error

In this guide, we discuss what this error means and why you may encounter it. We’ll look at an example of this error so you can learn how to fix it in your JavaScript

Uncaught TypeError:. Cannot set property "innerHTML" to null

The InnerHTML property is linked to any web element that you are working with JavaScript. You selected a web element from the page using a "getter" , such as getElementById () , or you created an element in JavaScript that you want to modify.

"Cannot set property ’innerHTML’ to null" error is a type error. This means that we are trying to apply a property or a function to a value which does not support a property or a function.

In this case, we are trying to set the value of innerHTML to an equal element. NULL. NULL values ‚Äã‚Äãare not an innerHTML property

There are two common causes of this error.

  • Inserting a script before an item appears on the web page
  • Refer to the wrong item ID.

We are going to analyze the root cause, which is probably the most common mistake made by newbies.

an example scenario

We are going to write a simple site that shows the time. To start, define a basic HTML page . This HTML page will be the canvas on which we display the weather:

This HTML page contains a and . The tag contains a

</pre></code> that defines the title of the web page. The <code><body></code> contains a paragraph</p>  </a> </div> <p>in paragraph, we added a <a href="/html-span/"> <span> </a>. we will replace the content of this tag with the current time in our JavaScript code </p> <p>Then write a script to retrieve the time, we will add this JS code in the <code><head> </code>: .. </p>  <p>Our document now contains HTML and JavaScript. <code>getElementById ()</code> gets our span tag <code>SHOW_TIME</code>. We then retrieve the current date using the <ah ref = "/ JavaScrip t-Date/">JavaScript module date </a> tag .</p> <p>In the following line of code, we create a string that displays the current hour of the day and minutes of the hour. This string uses the following structure:</p> <p><code>HH: MM</code></p> <p>There are two periods that separate the values ‚Äã‚Äãfor hours and minutes. We create this string using a technique called <a href="/javascript-string-interpolation/"> JavaScript string interpolation </a>. This allows us to integrate multiple values ‚Äã‚Äãinto the same chain. Finally, we use the innerHTML method to display this time on our web page </p> <p>the page of our web open Let in the web browser. </p> <figure class = ’wp- the picture block-"> <img src =" https://lh6.googleusercontent.com/anZ4ckRYEF5OaualeffjXeLSKVdoZPV32w1Nl8cpU-YEy5nQeJ0KGFVR1DRUUwylZjjqemanwOj5z7NlgdEQ_qdcgAYzjdRMP9gFpr7tv4llZiOidmnmavbFUMa2ljCLqw "alt =" AnZ4ckRYEF5OaualeffjXeLSKVdoZPV32w1Nl8cpU YEy5nQeJ0KGFVR1DRUUwylZjjqemanwOj5z7NlgdEQ QdcgAYzjdRMP9gFpr7tv4llZiOidmnmavbFUMa2ljCLqw "> </ figure>  <p>our webpage cannot display the time. If we look at the JavaScript console, we can see an error: </p>  <p>This is another representation of the "cannot set ’innerHTML’ property to null". It tells us that the element we are trying to set the value of innerHTML to is zero. </p> <h2> The solution</h2><p>Since the value of <code>SHOW_TIME</code> is zero, we can deduce that JavaScript could not correctly retrieve the element whose ID is <code>SHOW_TIME</code>. </p> <p>In this case, the cause is that we entered our <code><; script></code> too early in our schedule . Our <code> ... </pre> </div> <p>We have moved our <code> </div> <h2> Conclusion</h2><p>The error "Uncaught TypeError: Unable to set property ’innerHTML’ null" The error is caused when trying to set an innerHTML value for a element whose value is equal to zero.</p> <p>To correct this error, make sure your <code><script></code> comes after the element you want to select in your script. If this does not resolve the problem, be sure to select a valid item in your program. </p>
    <p>
        👻 <em>Read also: what is the best <a href="/best-laptop-for-engineering-student/">laptop for engineering students</a>?</em>
    </p>
    <h2>Setproperty Javascript insert: Questions</h2>
<div class="question-block">
 <div class="question-block__tags">
<a class="question-block__tag tag" href="https://python.engineering/cat/wiki/insert/">insert</a>
 </div>
    <p class="question-block__title">How to insert newlines on argparse help text?</p>
    <p class="question-block__answers"><span>5</span> answers</p>
<p>I"m using <a href="http://docs.python.org/library/argparse.html" rel="noreferrer"><code>argparse</code> in Python 2.7</a> for parsing input options. One of my options is a multiple choice. I want to make a list in its help text, e.g.</p>

<pre><code>from argparse import ArgumentParser

parser = ArgumentParser(description="test")

parser.add_argument("-g", choices=["a", "b", "g", "d", "e"], default="a",
    help="Some option, where
"
         " a = alpha
"
         " b = beta
"
         " g = gamma
"
         " d = delta
"
         " e = epsilon")

parser.parse_args()
</code></pre>

<p>However, <code>argparse</code> strips all newlines and consecutive spaces. The result looks like</p>

<pre>
~/Downloads:52$ python2.7 x.py -h
usage: x.py [-h] [-g {a,b,g,d,e}]

test

optional arguments:
  -h, --help      show this help message and exit
  -g {a,b,g,d,e}  Some option, where a = alpha b = beta g = gamma d = delta e
                  = epsilon
</pre>

<p>How to insert newlines in the help text?</p>
</div>

                        <div class="answer">
                            <div class="answer__stars">406</div>
                            <div class="answer__inner">
                                <p class="answer__title">Answer #1</p>
                                <div class="answer__content">
                                    <p><p>Try using <a href="https://docs.python.org/2/library/argparse.html#formatter-class" rel="noreferrer"><code>RawTextHelpFormatter</code></a>:</p>

<pre><code>from argparse import RawTextHelpFormatter
parser = ArgumentParser(description="test", formatter_class=RawTextHelpFormatter)
</code></pre></p>
                                </div>
                            </div>
                        </div>
                        <h2>Setproperty Javascript insert: Questions</h2>
<div class="question-block">
 <div class="question-block__tags">
<a class="question-block__tag tag" href="https://python.engineering/cat/wiki/insert/">insert</a>
 </div>
    <p class="question-block__title">Is a Python list guaranteed to have its elements stay in the order they are inserted in?</p>
    <p class="question-block__answers"><span>5</span> answers</p>
<p>If I have the following Python code</p>

<pre><code>>>> x = []
>>> x = x + [1]
>>> x = x + [2]
>>> x = x + [3]
>>> x
[1, 2, 3]
</code></pre>

<p>Will <code>x</code> be guaranteed to always be <code>[1,2,3]</code>, or are other orderings of the interim elements possible?</p>
</div>

                        <div class="answer">
                            <div class="answer__stars">366</div>
                            <div class="answer__inner">
                                <p class="answer__title">Answer #1</p>
                                <div class="answer__content">
                                    <p><p>Yes, the order of elements in a python list is persistent.</p></p>
                                </div>
                            </div>
                        </div>
                        <h2>Setproperty Javascript insert: Questions</h2>
<div class="question-block">
 <div class="question-block__tags">
<a class="question-block__tag tag" href="https://python.engineering/cat/wiki/insert/">insert</a>
 </div>
    <p class="question-block__title">Inserting image into IPython notebook markdown</p>
    <p class="question-block__answers"><span>5</span> answers</p>
<p>I am starting to depend heavily on the IPython notebook app to develop and document algorithms.  It is awesome; but there is something that seems like it should be possible, but I can"t figure out how to do it:</p>

<p>I would like to insert a local image into my (local) IPython notebook markdown to aid in documenting an algorithm.  I know enough to add something like <code><img src="image.png"></code> to the markdown, but that is about as far as my knowledge goes.  I assume I could put the image in the directory represented by 127.0.0.1:8888 (or some subdirectory) to be able to access it, but I can"t figure out where that directory is.  (I"m working on a mac.)  So, is it possible to do what I"m trying to do without too much trouble?</p>
</div>

                        <div class="answer">
                            <div class="answer__stars">277</div>
                            <div class="answer__inner">
                                <p class="answer__title">Answer #1</p>
                                <div class="answer__content">
                                    <p><p>Most of the answers given so far go in the wrong direction, suggesting to load additional libraries and use the code instead of markup. In Ipython/Jupyter Notebooks it is very simple. Make sure the cell is indeed in markup and to display a image use:</p>

<pre><code>![alt text](imagename.png "Title")
</code></pre>

<p>Further advantage compared to the other methods proposed is that you can display all common file formats including jpg, png, and gif (animations).</p></p>
                                </div>
                            </div>
                        </div>
                        
<div class="question-block">
 <div class="question-block__tags">
<a class="question-block__tag tag" href="https://python.engineering/cat/other-programming/javascript/">JavaScript</a>
 </div>
    <p class="question-block__title">JSON datetime between Python and JavaScript</p>
    <p class="question-block__answers"><span>4</span> answers</p>

    <div class="question-block__author">
    <img class="question-block__author-img" src="img/article-author-img.jpg" alt="kevin">
    <span class="question-block__author-name">By kevin</span>
    </div>
<p>I want to send a datetime.datetime object in serialized form from Python using <a href="http://en.wikipedia.org/wiki/JSON" rel="noreferrer">JSON</a> and de-serialize in JavaScript using JSON. What is the best way to do this?</p>
</div>

                        <div class="answer">
                            <div class="answer__stars">403</div>
                            <div class="answer__inner">
                                <p class="answer__title">Answer #1</p>
                                <div class="answer__content">
                                    <p><p>You can add the "default" parameter to json.dumps to handle this:</p>

<pre><code>date_handler = lambda obj: (
    obj.isoformat()
    if isinstance(obj, (datetime.datetime, datetime.date))
    else None
)
json.dumps(datetime.datetime.now(), default=date_handler)
""2010-04-20T20:08:21.634121""
</code></pre>

<p>Which is <a href="http://en.wikipedia.org/wiki/ISO_8601" rel="noreferrer">ISO 8601</a> format. </p>

<p>A more comprehensive default handler function:</p>

<pre><code>def handler(obj):
    if hasattr(obj, "isoformat"):
        return obj.isoformat()
    elif isinstance(obj, ...):
        return ...
    else:
        raise TypeError, "Object of type %s with value of %s is not JSON serializable" % (type(obj), repr(obj))
</code></pre>

<p>Update:  Added output of type as well as value.<br>
Update:  Also handle date </p></p>
                                </div>
                            </div>
                        </div>
                        
<div class="question-block">
 <div class="question-block__tags">
<a class="question-block__tag tag" href="https://python.engineering/cat/other-programming/javascript/">JavaScript</a>
 </div>
    <p class="question-block__title">What blocks Ruby, Python to get Javascript V8 speed?</p>
    <p class="question-block__answers"><span>4</span> answers</p>
<p>Are there any Ruby / Python features that are blocking implementation of optimizations (e.g. <a href="http://en.wikipedia.org/wiki/Inline_caching">inline caching</a>) V8 engine has?</p>

<p>Python is co-developed by Google guys so it shouldn"t be blocked by software patents. </p>

<p>Or this is rather matter of resources put into the V8 project by Google. </p>
</div>

                        <div class="answer">
                            <div class="answer__stars">260</div>
                            <div class="answer__inner">
                                <p class="answer__title">Answer #1</p>
                                <div class="answer__content">
                                    <p><blockquote>
  <p>What blocks Ruby, Python to get Javascript V8 speed?</p>
</blockquote>

<p>Nothing.</p>

<p>Well, okay: money. (And time, people, resources, but if you have money, you can buy those.)</p>

<p>V8 has a team of brilliant, highly-specialized, highly-experienced (and thus highly-paid) engineers working on it, that have decades of experience (I"m talking individually – collectively it"s more like centuries) in creating high-performance execution engines for dynamic OO languages. They are basically the same people who also created the Sun HotSpot JVM (among many others).</p>

<p>Lars Bak, the lead developer, has been literally working on VMs for 25 years (and all of those VMs have lead up to V8), which is basically his entire (professional) life. Some of the people writing Ruby VMs aren"t even 25 years old.</p>

<blockquote>
  <p>Are there any Ruby / Python features that are blocking implementation of optimizations (e.g. inline caching) V8 engine has?</p>
</blockquote>

<p>Given that at least IronRuby, JRuby, MagLev, MacRuby and Rubinius have either monomorphic (IronRuby) or polymorphic inline caching, the answer is obviously no.</p>

<p>Modern Ruby implementations already do a great deal of optimizations. For example, for certain operations, Rubinius"s <code>Hash</code> class is faster than YARV"s. Now, this doesn"t sound terribly exciting until you realize that Rubinius"s <code>Hash</code> class is implemented in 100% pure Ruby, while YARV"s is implemented in 100% hand-optimized C.</p>

<p>So, at least in some cases, Rubinius can generate better code than GCC!</p>

<blockquote>
  <p>Or this is rather matter of resources put into the V8 project by Google.</p>
</blockquote>

<p>Yes. Not just Google. The lineage of V8"s source code is 25 years old now. The people who are working on V8 also created the Self VM (to this day one of the fastest dynamic OO language execution engines ever created), the Animorphic Smalltalk VM (to this day one of the fastest Smalltalk execution engines ever created), the HotSpot JVM (the fastest JVM ever created, probably the fastest VM period) and OOVM (one of the most efficient Smalltalk VMs ever created).</p>

<p>In fact, Lars Bak, the lead developer of V8, worked on <em>every single one</em> of those, plus a few others.</p></p>
                                </div>
                            </div>
                        </div>
                        
<div class="question-block">
 <div class="question-block__tags">
<a class="question-block__tag tag" href="https://python.engineering/cat/other-programming/javascript/">JavaScript</a>
 </div>
    <p class="question-block__title">Django Template Variables and Javascript</p>
    <p class="question-block__answers"><span>4</span> answers</p>
<p>When I render a page using the Django template renderer, I can pass in a dictionary variable containing various values to manipulate them in the page using <code>{{ myVar }}</code>.</p>

<p>Is there a way to access the same variable in Javascript (perhaps using the DOM, I don"t know how Django makes the variables accessible)? I want to be able to lookup details using an AJAX lookup based on the values contained in the variables passed in.</p>
</div>

                        <div class="answer">
                            <div class="answer__stars">256</div>
                            <div class="answer__inner">
                                <p class="answer__title">Answer #1</p>
                                <div class="answer__content">
                                    <p><p>The <code>{{variable}}</code> is substituted directly into the HTML. Do a view source; it isn"t a "variable" or anything like it. It"s just rendered text.</p>

<p>Having said that, you can put this kind of substitution into your JavaScript.</p>

<pre class="lang-html prettyprint-override"><code><script type="text/javascript"> 
   var a = "{{someDjangoVariable}}";
</script>
</code></pre>

<p>This gives you "dynamic" javascript.</p></p>
                                </div>
                            </div>
                        </div>
                        
<p>We hope this article has helped you to resolve the problem. Apart from Setproperty Javascript, check other <a href="https://python.engineering/cat/wiki/insert/">insert</a>-related topics.</p>

<p>Want to excel in Python? See our review of the <a href="https://python.engineering/best-python-online-courses-for-2022/">best Python online courses</a> 2022. If you are interested in Data Science, check also how to <a href="https://python.engineering/learn-programming-in-r-courses/">learn programming in R</a>.</p>

<p>By the way, this material is also available in other languages:</p>

<ul><li><a href="/it_it-javascript-cannot-set-property-innerhtml-of-null">Italiano Setproperty Javascript</a></li><li><a href="/de_de-javascript-cannot-set-property-innerhtml-of-null">Deutsch Setproperty Javascript</a></li><li><a href="/fr_fr-javascript-cannot-set-property-innerhtml-of-null">Français Setproperty Javascript</a></li><li><a href="/es_sp-javascript-cannot-set-property-innerhtml-of-null">Español Setproperty Javascript</a></li><li><a href="/tr_tr-javascript-cannot-set-property-innerhtml-of-null">Türk Setproperty Javascript</a></li><li><a href="/ru_ru-javascript-cannot-set-property-innerhtml-of-null">Русский Setproperty Javascript</a></li><li><a href="/pt_pt-javascript-cannot-set-property-innerhtml-of-null">Português Setproperty Javascript</a></li><li><a href="/pl_pl-javascript-cannot-set-property-innerhtml-of-null">Polski Setproperty Javascript</a></li><li><a href="/nl_nl-javascript-cannot-set-property-innerhtml-of-null">Nederlandse Setproperty Javascript</a></li><li><a href="/zh_cn-javascript-cannot-set-property-innerhtml-of-null">中文 Setproperty Javascript</a></li><li><a href="/ko_kr-javascript-cannot-set-property-innerhtml-of-null">한국어 Setproperty Javascript</a></li><li><a href="/ja_jp-javascript-cannot-set-property-innerhtml-of-null">日本語 Setproperty Javascript</a></li><li><a href="/hi_in-javascript-cannot-set-property-innerhtml-of-null">हिन्दी Setproperty Javascript</a></li>
    </ul>
    <br>
    <br>
    
        <div class="answer">
            <div class="answer__stars">Walter Williams</div>
            <div class="answer__inner">
                <p class="answer__title">Prague | 2022-11-30</p>
                <div class="answer__content">
                    <p>I was preparing for my coding interview, thanks for clarifying this - Setproperty Javascript in Python is not the simplest one. Will get back tomorrow with feedback</p>
                </div>
            </div>
        </div>
        
        <div class="answer">
            <div class="answer__stars">Schneider Richtgofen</div>
            <div class="answer__inner">
                <p class="answer__title">Paris | 2022-11-30</p>
                <div class="answer__content">
                    <p>Maybe there are another answers? What Setproperty Javascript exactly means?. Will use it in my bachelor thesis</p>
                </div>
            </div>
        </div>
        
        <div class="answer">
            <div class="answer__stars">Carlo Lehnman</div>
            <div class="answer__inner">
                <p class="answer__title">California | 2022-11-30</p>
                <div class="answer__content">
                    <p>Maybe there are another answers? What Setproperty Javascript exactly means?. Will use it in my bachelor thesis</p>
                </div>
            </div>
        </div>
        



                   </div>
                </div>
                <div class="article__right">
                    <div class="hub_ad">
                        <div id="ezoic-pub-ad-placeholder-106">
                          <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9381065361874746"
                               crossorigin="anonymous"></script>
                          <!-- PYE aside NEW -->
                          <ins class="adsbygoogle"
                               style="display:block"
                               data-ad-client="ca-pub-9381065361874746"
                               data-ad-slot="8755532771"
                               data-ad-format="auto"
                               data-full-width-responsive="true"></ins>
                          <script>
                               (adsbygoogle = window.adsbygoogle || []).push({});
                          </script>  
                        </div>                   
                    </div>
                    <div class="shop-aside shop-aside--mt">
                        <h2 class="shop-aside__title">Shop</h2>
                        <div class="shop__items shop__items--column">
                             	
                            <div class="shop__item"><a class="shop__item-link" href="https://python.engineering/learn-programming-in-r-courses/"></a><img class="shop__item-img" src="">
                                <p class="shop__item-name">Learn programming in R: courses</p><span class="shop__item-price">$</span>
                            </div>
                             	
                            <div class="shop__item"><a class="shop__item-link" href="https://python.engineering/best-python-online-courses-for-2022/"></a><img class="shop__item-img" src="">
                                <p class="shop__item-name">Best Python online courses for 2022</p><span class="shop__item-price">$</span>
                            </div>
                             	
                            <div class="shop__item"><a class="shop__item-link" href="https://python.engineering/best-laptop-for-fortnite/"></a><img class="shop__item-img" src="">
                                <p class="shop__item-name">Best laptop for Fortnite</p><span class="shop__item-price">$</span>
                            </div>
                             	
                            <div class="shop__item"><a class="shop__item-link" href="https://python.engineering/best-laptop-for-excel/"></a><img class="shop__item-img" src="">
                                <p class="shop__item-name">Best laptop for Excel</p><span class="shop__item-price">$</span>
                            </div>
                             	
                            <div class="shop__item"><a class="shop__item-link" href="https://python.engineering/best-laptop-for-solidworks/"></a><img class="shop__item-img" src="">
                                <p class="shop__item-name">Best laptop for Solidworks</p><span class="shop__item-price">$</span>
                            </div>
                             	
                            <div class="shop__item"><a class="shop__item-link" href="https://python.engineering/best-laptop-for-roblox/"></a><img class="shop__item-img" src="">
                                <p class="shop__item-name">Best laptop for Roblox</p><span class="shop__item-price">$</span>
                            </div>
                             	
                            <div class="shop__item"><a class="shop__item-link" href="https://python.engineering/best-computer-for-crypto-mining/"></a><img class="shop__item-img" src="">
                                <p class="shop__item-name">Best computer for crypto mining</p><span class="shop__item-price">$</span>
                            </div>
                             	
                            <div class="shop__item"><a class="shop__item-link" href="https://python.engineering/best-laptop-for-sims-4/"></a><img class="shop__item-img" src="http://python.engineering/wp-content/uploads/2022/04/pye-best-laptop-for-sims-4.jpg">
                                <p class="shop__item-name">Best laptop for Sims 4</p><span class="shop__item-price">$</span>
                            </div>
                            
                        </div>
                    </div>

                    <div class="hub_ad">
                        <div id="ezoic-pub-ad-placeholder-106" style="position:sticky; position:-webkit-sticky; top:0; margin-top:10px; z-index: 1000">
                          <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9381065361874746"
                               crossorigin="anonymous"></script>
                          <!-- PYE aside NEW -->
                          <ins class="adsbygoogle"
                               style="display:block"
                               data-ad-client="ca-pub-9381065361874746"
                               data-ad-slot="8755532771"
                               data-ad-format="auto"
                               data-full-width-responsive="true"></ins>
                          <script>
                               (adsbygoogle = window.adsbygoogle || []).push({});
                          </script>  
                        </div>                   
                    </div>


                    <div class="l-questions l-questions--mt">
                        <p class="l-questions__title">Latest questions</p>
                        <div class="l-questions__list">
                       
                        <div class="l-questions__item"><a class="l-questions__item-link" href="https://python.engineering/16150819-common-xlabel_ylabel-for-matplotlib-subplots/"></a>
                            <div class="l-questions__item-tags"><span class="l-questions__item-tag violet">NUMPY</span><span class="l-questions__item-tag yellow">NUMPY</span></div>
                            <p class="l-questions__item-title">Common xlabel/ylabel for matplotlib subplots</p>
                            <p class="l-questions__item-answers"><span>12</span> answers</p>
                        </div>
                       
                        <div class="l-questions__item"><a class="l-questions__item-link" href="https://python.engineering/33945261-how-to-specify-multiple-return-types-using-type-hints/"></a>
                            <div class="l-questions__item-tags"><span class="l-questions__item-tag violet">NUMPY</span><span class="l-questions__item-tag yellow">NUMPY</span></div>
                            <p class="l-questions__item-title">How to specify multiple return types using type-hints</p>
                            <p class="l-questions__item-answers"><span>12</span> answers</p>
                        </div>
                       
                        <div class="l-questions__item"><a class="l-questions__item-link" href="https://python.engineering/24791987-why-do-i-get-pickle-eoferror-ran-out-of-input-reading-an-empty-file/"></a>
                            <div class="l-questions__item-tags"><span class="l-questions__item-tag violet">NUMPY</span><span class="l-questions__item-tag yellow">NUMPY</span></div>
                            <p class="l-questions__item-title">Why do I get "Pickle - EOFError: Ran out of input" reading an empty file?</p>
                            <p class="l-questions__item-answers"><span>12</span> answers</p>
                        </div>
                       
                        <div class="l-questions__item"><a class="l-questions__item-link" href="https://python.engineering/48153886-flake8-ignore-specific-warning-for-entire-file/"></a>
                            <div class="l-questions__item-tags"><span class="l-questions__item-tag violet">NUMPY</span><span class="l-questions__item-tag yellow">NUMPY</span></div>
                            <p class="l-questions__item-title">Flake8: Ignore specific warning for entire file</p>
                            <p class="l-questions__item-answers"><span>12</span> answers</p>
                        </div>
                       
                        <div class="l-questions__item"><a class="l-questions__item-link" href="https://python.engineering/20638040-glob-exclude-pattern/"></a>
                            <div class="l-questions__item-tags"><span class="l-questions__item-tag violet">NUMPY</span><span class="l-questions__item-tag yellow">NUMPY</span></div>
                            <p class="l-questions__item-title">glob exclude pattern</p>
                            <p class="l-questions__item-answers"><span>12</span> answers</p>
                        </div>
                       
                        <div class="l-questions__item"><a class="l-questions__item-link" href="https://python.engineering/22786068-how-to-avoid-http-error-429-too-many-requests-python/"></a>
                            <div class="l-questions__item-tags"><span class="l-questions__item-tag violet">NUMPY</span><span class="l-questions__item-tag yellow">NUMPY</span></div>
                            <p class="l-questions__item-title">How to avoid HTTP error 429 (Too Many Requests) python</p>
                            <p class="l-questions__item-answers"><span>12</span> answers</p>
                        </div>
                       
                        <div class="l-questions__item"><a class="l-questions__item-link" href="https://python.engineering/4166070-python-csv-error-line-contains-null-byte/"></a>
                            <div class="l-questions__item-tags"><span class="l-questions__item-tag violet">NUMPY</span><span class="l-questions__item-tag yellow">NUMPY</span></div>
                            <p class="l-questions__item-title">Python CSV error: line contains NULL byte</p>
                            <p class="l-questions__item-answers"><span>12</span> answers</p>
                        </div>
                       
                        <div class="l-questions__item"><a class="l-questions__item-link" href="https://python.engineering/8515053-csv-error-iterator-should-return-strings-not-bytes/"></a>
                            <div class="l-questions__item-tags"><span class="l-questions__item-tag violet">NUMPY</span><span class="l-questions__item-tag yellow">NUMPY</span></div>
                            <p class="l-questions__item-title">csv.Error: iterator should return strings, not bytes</p>
                            <p class="l-questions__item-answers"><span>12</span> answers</p>
                        </div>
                        
                        </div>
                        <div class="l-questions__more-link"><a href="/cat/wiki/so/">All questions</a></div>
                    </div>
                    <div class="hub_ad">
                        <div id="ezoic-pub-ad-placeholder-106" style="position:sticky; position:-webkit-sticky; top:0; margin-top:10px; z-index: 1000">
                          <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9381065361874746"
                               crossorigin="anonymous"></script>
                          <!-- PYE aside NEW -->
                          <ins class="adsbygoogle"
                               style="display:block"
                               data-ad-client="ca-pub-9381065361874746"
                               data-ad-slot="8755532771"
                               data-ad-format="auto"
                               data-full-width-responsive="true"></ins>
                          <script>
                               (adsbygoogle = window.adsbygoogle || []).push({});
                          </script>  
                        </div>                   
                    </div>                    
                </div>
            </div>
        </div>
    </div>



<!-- news -->
    <div class="news">
        <div class="container">
            <h2 class="news__title h2">News</h2>
            <div class="news__items">

   
            <!--
            <a class="news__item" href="https://python.engineering/the-long-awaited-arplan-app-update-for-android-is-out/" style="background-image: url('https://python.engineering/wp-content/uploads/2022/11/measure-camera-plan-app.jpeg')">
            -->
            <a class="news__item" href="https://python.engineering/the-long-awaited-arplan-app-update-for-android-is-out/" style="background-color: #243978;">
                <span class="news__item-overlay">
                  <span class="news__item-cat">27/11/2022</span>
                  <span class="news__item-title">The long-awaited ARPlAN app update for Android is out</span>
                </span>
            </a>
   
            <!--
            <a class="news__item" href="https://python.engineering/apple-and-epic-systems-to-develop-macos-health-apps/" style="background-image: url('https://python.engineering/wp-content/uploads/2022/11/pye-apple-23-11-2022.jpeg')">
            -->
            <a class="news__item" href="https://python.engineering/apple-and-epic-systems-to-develop-macos-health-apps/" style="background-color: #243978;">
                <span class="news__item-overlay">
                  <span class="news__item-cat">23/11/2022</span>
                  <span class="news__item-title">Apple and Epic Systems to develop macOS health apps</span>
                </span>
            </a>
   
            <!--
            <a class="news__item" href="https://python.engineering/iranian-hackers-hacked-into-us-federal-agency-using-old-vulnerability/" style="background-image: url('https://python.engineering/wp-content/uploads/2022/11/pye-cisa-21-11-2022.jpeg')">
            -->
            <a class="news__item" href="https://python.engineering/iranian-hackers-hacked-into-us-federal-agency-using-old-vulnerability/" style="background-color: #243978;">
                <span class="news__item-overlay">
                  <span class="news__item-cat">21/11/2022</span>
                  <span class="news__item-title">Iranian hackers hacked into US federal agency using old vulnerability</span>
                </span>
            </a>
              
            </div>
        </div>
    </div>
<!-- /new -->

<br>

<!-- wiki -->
    <div class="wiki">
        <div class="container">
            <h2 class="wiki__title h2">Wiki</h2>
            <div class="wiki-grid">
               
                <div class="l-questions__item"><a class="l-questions__item-link" href="https://python.engineering/python-how-to-copy-data-from-one-excel-sheet-to-another/"></a>
                    <div class="l-questions__item-tags">
                      <a href=""><span class="l-questions__item-tag violet">File handling</span></a>
                    </div>
                    <p class="l-questions__item-title">Python | How to copy data from one Excel sheet to another</p>
                </div>
               
                <div class="l-questions__item"><a class="l-questions__item-link" href="https://python.engineering/16150819-common-xlabel_ylabel-for-matplotlib-subplots/"></a>
                    <div class="l-questions__item-tags">
                      <a href=""><span class="l-questions__item-tag violet">__dict__</span></a>
                    </div>
                    <p class="l-questions__item-title">Common xlabel/ylabel for matplotlib subplots</p>
                </div>
               
                <div class="l-questions__item"><a class="l-questions__item-link" href="https://python.engineering/python-check-if-one-list-is-subset-of-other/"></a>
                    <div class="l-questions__item-tags">
                      <a href=""><span class="l-questions__item-tag violet">__dict__</span></a>
                    </div>
                    <p class="l-questions__item-title">Check if one list is a subset of another in Python</p>
                </div>
               
                <div class="l-questions__item"><a class="l-questions__item-link" href="https://python.engineering/33945261-how-to-specify-multiple-return-types-using-type-hints/"></a>
                    <div class="l-questions__item-tags">
                      <a href=""><span class="l-questions__item-tag violet">sin</span></a>
                    </div>
                    <p class="l-questions__item-title">How to specify multiple return types using type-hints</p>
                </div>
               
                <div class="l-questions__item"><a class="l-questions__item-link" href="https://python.engineering/printing-words-vertically/"></a>
                    <div class="l-questions__item-tags">
                      <a href=""><span class="l-questions__item-tag violet">exp</span></a>
                    </div>
                    <p class="l-questions__item-title">Printing words vertically in Python</p>
                </div>
               
                <div class="l-questions__item"><a class="l-questions__item-link" href="https://python.engineering/python-extract-words-from-given-string/"></a>
                    <div class="l-questions__item-tags">
                      <a href=""><span class="l-questions__item-tag violet">exp</span></a>
                    </div>
                    <p class="l-questions__item-title">Python Extract words from a given string</p>
                </div>
               
                <div class="l-questions__item"><a class="l-questions__item-link" href="https://python.engineering/cyclic-redundancy-check-python/"></a>
                    <div class="l-questions__item-tags">
                      <a href=""><span class="l-questions__item-tag violet">Python functions</span></a>
                    </div>
                    <p class="l-questions__item-title">Cyclic redundancy check in Python</p>
                </div>
               
                <div class="l-questions__item"><a class="l-questions__item-link" href="https://python.engineering/finding-mean-median-mode-in-python-without-libraries/"></a>
                    <div class="l-questions__item-tags">
                      <a href=""><span class="l-questions__item-tag violet">Counters</span></a>
                    </div>
                    <p class="l-questions__item-title">Finding mean, median, mode in Python without libraries</p>
                </div>
               
                <div class="l-questions__item"><a class="l-questions__item-link" href="https://python.engineering/python-append-suffix-prefix-to-strings-in-list/"></a>
                    <div class="l-questions__item-tags">
                      <a href=""><span class="l-questions__item-tag violet">cos</span></a>
                    </div>
                    <p class="l-questions__item-title">Python add suffix / add prefix to strings in a list</p>
                </div>
               
                <div class="l-questions__item"><a class="l-questions__item-link" href="https://python.engineering/24791987-why-do-i-get-pickle-eoferror-ran-out-of-input-reading-an-empty-file/"></a>
                    <div class="l-questions__item-tags">
                      <a href=""><span class="l-questions__item-tag violet">__dict__</span></a>
                    </div>
                    <p class="l-questions__item-title">Why do I get "Pickle - EOFError: Ran out of input" reading an empty file?</p>
                </div>
               
                <div class="l-questions__item"><a class="l-questions__item-link" href="https://python.engineering/python-move-element-to-end-of-the-list/"></a>
                    <div class="l-questions__item-tags">
                      <a href=""><span class="l-questions__item-tag violet">Python functions</span></a>
                    </div>
                    <p class="l-questions__item-title">Python - Move item to the end of the list</p>
                </div>
               
                <div class="l-questions__item"><a class="l-questions__item-link" href="https://python.engineering/python-printing-list-vertically/"></a>
                    <div class="l-questions__item-tags">
                      <a href=""><span class="l-questions__item-tag violet">Loops</span></a>
                    </div>
                    <p class="l-questions__item-title">Python - Print list vertically</p>
                </div>
                
            </div>
        </div>
    </div>     
<!-- /wiki -->   






<!-- new footer -->
    <footer class="footer">
        <div class="container">
            <div class="footer__row">
                <div class="footer__left"><img class="footer__logo" src="/wp-content/themes/nimani/img/footer-logo.svg" alt="Python Engineering">
                    <p class="footer__copyright">© 2017—2022 <br> Python Engineering Hub</p>

                    <p class="footer__desc">
<a href="/cat/wiki/" class="footer__nav-link">EN</a> | <a href="/cat/es_sp/" class="footer__nav-link">ES</a> | <a href="/cat/de_de/" class="footer__nav-link">DE</a> | <a href="/cat/fr_fr/" class="footer__nav-link">FR</a> | <a href="/cat/it_it/" class="footer__nav-link">IT</a> | <a href="/cat/ru_ru/" class="footer__nav-link">RU</a> | <a href="/cat/tr_tr/" class="footer__nav-link">TR</a> | <a href="/cat/pl_pl/" class="footer__nav-link">PL</a> | <a href="/cat/pt_pt/" class="footer__nav-link">PT</a> | <a href="/cat/ja_jp/" class="footer__nav-link">JP</a> | <a href="/cat/ko_kr/" class="footer__nav-link">KR</a> | <a href="/cat/zh_cn/" class="footer__nav-link">CN</a> | <a href="/cat/hi_in/" class="footer__nav-link">HI</a> | <a href="/cat/nl_nl/" class="footer__nav-link">NL</a>
                    </p>   
                    <br>                    
                    <p class="footer__desc">
                    Python.Engineering is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.com
                    </p>

                </div>
                <div class="footer__nav-col">
                    <p class="footer__nav-title">Python</p>
                    <ul class="footer__nav-list">
                        <li class="footer__nav-item"><a class="footer__nav-link" href="/cat/loops/">Loops</a></li>
                        <li class="footer__nav-item"><a class="footer__nav-link" href="/cat/counters/">Counters</a></li>
                        <li class="footer__nav-item"><a class="footer__nav-link" href="/cat/numpy/">NumPy</a></li>
                        <li class="footer__nav-item"><a class="footer__nav-link" href="/cat/nlp/">NLP</a></li>
                        <li class="footer__nav-item"><a class="footer__nav-link" href="/cat/regex/">Regular Expressions</a></li>
                    </ul>
                </div>
                <div class="footer__nav-col">
                    <p class="footer__nav-title">Wiki</p>
                    <ul class="footer__nav-list">
                        <li class="footer__nav-item"><a class="footer__nav-link" href="/cat/news/">Tech news</a></li>                        
                        <li class="footer__nav-item"><a class="footer__nav-link" href="/cat/wiki/">Python Wiki</a></li>
                        <li class="footer__nav-item"><a class="footer__nav-link" href="/cat/wiki/so/">StackOverflow</a></li>
                        <li class="footer__nav-item"><a class="footer__nav-link" href="/cat/php/">PHP</a></li>
                        <li class="footer__nav-item"><a class="footer__nav-link" href="/cat/javascript/">JavaScript</a></li>
                    </ul>
                </div>
                <div class="footer__nav-col">
                    <p class="footer__nav-title">Books</p>
                    <ul class="footer__nav-list">
                        <li class="footer__nav-item"><a class="footer__nav-link" href="/cat/books/">All books</a></li>
                        <li class="footer__nav-item"><a class="footer__nav-link" href="/cat/computations/">Computations</a></li>
                        <li class="footer__nav-item"><a class="footer__nav-link" href="/cat/development/">Development</a></li>
                        <li class="footer__nav-item"><a class="footer__nav-link" href="/cat/cryptography/">Cryptography</a></li>
                        <li class="footer__nav-item"><a class="footer__nav-link" href="/cat/beginners/">For dummies</a></li>
                        <li class="footer__nav-item"><a class="footer__nav-link" href="/cat/bigdata/">Big Data</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </footer>
    <script src="https://code.jquery.com/jquery-3.5.0.min.js"></script>
    <script src="/wp-content/themes/nimani/js/libs.js"></script>
    <script src="/wp-content/themes/nimani/js/index.js"></script>
    <script src="/wp-content/themes/nimani/js/vendor/lazysizes.min.js" async></script>
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-Q022WLXW4X" async></script>
    <script async src="https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/run_prettify.js?autoload=true&skin=desert&lang=python"></script>
    <script type="text/javascript">
        document.addEventListener("DOMContentLoaded", () => {
            let arrayCode = document.querySelectorAll('pre');
            arrayCode.forEach(element => {
                element.classList.add("prettyprint");
            });
        });        
    </script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', 'G-Q022WLXW4X');
    </script>


<!-- ===================== LEAVE POPUP ===================== 

    <script src="/wp-content/themes/nimani/js/ouibounce.js"></script>
    <script>
      // if you want to use the 'fire' or 'disable' fn,
      // you need to save OuiBounce to an object
      var _ouibounce = ouibounce(document.getElementById('ouibounce-modal'), {
        aggressive: true,
        timer: 0,
        delay: 1000,
        callback: function() { console.log('ouibounce fired!'); }
      });

      $('body').on('click', function() {
        $('#ouibounce-modal').hide();
      });

      $('#ouibounce-modal .modal-footer').on('click', function() {
        $('#ouibounce-modal').hide();
      });

      $('#ouibounce-modal .modal').on('click', function(e) {  e.stopPropagation();});
    </script>

    <script>
    $("#reload_form_button" ).click(function() {
        console.log("hui");
    $('#reload_form').load('/wp-content/themes/nimani/af.html');
    });
    </script>
    
 ===================== /LEAVE POPUP ===================== -->


</body>

</html>
<!-- /new footer -->