[Python-checkins] r46899 - in python/trunk: Lib/ctypes/__init__.py Lib/ctypes/_endian.py Lib/ctypes/macholib/__init__.py Lib/ctypes/macholib/dyld.py Lib/ctypes/macholib/dylib.py Lib/ctypes/macholib/framework.py Lib/ctypes/util.py Lib/ctypes/wintypes.py Modules/_ctypes/_ctypes.c Modules/_ctypes/_ctypes_test.c Modules/_ctypes/callbacks.c Modules/_ctypes/callproc.c Modules/_ctypes/cfield.c Modules/_ctypes/ctypes.h Modules/_ctypes/ctypes_dlfcn.h Modules/_ctypes/malloc_closure.c Modules/_ctypes/stgdict.c
thomas.heller
python-checkins at python.org
Mon Jun 12 22:56:50 CEST 2006
Author: thomas.heller
Date: Mon Jun 12 22:56:48 2006
New Revision: 46899
Modified:
python/trunk/Lib/ctypes/__init__.py
python/trunk/Lib/ctypes/_endian.py
python/trunk/Lib/ctypes/macholib/__init__.py
python/trunk/Lib/ctypes/macholib/dyld.py
python/trunk/Lib/ctypes/macholib/dylib.py
python/trunk/Lib/ctypes/macholib/framework.py
python/trunk/Lib/ctypes/util.py
python/trunk/Lib/ctypes/wintypes.py
python/trunk/Modules/_ctypes/_ctypes.c
python/trunk/Modules/_ctypes/_ctypes_test.c
python/trunk/Modules/_ctypes/callbacks.c
python/trunk/Modules/_ctypes/callproc.c
python/trunk/Modules/_ctypes/cfield.c
python/trunk/Modules/_ctypes/ctypes.h
python/trunk/Modules/_ctypes/ctypes_dlfcn.h
python/trunk/Modules/_ctypes/malloc_closure.c
python/trunk/Modules/_ctypes/stgdict.c
Log:
Add pep-291 compatibility markers.
Modified: python/trunk/Lib/ctypes/__init__.py
==============================================================================
--- python/trunk/Lib/ctypes/__init__.py (original)
+++ python/trunk/Lib/ctypes/__init__.py Mon Jun 12 22:56:48 2006
@@ -1,3 +1,6 @@
+######################################################################
+# 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
Modified: python/trunk/Lib/ctypes/_endian.py
==============================================================================
--- python/trunk/Lib/ctypes/_endian.py (original)
+++ python/trunk/Lib/ctypes/_endian.py Mon Jun 12 22:56:48 2006
@@ -1,3 +1,6 @@
+######################################################################
+# This file should be kept compatible with Python 2.3, see PEP 291. #
+######################################################################
import sys
from ctypes import *
Modified: python/trunk/Lib/ctypes/macholib/__init__.py
==============================================================================
--- python/trunk/Lib/ctypes/macholib/__init__.py (original)
+++ python/trunk/Lib/ctypes/macholib/__init__.py Mon Jun 12 22:56:48 2006
@@ -1,3 +1,6 @@
+######################################################################
+# This file should be kept compatible with Python 2.3, see PEP 291. #
+######################################################################
"""
Enough Mach-O to make your head spin.
Modified: python/trunk/Lib/ctypes/macholib/dyld.py
==============================================================================
--- python/trunk/Lib/ctypes/macholib/dyld.py (original)
+++ python/trunk/Lib/ctypes/macholib/dyld.py Mon Jun 12 22:56:48 2006
@@ -1,3 +1,6 @@
+######################################################################
+# This file should be kept compatible with Python 2.3, see PEP 291. #
+######################################################################
"""
dyld emulation
"""
Modified: python/trunk/Lib/ctypes/macholib/dylib.py
==============================================================================
--- python/trunk/Lib/ctypes/macholib/dylib.py (original)
+++ python/trunk/Lib/ctypes/macholib/dylib.py Mon Jun 12 22:56:48 2006
@@ -1,3 +1,6 @@
+######################################################################
+# This file should be kept compatible with Python 2.3, see PEP 291. #
+######################################################################
"""
Generic dylib path manipulation
"""
Modified: python/trunk/Lib/ctypes/macholib/framework.py
==============================================================================
--- python/trunk/Lib/ctypes/macholib/framework.py (original)
+++ python/trunk/Lib/ctypes/macholib/framework.py Mon Jun 12 22:56:48 2006
@@ -1,3 +1,6 @@
+######################################################################
+# This file should be kept compatible with Python 2.3, see PEP 291. #
+######################################################################
"""
Generic framework path manipulation
"""
Modified: python/trunk/Lib/ctypes/util.py
==============================================================================
--- python/trunk/Lib/ctypes/util.py (original)
+++ python/trunk/Lib/ctypes/util.py Mon Jun 12 22:56:48 2006
@@ -1,3 +1,6 @@
+######################################################################
+# 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.
Modified: python/trunk/Lib/ctypes/wintypes.py
==============================================================================
--- python/trunk/Lib/ctypes/wintypes.py (original)
+++ python/trunk/Lib/ctypes/wintypes.py Mon Jun 12 22:56:48 2006
@@ -1,3 +1,6 @@
+######################################################################
+# This file should be kept compatible with Python 2.3, see PEP 291. #
+######################################################################
# XXX This module needs cleanup.
from ctypes import *
Modified: python/trunk/Modules/_ctypes/_ctypes.c
==============================================================================
--- python/trunk/Modules/_ctypes/_ctypes.c (original)
+++ python/trunk/Modules/_ctypes/_ctypes.c Mon Jun 12 22:56:48 2006
@@ -1,3 +1,8 @@
+/*****************************************************************
+ This file should be kept compatible with Python 2.3, see PEP 291.
+ *****************************************************************/
+
+
/*
ToDo:
Modified: python/trunk/Modules/_ctypes/_ctypes_test.c
==============================================================================
--- python/trunk/Modules/_ctypes/_ctypes_test.c (original)
+++ python/trunk/Modules/_ctypes/_ctypes_test.c Mon Jun 12 22:56:48 2006
@@ -1,3 +1,8 @@
+/*****************************************************************
+ This file should be kept compatible with Python 2.3, see PEP 291.
+ *****************************************************************/
+
+
#include <Python.h>
/*
Modified: python/trunk/Modules/_ctypes/callbacks.c
==============================================================================
--- python/trunk/Modules/_ctypes/callbacks.c (original)
+++ python/trunk/Modules/_ctypes/callbacks.c Mon Jun 12 22:56:48 2006
@@ -1,3 +1,7 @@
+/*****************************************************************
+ This file should be kept compatible with Python 2.3, see PEP 291.
+ *****************************************************************/
+
#include "Python.h"
#include "compile.h" /* required only for 2.3, as it seems */
#include "frameobject.h"
Modified: python/trunk/Modules/_ctypes/callproc.c
==============================================================================
--- python/trunk/Modules/_ctypes/callproc.c (original)
+++ python/trunk/Modules/_ctypes/callproc.c Mon Jun 12 22:56:48 2006
@@ -1,3 +1,8 @@
+/*****************************************************************
+ This file should be kept compatible with Python 2.3, see PEP 291.
+ *****************************************************************/
+
+
/*
* History: First version dated from 3/97, derived from my SCMLIB version
* for win16.
Modified: python/trunk/Modules/_ctypes/cfield.c
==============================================================================
--- python/trunk/Modules/_ctypes/cfield.c (original)
+++ python/trunk/Modules/_ctypes/cfield.c Mon Jun 12 22:56:48 2006
@@ -1,3 +1,7 @@
+/*****************************************************************
+ This file should be kept compatible with Python 2.3, see PEP 291.
+ *****************************************************************/
+
#include "Python.h"
#include <ffi.h>
Modified: python/trunk/Modules/_ctypes/ctypes.h
==============================================================================
--- python/trunk/Modules/_ctypes/ctypes.h (original)
+++ python/trunk/Modules/_ctypes/ctypes.h Mon Jun 12 22:56:48 2006
@@ -1,4 +1,6 @@
-/******************************************************************/
+/*****************************************************************
+ This file should be kept compatible with Python 2.3, see PEP 291.
+ *****************************************************************/
#if (PY_VERSION_HEX < 0x02050000)
typedef int Py_ssize_t;
Modified: python/trunk/Modules/_ctypes/ctypes_dlfcn.h
==============================================================================
--- python/trunk/Modules/_ctypes/ctypes_dlfcn.h (original)
+++ python/trunk/Modules/_ctypes/ctypes_dlfcn.h Mon Jun 12 22:56:48 2006
@@ -1,4 +1,6 @@
-/******************************************************************/
+/*****************************************************************
+ This file should be kept compatible with Python 2.3, see PEP 291.
+ *****************************************************************/
#ifndef _CTYPES_DLFCN_H_
#define _CTYPES_DLFCN_H_
Modified: python/trunk/Modules/_ctypes/malloc_closure.c
==============================================================================
--- python/trunk/Modules/_ctypes/malloc_closure.c (original)
+++ python/trunk/Modules/_ctypes/malloc_closure.c Mon Jun 12 22:56:48 2006
@@ -1,3 +1,7 @@
+/*****************************************************************
+ This file should be kept compatible with Python 2.3, see PEP 291.
+ *****************************************************************/
+
#include <Python.h>
#include <ffi.h>
#ifdef MS_WIN32
Modified: python/trunk/Modules/_ctypes/stgdict.c
==============================================================================
--- python/trunk/Modules/_ctypes/stgdict.c (original)
+++ python/trunk/Modules/_ctypes/stgdict.c Mon Jun 12 22:56:48 2006
@@ -1,3 +1,7 @@
+/*****************************************************************
+ This file should be kept compatible with Python 2.3, see PEP 291.
+ *****************************************************************/
+
#include "Python.h"
#include <ffi.h>
#ifdef MS_WIN32
More information about the Python-checkins
mailing list