Coder Social home page Coder Social logo

inspect2's Introduction

inspect2

A backport of the Python 3.6 inspect module to Python 2.7-3.5.

This module was based on the code of the inspect module and its tests in the Python 3.6 standard library and modified to pass tests on earlier Python versions.

I have tried to follow these rules in writing the code:

  • Minimize changes relative to the 3.6 source. This should make backporting of future changes easier.
  • No support for old-style classes. Python 2 is hard enough without them.
  • All functions should be available on all versions. inspect2.iscoroutinefunction() just always returns False on Python versions that don't have async def.

inspect2's People

Contributors

jellezijlstra avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

inspect2's Issues

sdist tests fail

There are a lot of file missing from the sdist

[   30s] ____________________ ERROR collecting test/test_inspect2.py ____________________
[   30s] ImportError while importing test module '/home/abuild/rpmbuild/BUILD/inspect2-0.1.1/test/test_inspect2.py'.
[   30s] Hint: make sure your test modules/packages have valid Python names.
[   30s] Traceback:
[   30s] test/test_inspect2.py:63: in <module>
[   30s]     from . import inspect_fodder as mod
[   30s] E   ImportError: cannot import name inspect_fodder
[   30s] !!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!

running PyPI's check-manifest will help fix this.

Add LICENSE

To be packaged for a distro, the repository needs to include a LICENSE file.

Also it is highly desirable to include tests in the PyPI sdist, so they can be used to validate the package regularly when any dependency changes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.