[issue30692] Automatic upcast does not occur for custom classes

2017-06-17 Thread Ned Deily
Changes by Ned Deily : -- nosy: +amaury.forgeotdarc, belopolsky, meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue30692] Automatic upcast does not occur for custom classes

2017-06-17 Thread Ranger Harke
New submission from Ranger Harke: I have noticed that the automatic upcast mechanism which works for standard ctypes types does not appear to work for custom types with _as_parameter_ defined. Consider the following example (written for Mac OS X but just change the LoadLibrary call to test on a