Staging
v0.5.1
https://github.com/python/cpython
Revision 353c4bab7d103cb66391a83f3c27cd75ae13a754 authored by Miss Islington (bot) on 22 June 2020, 08:20:56 UTC, committed by GitHub on 22 June 2020, 08:20:56 UTC

Unexpected errors in calling the __iter__ method are no longer
masked by TypeError in the "in" operator and functions
operator.contains(), operator.indexOf() and operator.countOf().
(cherry picked from commit cafe1b6e9d3594a34aba50e872d4198296ffaadf)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 parent f19ed6b
Raw File
Tip revision: 353c4bab7d103cb66391a83f3c27cd75ae13a754 authored by Miss Islington (bot) on 22 June 2020, 08:20:56 UTC
bpo-40824: Do not mask errors in __iter__ in "in" and the operator module. (GH-20537)
Tip revision: 353c4ba
python.c
/* Minimal main program -- everything is loaded from the library */

#include "Python.h"

#ifdef MS_WINDOWS
int
wmain(int argc, wchar_t **argv)
{
    return Py_Main(argc, argv);
}
#else
int
main(int argc, char **argv)
{
    return Py_BytesMain(argc, argv);
}
#endif
back to top