This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Ivan.Pozdeev
Recipients Christopher Meng, Ivan.Pozdeev, eryksun, petr.viktorin
Date 2015-10-24.21:21:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1445721698.72.0.0142372177536.issue24747@psf.upfronthosting.co.za>
In-reply-to
Content
I wouldn't call it so carved in stone:

1) The note at `ctypes.c_int' (https://docs.python.org/2/library/ctypes.html?highlight=c_int#ctypes.c_int) is meant for explicit conversion - since the entry is about using `c_int' is Python code, not converting something to `int' anywhere in Python's codebase. (thus, eryksun's statement is but a liberal interpretation)

2) 15.17.1.3. (https://docs.python.org/2/library/ctypes.html?highlight=c_int#calling-functions) is a tutorial, rather than reference, section, and as such, is not an authoritative source. And the corresponding reference section, 15.17.2.3. (https://docs.python.org/2/library/ctypes.html?highlight=c_int#foreign-functions) has nothing of the kind.
Basically, when seen in a non-normative text, such a piece of information is interpreted as a "taking into a secret": "this is what happens behind the scenes - so you better understand it - but don't rely on this too much".

Anyway, to produce convincing evidence to change anything, one probably needs to dig up the rationale for the current behaviour and see what adheres to it / if it still stands.

Sure, this violates Python Zen (koans 2 and 12), yet we probably need something better that this to convince core devs that this is a _bug_.
History
Date User Action Args
2015-10-24 21:21:38Ivan.Pozdeevsetrecipients: + Ivan.Pozdeev, petr.viktorin, eryksun, Christopher Meng
2015-10-24 21:21:38Ivan.Pozdeevsetmessageid: <1445721698.72.0.0142372177536.issue24747@psf.upfronthosting.co.za>
2015-10-24 21:21:38Ivan.Pozdeevlinkissue24747 messages
2015-10-24 21:21:37Ivan.Pozdeevcreate