empa-scientific-it / python-tutorial

Material for a Jupyter-based Python tutorial
MIT License
30 stars 9 forks source link

Complex to float doesn't raise error #233

Closed baffelli closed 4 months ago

baffelli commented 4 months ago

Describe the bug In the basic datatypes notebook, trying to convert a complex number to float raises a TypeError as expected. However, it doesn't print the error to the console unless it is surrounded by a try...except statement.

To Reproduce Steps to reproduce the behavior:

  1. ...

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Where did you run the tutorial?

Additional context Add any other context about the problem here.

despadam commented 4 months ago

Closing as duplicate, as all errors relevant to basic datatypes are now collected in #232