Code Monkey home page Code Monkey logo

python-subprocess32's Introduction

subprocess32

PyPI version POSIX Build Status Windows Build Status

This is a backport of the Python 3 subprocess module for use on Python 2. This code has not been tested on Windows or other non-POSIX platforms.

subprocess32 includes many important reliability bug fixes relevant on POSIX platforms. The most important of which is a C extension module used internally to handle the code path between fork() and exec(). This module is reliable when an application is using threads.

Refer to the Python 3.5 subprocess documentation for usage information.

  • Timeout support backported from Python 3.3 is included.
  • The run() API from Python 3.5 was backported in subprocess32 3.5.0.
  • Otherwise features are frozen at the 3.2 level.

Usage

The recommend pattern for cross platform code is to use the following:

if os.name == 'posix' and sys.version_info[0] < 3:
    import subprocess32 as subprocess
else:
    import subprocess

Or if you fully control your POSIX Python 2.7 installation, this can serve as a replacement for its subprocess module. Users will thank you by not filing concurrency bugs.

Got Bugs?

Try to reproduce them on the latest Python 3.x itself and file bug reports on bugs.python.org. Add gregory.p.smith to the Nosy list.

If you have can prove that the issue is specifically with this backport and not a problem in Python 3 itself, feel free to use the github issue tracker for others to collaborate with you on a fix, but do not expect any support.

Python 2 has reached EOL, as has this project.

-- Gregory P. Smith [email protected] [Google LLC]

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.