# Processing Python mode skipping error messages and running bad code

**URL:** <https://discourse.processing.org/t/processing-python-mode-skipping-error-messages-and-running-bad-code/36746>\
**Category:** Processing.py\
**Created:** [May 6, 2022, 12:56pm UTC](https://discourse.processing.org/t/processing-python-mode-skipping-error-messages-and-running-bad-code/36746 "2022-05-06T12:56:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tdwheeler](https://avatars.discourse-cdn.com/v4/letter/t/df705f/32.png) [@tdwheeler](https://discourse.processing.org/u/tdwheeler)\
**Post date:** [May 6, 2022, 12:56pm UTC](https://discourse.processing.org/t/processing-python-mode-skipping-error-messages-and-running-bad-code/36746/1 "2022-05-06T12:56:44Z")

</div>

I’m noticing that processing in Python mode is not returning a lot of errors to the console. For instance this:

```auto
def draw():
    number = 12
    for i in 10/number:
        print("this should be an error?")

```

should give me an error message that says:  
TypeError: ‘float’ (or ‘int’) object is not iterable

Instead nothing prints and the program still runs. This is happening with a lot of my code and making processing basically unusable. Any ideas of what could be going on?

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [May 6, 2022, 2:24pm UTC](https://discourse.processing.org/t/processing-python-mode-skipping-error-messages-and-running-bad-code/36746/2 "2022-05-06T14:24:33Z")

</div>

> [@tdwheeler](#):
>
> Should give me an error message that says:  
> TypeError: ‘float’ (or ‘int’) object is not iterable

 ![Python Mode TypeError](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/4/d/4dc1750d8acf1b26168e774e30443aed848e495b.png)

---

<div class="post-metadata">

**Author:** ![tdwheeler](https://avatars.discourse-cdn.com/v4/letter/t/df705f/32.png) [@tdwheeler](https://discourse.processing.org/u/tdwheeler)\
**Post date:** [May 6, 2022, 2:57pm UTC](https://discourse.processing.org/t/processing-python-mode-skipping-error-messages-and-running-bad-code/36746/3 "2022-05-06T14:57:43Z")

</div>

hi @GoToLoop

I don’t understand your post. Yes this is what it is supposed to do. It is not working this way on my computer.

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [May 6, 2022, 5:55pm UTC](https://discourse.processing.org/t/processing-python-mode-skipping-error-messages-and-running-bad-code/36746/4 "2022-05-06T17:55:03Z")

</div>

Just reporting that on my system (64-bit P3.5.4 on a Win8.1 desktop) it behaves as it should.

If you’re using Processing beta versions, I hope you learn not to trust them anymore.

---

<div class="post-metadata">

**Author:** ![tabreturn](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tabreturn/32/3697_2.png) [@tabreturn](https://discourse.processing.org/u/tabreturn)\
**Post date:** [May 6, 2022, 8:14pm UTC](https://discourse.processing.org/t/processing-python-mode-skipping-error-messages-and-running-bad-code/36746/5 "2022-05-06T20:14:25Z")

</div>

I’m assuming that you’re using Processing 4.x **beta**? I’d recommend Processing 3.5.4 for now (especially for Python Mode).

---

<div class="post-metadata">

**Author:** ![tdwheeler](https://avatars.discourse-cdn.com/v4/letter/t/df705f/32.png) [@tdwheeler](https://discourse.processing.org/u/tdwheeler)\
**Post date:** [May 7, 2022, 2:37pm UTC](https://discourse.processing.org/t/processing-python-mode-skipping-error-messages-and-running-bad-code/36746/6 "2022-05-07T14:37:02Z")

</div>

Ah ok I get it. Thanks!
