-######################################################################
-# This file should be kept compatible with Python 2.3, see PEP 291. #
-######################################################################
"""create and manipulate C data types in Python"""
import os as _os, sys as _sys
-######################################################################
-# This file should be kept compatible with Python 2.3, see PEP 291. #
-######################################################################
import sys
from ctypes import *
-######################################################################
-# This file should be kept compatible with Python 2.3, see PEP 291. #
-######################################################################
"""
Enough Mach-O to make your head spin.
-######################################################################
-# This file should be kept compatible with Python 2.3, see PEP 291. #
-######################################################################
"""
dyld emulation
"""
-######################################################################
-# This file should be kept compatible with Python 2.3, see PEP 291. #
-######################################################################
"""
Generic dylib path manipulation
"""
-######################################################################
-# This file should be kept compatible with Python 2.3, see PEP 291. #
-######################################################################
"""
Generic framework path manipulation
"""
"(Phone) <type 'exceptions.TypeError'>: "
"expected string or Unicode object, int found")
else:
+ # Compatibility no longer strictly required
self.assertEqual(msg,
"(Phone) exceptions.TypeError: "
"expected string or Unicode object, int found")
-######################################################################
-# This file should be kept compatible with Python 2.3, see PEP 291. #
-######################################################################
import sys, os
# find_library(name) returns the pathname of a library, or None.
-######################################################################
-# This file should be kept compatible with Python 2.3, see PEP 291. #
-######################################################################
-
# The most useful windows datatypes
from ctypes import *
"""Find modules used by a script, using introspection."""
-# This module should be kept compatible with Python 2.2, see PEP 291.
from __future__ import generators
import dis
if hasattr(sys.__stdout__, "newlines"):
READ_MODE = "U" # universal line endings
else:
- # remain compatible with Python < 2.3
+ # Python < 2.3 compatibility, no longer strictly required
READ_MODE = "r"
LOAD_CONST = dis.opmap['LOAD_CONST']
Library
-------
+- Removed the requirements for the ctypes and modulefinder modules to be
+ compatible with earlier Python versions.
+
- Issue #22274: In the subprocess module, allow stderr to be redirected to
stdout even when stdout is not redirected. Patch by Akira Li.
/*****************************************************************
- This file should be kept compatible with Python 2.3, see PEP 291.
+ This file contains remnant Python 2.3 compatibility code that is no longer
+ strictly required.
*****************************************************************/
-/*****************************************************************
- This file should be kept compatible with Python 2.3, see PEP 291.
- *****************************************************************/
-
-
#include <Python.h>
/*
- Backwards compatibility:
+ Backwards compatibility, no longer strictly required:
Python2.2 used LONG_LONG instead of PY_LONG_LONG
*/
#if defined(HAVE_LONG_LONG) && !defined(PY_LONG_LONG)
/*****************************************************************
- This file should be kept compatible with Python 2.3, see PEP 291.
+ This file contains remnant Python 2.3 compatibility code that is no longer
+ strictly required.
*****************************************************************/
#include "Python.h"
/*****************************************************************
- This file should be kept compatible with Python 2.3, see PEP 291.
+ This file contains remnant Python 2.3 compatibility code that is no longer
+ strictly required.
*****************************************************************/
/*****************************************************************
- This file should be kept compatible with Python 2.3, see PEP 291.
+ This file contains remnant Python 2.3 compatibility code that is no longer
+ strictly required.
*****************************************************************/
#include "Python.h"
/*****************************************************************
- This file should be kept compatible with Python 2.3, see PEP 291.
+ This file contains remnant Python 2.3 compatibility code that is no longer
+ strictly required.
*****************************************************************/
#if defined (__SVR4) && defined (__sun)
-/*****************************************************************
- This file should be kept compatible with Python 2.3, see PEP 291.
- *****************************************************************/
-
#ifndef _CTYPES_DLFCN_H_
#define _CTYPES_DLFCN_H_
-/*****************************************************************
- This file should be kept compatible with Python 2.3, see PEP 291.
- *****************************************************************/
-
#include <Python.h>
#include <ffi.h>
#ifdef MS_WIN32
-/*****************************************************************
- This file should be kept compatible with Python 2.3, see PEP 291.
- *****************************************************************/
-
#include "Python.h"
#include <ffi.h>
#ifdef MS_WIN32
Py_DECREF(pair);
PyErr_Format(PyExc_TypeError,
#if (PY_VERSION_HEX < 0x02050000)
+ /* Compatibility no longer strictly required */
"second item in _fields_ tuple (index %d) must be a C type",
#else
"second item in _fields_ tuple (index %zd) must be a C type",