Staging
v0.5.1
https://github.com/python/cpython
Revision 960fca1a5887a277fd6031cf4c4b6fb31b08ebf5 authored by Miss Islington (bot) on 08 December 2019, 12:49:07 UTC, committed by GitHub on 08 December 2019, 12:49:07 UTC

now contextvars.ContextVar "__class_getitem__" method returns ContextVar class, not None.

https://bugs.python.org/issue38979

Automerge-Triggered-By: @asvetlov
(cherry picked from commit 28c91631c24e53713ad0e8a2bbae716373f5e53d)

Co-authored-by: AMIR <31338382+amiremohamadi@users.noreply.github.com>
1 parent 9d3cacd
Raw File
Tip revision: 960fca1a5887a277fd6031cf4c4b6fb31b08ebf5 authored by Miss Islington (bot) on 08 December 2019, 12:49:07 UTC
bpo-38979: fix ContextVar "__class_getitem__" method (GH-17497)
Tip revision: 960fca1
python.c
/* Minimal main program -- everything is loaded from the library */

#include "Python.h"
#include "pycore_pylifecycle.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