Files
typeshed/stdlib/2
Ran Benita c8e7d98c1f Allow function.__code__ in Python 2 (#3152)
The following code works:

    >>> print(sys.version)
    2.7.16 (default, Mar 11 2019, 18:59:25)
    >>> def f(): pass
    >>> print(f.__code__)
    <code object f at 0x7f8534ecc8a0, file "<stdin>", line 1>
    >>> isinstance(f.__code__, types.CodeType)
    True

but it didn't type-check with `mypy --python-version 2.7`.
2019-07-26 07:40:22 -07:00
..
2016-10-26 16:24:49 -07:00
2016-10-26 16:24:49 -07:00
2016-10-26 16:24:49 -07:00
2016-10-26 16:24:49 -07:00
2016-10-26 16:24:49 -07:00
2017-04-02 15:01:17 -07:00
2017-04-30 14:16:30 -07:00
2016-10-26 16:24:49 -07:00
2018-10-24 07:20:53 -07:00
2016-10-26 16:24:49 -07:00
2017-04-24 18:53:47 -07:00
2016-12-19 21:52:56 -08:00
2017-11-13 06:56:24 -08:00
2017-05-31 12:07:21 -07:00
2016-10-26 16:24:49 -07:00
2018-10-24 07:20:53 -07:00
2018-11-23 09:51:44 -08:00
2018-11-23 09:51:44 -08:00