GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - google/python-subprocess32: A backport of the Python 3 subprocess module for use on Python 2.

This repository was archived by the owner on Oct 27, 2022. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

180 Commits
180 Commits

Folders and files

NameName
Last commit message
Last commit date
python3_redirect
python3_redirect
 
 
testdata
testdata
 
 
.appveyor.yml
.appveyor.yml
 
 
.travis.yml
.travis.yml
 
 
ChangeLog
ChangeLog
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
MANIFEST.in
MANIFEST.in
 
 
README.md
README.md
 
 
_posixsubprocess.c
_posixsubprocess.c
 
 
_posixsubprocess_config.h.in
_posixsubprocess_config.h.in
 
 
_posixsubprocess_helpers.c
_posixsubprocess_helpers.c
 
 
build-manylinux2014-wheel.sh
build-manylinux2014-wheel.sh
 
 
configure
configure
 
 
configure.ac
configure.ac
 
 
setup.cfg
setup.cfg
 
 
setup.py
setup.py
 
 
subprocess32.py
subprocess32.py
 
 
test
test
 
 
test_subprocess32.py
test_subprocess32.py
 
 

Repository files navigation

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]

About

A backport of the Python 3 subprocess module for use on Python 2.

pypi.python.org/pypi/subprocess32/

Topics

backportposix-platformspython2subprocess

Resources

Readme
License

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

172 stars

Watchers

2 watching

Forks

44 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.