Message261408
"Then it is no bug that it crashes python?"
The bug is your program creating inconsistent data. Without ctypes, you cannot create such inconsistent data.
"Is a crash not a bug?"
There are various ways to "crash" Python, but most of them are deliberate bugs. For example:
haypo@selma$ python3
Python 3.4.3 (default, Jun 29 2015, 12:16:01)
[GCC 5.1.1 20150618 (Red Hat 5.1.1-4)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ctypes
>>> ctypes.string_at(0)
Erreur de segmentation (core dumped)
The ctypes doesn't prevent you from making mistakes. If you use ctypes, you must be very careful and understand what you are doing. |
|
Date |
User |
Action |
Args |
2016-03-09 09:03:19 | vstinner | set | recipients:
+ vstinner, brett.cannon, pabstersac |
2016-03-09 09:03:19 | vstinner | set | messageid: <1457514199.1.0.591654866854.issue26508@psf.upfronthosting.co.za> |
2016-03-09 09:03:19 | vstinner | link | issue26508 messages |
2016-03-09 09:03:18 | vstinner | create | |
|