1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Upgrade to Python-2.2.

PR:		36977
Submitted by:	Hye-Shik Chang <perky@fallin.lv>
This commit is contained in:
Thomas Gellekum 2002-04-12 10:33:42 +00:00
parent 9929338062
commit 70f395a1f5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=57615
45 changed files with 68 additions and 706 deletions

View File

@ -79,7 +79,7 @@ Python_Include_MAINTAINER= tg@FreeBSD.org
_PYTHON_VERSION!= (python -c 'import sys; print sys.version[:3]') 2> /dev/null \
|| echo 2.2
PYTHON_VERSION?= python${_PYTHON_VERSION}
_PYTHON_PORTVERSION= 2.2
_PYTHON_PORTVERSION= 2.2.1
PYTHON_PORTVERSION!= (${PYTHON_VERSION} -c 'import string, sys; \
print string.split(sys.version)[0]') 2> /dev/null \
|| echo ${_PYTHON_PORTVERSION}
@ -91,7 +91,7 @@ PYXML= ${PYTHON_SITELIBDIR}/_xmlplus/__init__.py:${PORTSDIR}/textproc/py-xml
PYTHON_DISTFILE= Python-${_PYTHON_PORTVERSION}.tgz
PYTHON_PORTSDIR= ${PORTSDIR}/lang/python
PYTHON_REL= 220
PYTHON_REL= 221
PYTHON_SUFFIX= 22
PYTHON_WRKSRC= ${WRKDIR}/Python-${_PYTHON_PORTVERSION}

View File

@ -6,8 +6,7 @@
#
PORTNAME= python
PORTVERSION= 2.2
PORTREVISION= 2
PORTVERSION= 2.2.1
CATEGORIES= lang python ipv6
MASTER_SITES= http://www.python.org/ftp/python/${PORTVERSION}/ \
${MASTER_SITE_SOURCEFORGE} \

View File

@ -1 +1 @@
MD5 (python/Python-2.2.tgz) = 87febf0780c8e18454022d34b2ca70a0
MD5 (python/Python-2.2.1.tgz) = e7012d611602b62e36073c2fd02396a3

View File

@ -1,56 +0,0 @@
Index: Include/abstract.h
===================================================================
RCS file: /home/python/cvs/python/dist/src/Include/abstract.h,v
retrieving revision 2.42
retrieving revision 2.43
diff -u -r2.42 -r2.43
--- Include/abstract.h 28 Nov 2001 16:20:07 -0000 2.42
+++ Include/abstract.h 5 Jan 2002 10:50:30 -0000 2.43
@@ -445,6 +445,14 @@
statement: o[key]=v.
*/
+ DL_IMPORT(int) PyObject_DelItemString(PyObject *o, char *key);
+
+ /*
+ Remove the mapping for object, key, from the object *o.
+ Returns -1 on failure. This is equivalent to
+ the Python statement: del o[key].
+ */
+
DL_IMPORT(int) PyObject_DelItem(PyObject *o, PyObject *key);
/*
Index: Objects/abstract.c
===================================================================
RCS file: /home/python/cvs/python/dist/src/Objects/abstract.c,v
retrieving revision 2.93
retrieving revision 2.94
diff -u -r2.93 -r2.94
--- Objects/abstract.c 24 Nov 2001 18:24:47 -0000 2.93
+++ Objects/abstract.c 5 Jan 2002 10:50:30 -0000 2.94
@@ -174,6 +174,24 @@
return -1;
}
+int
+PyObject_DelItemString(PyObject *o, char *key)
+{
+ PyObject *okey;
+ int ret;
+
+ if (o == NULL || key == NULL) {
+ null_error();
+ return -1;
+ }
+ okey = PyString_FromString(key);
+ if (okey == NULL)
+ return -1;
+ ret = PyObject_DelItem(o, okey);
+ Py_DECREF(okey);
+ return ret;
+}
+
int PyObject_AsCharBuffer(PyObject *obj,
const char **buffer,
int *buffer_len)

View File

@ -1400,6 +1400,7 @@ lib/%%PYTHON_VERSION%%/test/data/msg_19.txt
lib/%%PYTHON_VERSION%%/test/data/msg_20.txt
lib/%%PYTHON_VERSION%%/test/data/msg_21.txt
lib/%%PYTHON_VERSION%%/test/data/msg_22.txt
lib/%%PYTHON_VERSION%%/test/data/msg_23.txt
lib/%%PYTHON_VERSION%%/test/double_const.py
lib/%%PYTHON_VERSION%%/test/double_const.pyc
lib/%%PYTHON_VERSION%%/test/double_const.pyo
@ -1827,6 +1828,9 @@ lib/%%PYTHON_VERSION%%/test/test_mmap.pyo
lib/%%PYTHON_VERSION%%/test/test_mutants.py
lib/%%PYTHON_VERSION%%/test/test_mutants.pyc
lib/%%PYTHON_VERSION%%/test/test_mutants.pyo
lib/%%PYTHON_VERSION%%/test/test_netrc.py
lib/%%PYTHON_VERSION%%/test/test_netrc.pyc
lib/%%PYTHON_VERSION%%/test/test_netrc.pyo
lib/%%PYTHON_VERSION%%/test/test_new.py
lib/%%PYTHON_VERSION%%/test/test_new.pyc
lib/%%PYTHON_VERSION%%/test/test_new.pyo
@ -2232,10 +2236,6 @@ share/emacs/site-lisp/python-mode.el
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/embed/demo.c
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/embed/importexc.c
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/embed/loop.c
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/README
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/make_clean
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/make_shared
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/make_static
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/imputil/importers.py
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/md5test/README
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/md5test/foo
@ -2560,7 +2560,6 @@ share/emacs/site-lisp/python-mode.el
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/metaclasses
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/md5test
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/imputil
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/extend
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/embed
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/curses
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/comparisons

View File

@ -6,8 +6,7 @@
#
PORTNAME= python
PORTVERSION= 2.2
PORTREVISION= 2
PORTVERSION= 2.2.1
CATEGORIES= lang python ipv6
MASTER_SITES= http://www.python.org/ftp/python/${PORTVERSION}/ \
${MASTER_SITE_SOURCEFORGE} \

View File

@ -1 +1 @@
MD5 (python/Python-2.2.tgz) = 87febf0780c8e18454022d34b2ca70a0
MD5 (python/Python-2.2.1.tgz) = e7012d611602b62e36073c2fd02396a3

View File

@ -1,56 +0,0 @@
Index: Include/abstract.h
===================================================================
RCS file: /home/python/cvs/python/dist/src/Include/abstract.h,v
retrieving revision 2.42
retrieving revision 2.43
diff -u -r2.42 -r2.43
--- Include/abstract.h 28 Nov 2001 16:20:07 -0000 2.42
+++ Include/abstract.h 5 Jan 2002 10:50:30 -0000 2.43
@@ -445,6 +445,14 @@
statement: o[key]=v.
*/
+ DL_IMPORT(int) PyObject_DelItemString(PyObject *o, char *key);
+
+ /*
+ Remove the mapping for object, key, from the object *o.
+ Returns -1 on failure. This is equivalent to
+ the Python statement: del o[key].
+ */
+
DL_IMPORT(int) PyObject_DelItem(PyObject *o, PyObject *key);
/*
Index: Objects/abstract.c
===================================================================
RCS file: /home/python/cvs/python/dist/src/Objects/abstract.c,v
retrieving revision 2.93
retrieving revision 2.94
diff -u -r2.93 -r2.94
--- Objects/abstract.c 24 Nov 2001 18:24:47 -0000 2.93
+++ Objects/abstract.c 5 Jan 2002 10:50:30 -0000 2.94
@@ -174,6 +174,24 @@
return -1;
}
+int
+PyObject_DelItemString(PyObject *o, char *key)
+{
+ PyObject *okey;
+ int ret;
+
+ if (o == NULL || key == NULL) {
+ null_error();
+ return -1;
+ }
+ okey = PyString_FromString(key);
+ if (okey == NULL)
+ return -1;
+ ret = PyObject_DelItem(o, okey);
+ Py_DECREF(okey);
+ return ret;
+}
+
int PyObject_AsCharBuffer(PyObject *obj,
const char **buffer,
int *buffer_len)

View File

@ -1400,6 +1400,7 @@ lib/%%PYTHON_VERSION%%/test/data/msg_19.txt
lib/%%PYTHON_VERSION%%/test/data/msg_20.txt
lib/%%PYTHON_VERSION%%/test/data/msg_21.txt
lib/%%PYTHON_VERSION%%/test/data/msg_22.txt
lib/%%PYTHON_VERSION%%/test/data/msg_23.txt
lib/%%PYTHON_VERSION%%/test/double_const.py
lib/%%PYTHON_VERSION%%/test/double_const.pyc
lib/%%PYTHON_VERSION%%/test/double_const.pyo
@ -1827,6 +1828,9 @@ lib/%%PYTHON_VERSION%%/test/test_mmap.pyo
lib/%%PYTHON_VERSION%%/test/test_mutants.py
lib/%%PYTHON_VERSION%%/test/test_mutants.pyc
lib/%%PYTHON_VERSION%%/test/test_mutants.pyo
lib/%%PYTHON_VERSION%%/test/test_netrc.py
lib/%%PYTHON_VERSION%%/test/test_netrc.pyc
lib/%%PYTHON_VERSION%%/test/test_netrc.pyo
lib/%%PYTHON_VERSION%%/test/test_new.py
lib/%%PYTHON_VERSION%%/test/test_new.pyc
lib/%%PYTHON_VERSION%%/test/test_new.pyo
@ -2232,10 +2236,6 @@ share/emacs/site-lisp/python-mode.el
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/embed/demo.c
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/embed/importexc.c
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/embed/loop.c
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/README
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/make_clean
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/make_shared
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/make_static
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/imputil/importers.py
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/md5test/README
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/md5test/foo
@ -2560,7 +2560,6 @@ share/emacs/site-lisp/python-mode.el
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/metaclasses
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/md5test
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/imputil
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/extend
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/embed
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/curses
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/comparisons

View File

@ -6,8 +6,7 @@
#
PORTNAME= python
PORTVERSION= 2.2
PORTREVISION= 2
PORTVERSION= 2.2.1
CATEGORIES= lang python ipv6
MASTER_SITES= http://www.python.org/ftp/python/${PORTVERSION}/ \
${MASTER_SITE_SOURCEFORGE} \

View File

@ -1 +1 @@
MD5 (python/Python-2.2.tgz) = 87febf0780c8e18454022d34b2ca70a0
MD5 (python/Python-2.2.1.tgz) = e7012d611602b62e36073c2fd02396a3

View File

@ -1,56 +0,0 @@
Index: Include/abstract.h
===================================================================
RCS file: /home/python/cvs/python/dist/src/Include/abstract.h,v
retrieving revision 2.42
retrieving revision 2.43
diff -u -r2.42 -r2.43
--- Include/abstract.h 28 Nov 2001 16:20:07 -0000 2.42
+++ Include/abstract.h 5 Jan 2002 10:50:30 -0000 2.43
@@ -445,6 +445,14 @@
statement: o[key]=v.
*/
+ DL_IMPORT(int) PyObject_DelItemString(PyObject *o, char *key);
+
+ /*
+ Remove the mapping for object, key, from the object *o.
+ Returns -1 on failure. This is equivalent to
+ the Python statement: del o[key].
+ */
+
DL_IMPORT(int) PyObject_DelItem(PyObject *o, PyObject *key);
/*
Index: Objects/abstract.c
===================================================================
RCS file: /home/python/cvs/python/dist/src/Objects/abstract.c,v
retrieving revision 2.93
retrieving revision 2.94
diff -u -r2.93 -r2.94
--- Objects/abstract.c 24 Nov 2001 18:24:47 -0000 2.93
+++ Objects/abstract.c 5 Jan 2002 10:50:30 -0000 2.94
@@ -174,6 +174,24 @@
return -1;
}
+int
+PyObject_DelItemString(PyObject *o, char *key)
+{
+ PyObject *okey;
+ int ret;
+
+ if (o == NULL || key == NULL) {
+ null_error();
+ return -1;
+ }
+ okey = PyString_FromString(key);
+ if (okey == NULL)
+ return -1;
+ ret = PyObject_DelItem(o, okey);
+ Py_DECREF(okey);
+ return ret;
+}
+
int PyObject_AsCharBuffer(PyObject *obj,
const char **buffer,
int *buffer_len)

View File

@ -1400,6 +1400,7 @@ lib/%%PYTHON_VERSION%%/test/data/msg_19.txt
lib/%%PYTHON_VERSION%%/test/data/msg_20.txt
lib/%%PYTHON_VERSION%%/test/data/msg_21.txt
lib/%%PYTHON_VERSION%%/test/data/msg_22.txt
lib/%%PYTHON_VERSION%%/test/data/msg_23.txt
lib/%%PYTHON_VERSION%%/test/double_const.py
lib/%%PYTHON_VERSION%%/test/double_const.pyc
lib/%%PYTHON_VERSION%%/test/double_const.pyo
@ -1827,6 +1828,9 @@ lib/%%PYTHON_VERSION%%/test/test_mmap.pyo
lib/%%PYTHON_VERSION%%/test/test_mutants.py
lib/%%PYTHON_VERSION%%/test/test_mutants.pyc
lib/%%PYTHON_VERSION%%/test/test_mutants.pyo
lib/%%PYTHON_VERSION%%/test/test_netrc.py
lib/%%PYTHON_VERSION%%/test/test_netrc.pyc
lib/%%PYTHON_VERSION%%/test/test_netrc.pyo
lib/%%PYTHON_VERSION%%/test/test_new.py
lib/%%PYTHON_VERSION%%/test/test_new.pyc
lib/%%PYTHON_VERSION%%/test/test_new.pyo
@ -2232,10 +2236,6 @@ share/emacs/site-lisp/python-mode.el
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/embed/demo.c
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/embed/importexc.c
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/embed/loop.c
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/README
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/make_clean
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/make_shared
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/make_static
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/imputil/importers.py
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/md5test/README
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/md5test/foo
@ -2560,7 +2560,6 @@ share/emacs/site-lisp/python-mode.el
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/metaclasses
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/md5test
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/imputil
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/extend
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/embed
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/curses
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/comparisons

View File

@ -6,8 +6,7 @@
#
PORTNAME= python
PORTVERSION= 2.2
PORTREVISION= 2
PORTVERSION= 2.2.1
CATEGORIES= lang python ipv6
MASTER_SITES= http://www.python.org/ftp/python/${PORTVERSION}/ \
${MASTER_SITE_SOURCEFORGE} \

View File

@ -1 +1 @@
MD5 (python/Python-2.2.tgz) = 87febf0780c8e18454022d34b2ca70a0
MD5 (python/Python-2.2.1.tgz) = e7012d611602b62e36073c2fd02396a3

View File

@ -1,56 +0,0 @@
Index: Include/abstract.h
===================================================================
RCS file: /home/python/cvs/python/dist/src/Include/abstract.h,v
retrieving revision 2.42
retrieving revision 2.43
diff -u -r2.42 -r2.43
--- Include/abstract.h 28 Nov 2001 16:20:07 -0000 2.42
+++ Include/abstract.h 5 Jan 2002 10:50:30 -0000 2.43
@@ -445,6 +445,14 @@
statement: o[key]=v.
*/
+ DL_IMPORT(int) PyObject_DelItemString(PyObject *o, char *key);
+
+ /*
+ Remove the mapping for object, key, from the object *o.
+ Returns -1 on failure. This is equivalent to
+ the Python statement: del o[key].
+ */
+
DL_IMPORT(int) PyObject_DelItem(PyObject *o, PyObject *key);
/*
Index: Objects/abstract.c
===================================================================
RCS file: /home/python/cvs/python/dist/src/Objects/abstract.c,v
retrieving revision 2.93
retrieving revision 2.94
diff -u -r2.93 -r2.94
--- Objects/abstract.c 24 Nov 2001 18:24:47 -0000 2.93
+++ Objects/abstract.c 5 Jan 2002 10:50:30 -0000 2.94
@@ -174,6 +174,24 @@
return -1;
}
+int
+PyObject_DelItemString(PyObject *o, char *key)
+{
+ PyObject *okey;
+ int ret;
+
+ if (o == NULL || key == NULL) {
+ null_error();
+ return -1;
+ }
+ okey = PyString_FromString(key);
+ if (okey == NULL)
+ return -1;
+ ret = PyObject_DelItem(o, okey);
+ Py_DECREF(okey);
+ return ret;
+}
+
int PyObject_AsCharBuffer(PyObject *obj,
const char **buffer,
int *buffer_len)

View File

@ -1400,6 +1400,7 @@ lib/%%PYTHON_VERSION%%/test/data/msg_19.txt
lib/%%PYTHON_VERSION%%/test/data/msg_20.txt
lib/%%PYTHON_VERSION%%/test/data/msg_21.txt
lib/%%PYTHON_VERSION%%/test/data/msg_22.txt
lib/%%PYTHON_VERSION%%/test/data/msg_23.txt
lib/%%PYTHON_VERSION%%/test/double_const.py
lib/%%PYTHON_VERSION%%/test/double_const.pyc
lib/%%PYTHON_VERSION%%/test/double_const.pyo
@ -1827,6 +1828,9 @@ lib/%%PYTHON_VERSION%%/test/test_mmap.pyo
lib/%%PYTHON_VERSION%%/test/test_mutants.py
lib/%%PYTHON_VERSION%%/test/test_mutants.pyc
lib/%%PYTHON_VERSION%%/test/test_mutants.pyo
lib/%%PYTHON_VERSION%%/test/test_netrc.py
lib/%%PYTHON_VERSION%%/test/test_netrc.pyc
lib/%%PYTHON_VERSION%%/test/test_netrc.pyo
lib/%%PYTHON_VERSION%%/test/test_new.py
lib/%%PYTHON_VERSION%%/test/test_new.pyc
lib/%%PYTHON_VERSION%%/test/test_new.pyo
@ -2232,10 +2236,6 @@ share/emacs/site-lisp/python-mode.el
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/embed/demo.c
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/embed/importexc.c
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/embed/loop.c
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/README
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/make_clean
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/make_shared
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/make_static
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/imputil/importers.py
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/md5test/README
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/md5test/foo
@ -2560,7 +2560,6 @@ share/emacs/site-lisp/python-mode.el
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/metaclasses
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/md5test
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/imputil
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/extend
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/embed
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/curses
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/comparisons

View File

@ -6,8 +6,7 @@
#
PORTNAME= python
PORTVERSION= 2.2
PORTREVISION= 2
PORTVERSION= 2.2.1
CATEGORIES= lang python ipv6
MASTER_SITES= http://www.python.org/ftp/python/${PORTVERSION}/ \
${MASTER_SITE_SOURCEFORGE} \

View File

@ -1 +1 @@
MD5 (python/Python-2.2.tgz) = 87febf0780c8e18454022d34b2ca70a0
MD5 (python/Python-2.2.1.tgz) = e7012d611602b62e36073c2fd02396a3

View File

@ -1,56 +0,0 @@
Index: Include/abstract.h
===================================================================
RCS file: /home/python/cvs/python/dist/src/Include/abstract.h,v
retrieving revision 2.42
retrieving revision 2.43
diff -u -r2.42 -r2.43
--- Include/abstract.h 28 Nov 2001 16:20:07 -0000 2.42
+++ Include/abstract.h 5 Jan 2002 10:50:30 -0000 2.43
@@ -445,6 +445,14 @@
statement: o[key]=v.
*/
+ DL_IMPORT(int) PyObject_DelItemString(PyObject *o, char *key);
+
+ /*
+ Remove the mapping for object, key, from the object *o.
+ Returns -1 on failure. This is equivalent to
+ the Python statement: del o[key].
+ */
+
DL_IMPORT(int) PyObject_DelItem(PyObject *o, PyObject *key);
/*
Index: Objects/abstract.c
===================================================================
RCS file: /home/python/cvs/python/dist/src/Objects/abstract.c,v
retrieving revision 2.93
retrieving revision 2.94
diff -u -r2.93 -r2.94
--- Objects/abstract.c 24 Nov 2001 18:24:47 -0000 2.93
+++ Objects/abstract.c 5 Jan 2002 10:50:30 -0000 2.94
@@ -174,6 +174,24 @@
return -1;
}
+int
+PyObject_DelItemString(PyObject *o, char *key)
+{
+ PyObject *okey;
+ int ret;
+
+ if (o == NULL || key == NULL) {
+ null_error();
+ return -1;
+ }
+ okey = PyString_FromString(key);
+ if (okey == NULL)
+ return -1;
+ ret = PyObject_DelItem(o, okey);
+ Py_DECREF(okey);
+ return ret;
+}
+
int PyObject_AsCharBuffer(PyObject *obj,
const char **buffer,
int *buffer_len)

View File

@ -1400,6 +1400,7 @@ lib/%%PYTHON_VERSION%%/test/data/msg_19.txt
lib/%%PYTHON_VERSION%%/test/data/msg_20.txt
lib/%%PYTHON_VERSION%%/test/data/msg_21.txt
lib/%%PYTHON_VERSION%%/test/data/msg_22.txt
lib/%%PYTHON_VERSION%%/test/data/msg_23.txt
lib/%%PYTHON_VERSION%%/test/double_const.py
lib/%%PYTHON_VERSION%%/test/double_const.pyc
lib/%%PYTHON_VERSION%%/test/double_const.pyo
@ -1827,6 +1828,9 @@ lib/%%PYTHON_VERSION%%/test/test_mmap.pyo
lib/%%PYTHON_VERSION%%/test/test_mutants.py
lib/%%PYTHON_VERSION%%/test/test_mutants.pyc
lib/%%PYTHON_VERSION%%/test/test_mutants.pyo
lib/%%PYTHON_VERSION%%/test/test_netrc.py
lib/%%PYTHON_VERSION%%/test/test_netrc.pyc
lib/%%PYTHON_VERSION%%/test/test_netrc.pyo
lib/%%PYTHON_VERSION%%/test/test_new.py
lib/%%PYTHON_VERSION%%/test/test_new.pyc
lib/%%PYTHON_VERSION%%/test/test_new.pyo
@ -2232,10 +2236,6 @@ share/emacs/site-lisp/python-mode.el
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/embed/demo.c
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/embed/importexc.c
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/embed/loop.c
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/README
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/make_clean
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/make_shared
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/make_static
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/imputil/importers.py
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/md5test/README
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/md5test/foo
@ -2560,7 +2560,6 @@ share/emacs/site-lisp/python-mode.el
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/metaclasses
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/md5test
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/imputil
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/extend
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/embed
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/curses
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/comparisons

View File

@ -6,8 +6,7 @@
#
PORTNAME= python
PORTVERSION= 2.2
PORTREVISION= 2
PORTVERSION= 2.2.1
CATEGORIES= lang python ipv6
MASTER_SITES= http://www.python.org/ftp/python/${PORTVERSION}/ \
${MASTER_SITE_SOURCEFORGE} \

View File

@ -1 +1 @@
MD5 (python/Python-2.2.tgz) = 87febf0780c8e18454022d34b2ca70a0
MD5 (python/Python-2.2.1.tgz) = e7012d611602b62e36073c2fd02396a3

View File

@ -1,56 +0,0 @@
Index: Include/abstract.h
===================================================================
RCS file: /home/python/cvs/python/dist/src/Include/abstract.h,v
retrieving revision 2.42
retrieving revision 2.43
diff -u -r2.42 -r2.43
--- Include/abstract.h 28 Nov 2001 16:20:07 -0000 2.42
+++ Include/abstract.h 5 Jan 2002 10:50:30 -0000 2.43
@@ -445,6 +445,14 @@
statement: o[key]=v.
*/
+ DL_IMPORT(int) PyObject_DelItemString(PyObject *o, char *key);
+
+ /*
+ Remove the mapping for object, key, from the object *o.
+ Returns -1 on failure. This is equivalent to
+ the Python statement: del o[key].
+ */
+
DL_IMPORT(int) PyObject_DelItem(PyObject *o, PyObject *key);
/*
Index: Objects/abstract.c
===================================================================
RCS file: /home/python/cvs/python/dist/src/Objects/abstract.c,v
retrieving revision 2.93
retrieving revision 2.94
diff -u -r2.93 -r2.94
--- Objects/abstract.c 24 Nov 2001 18:24:47 -0000 2.93
+++ Objects/abstract.c 5 Jan 2002 10:50:30 -0000 2.94
@@ -174,6 +174,24 @@
return -1;
}
+int
+PyObject_DelItemString(PyObject *o, char *key)
+{
+ PyObject *okey;
+ int ret;
+
+ if (o == NULL || key == NULL) {
+ null_error();
+ return -1;
+ }
+ okey = PyString_FromString(key);
+ if (okey == NULL)
+ return -1;
+ ret = PyObject_DelItem(o, okey);
+ Py_DECREF(okey);
+ return ret;
+}
+
int PyObject_AsCharBuffer(PyObject *obj,
const char **buffer,
int *buffer_len)

View File

@ -1400,6 +1400,7 @@ lib/%%PYTHON_VERSION%%/test/data/msg_19.txt
lib/%%PYTHON_VERSION%%/test/data/msg_20.txt
lib/%%PYTHON_VERSION%%/test/data/msg_21.txt
lib/%%PYTHON_VERSION%%/test/data/msg_22.txt
lib/%%PYTHON_VERSION%%/test/data/msg_23.txt
lib/%%PYTHON_VERSION%%/test/double_const.py
lib/%%PYTHON_VERSION%%/test/double_const.pyc
lib/%%PYTHON_VERSION%%/test/double_const.pyo
@ -1827,6 +1828,9 @@ lib/%%PYTHON_VERSION%%/test/test_mmap.pyo
lib/%%PYTHON_VERSION%%/test/test_mutants.py
lib/%%PYTHON_VERSION%%/test/test_mutants.pyc
lib/%%PYTHON_VERSION%%/test/test_mutants.pyo
lib/%%PYTHON_VERSION%%/test/test_netrc.py
lib/%%PYTHON_VERSION%%/test/test_netrc.pyc
lib/%%PYTHON_VERSION%%/test/test_netrc.pyo
lib/%%PYTHON_VERSION%%/test/test_new.py
lib/%%PYTHON_VERSION%%/test/test_new.pyc
lib/%%PYTHON_VERSION%%/test/test_new.pyo
@ -2232,10 +2236,6 @@ share/emacs/site-lisp/python-mode.el
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/embed/demo.c
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/embed/importexc.c
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/embed/loop.c
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/README
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/make_clean
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/make_shared
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/make_static
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/imputil/importers.py
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/md5test/README
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/md5test/foo
@ -2560,7 +2560,6 @@ share/emacs/site-lisp/python-mode.el
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/metaclasses
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/md5test
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/imputil
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/extend
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/embed
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/curses
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/comparisons

View File

@ -6,8 +6,7 @@
#
PORTNAME= python
PORTVERSION= 2.2
PORTREVISION= 2
PORTVERSION= 2.2.1
CATEGORIES= lang python ipv6
MASTER_SITES= http://www.python.org/ftp/python/${PORTVERSION}/ \
${MASTER_SITE_SOURCEFORGE} \

View File

@ -1 +1 @@
MD5 (python/Python-2.2.tgz) = 87febf0780c8e18454022d34b2ca70a0
MD5 (python/Python-2.2.1.tgz) = e7012d611602b62e36073c2fd02396a3

View File

@ -1,56 +0,0 @@
Index: Include/abstract.h
===================================================================
RCS file: /home/python/cvs/python/dist/src/Include/abstract.h,v
retrieving revision 2.42
retrieving revision 2.43
diff -u -r2.42 -r2.43
--- Include/abstract.h 28 Nov 2001 16:20:07 -0000 2.42
+++ Include/abstract.h 5 Jan 2002 10:50:30 -0000 2.43
@@ -445,6 +445,14 @@
statement: o[key]=v.
*/
+ DL_IMPORT(int) PyObject_DelItemString(PyObject *o, char *key);
+
+ /*
+ Remove the mapping for object, key, from the object *o.
+ Returns -1 on failure. This is equivalent to
+ the Python statement: del o[key].
+ */
+
DL_IMPORT(int) PyObject_DelItem(PyObject *o, PyObject *key);
/*
Index: Objects/abstract.c
===================================================================
RCS file: /home/python/cvs/python/dist/src/Objects/abstract.c,v
retrieving revision 2.93
retrieving revision 2.94
diff -u -r2.93 -r2.94
--- Objects/abstract.c 24 Nov 2001 18:24:47 -0000 2.93
+++ Objects/abstract.c 5 Jan 2002 10:50:30 -0000 2.94
@@ -174,6 +174,24 @@
return -1;
}
+int
+PyObject_DelItemString(PyObject *o, char *key)
+{
+ PyObject *okey;
+ int ret;
+
+ if (o == NULL || key == NULL) {
+ null_error();
+ return -1;
+ }
+ okey = PyString_FromString(key);
+ if (okey == NULL)
+ return -1;
+ ret = PyObject_DelItem(o, okey);
+ Py_DECREF(okey);
+ return ret;
+}
+
int PyObject_AsCharBuffer(PyObject *obj,
const char **buffer,
int *buffer_len)

View File

@ -1400,6 +1400,7 @@ lib/%%PYTHON_VERSION%%/test/data/msg_19.txt
lib/%%PYTHON_VERSION%%/test/data/msg_20.txt
lib/%%PYTHON_VERSION%%/test/data/msg_21.txt
lib/%%PYTHON_VERSION%%/test/data/msg_22.txt
lib/%%PYTHON_VERSION%%/test/data/msg_23.txt
lib/%%PYTHON_VERSION%%/test/double_const.py
lib/%%PYTHON_VERSION%%/test/double_const.pyc
lib/%%PYTHON_VERSION%%/test/double_const.pyo
@ -1827,6 +1828,9 @@ lib/%%PYTHON_VERSION%%/test/test_mmap.pyo
lib/%%PYTHON_VERSION%%/test/test_mutants.py
lib/%%PYTHON_VERSION%%/test/test_mutants.pyc
lib/%%PYTHON_VERSION%%/test/test_mutants.pyo
lib/%%PYTHON_VERSION%%/test/test_netrc.py
lib/%%PYTHON_VERSION%%/test/test_netrc.pyc
lib/%%PYTHON_VERSION%%/test/test_netrc.pyo
lib/%%PYTHON_VERSION%%/test/test_new.py
lib/%%PYTHON_VERSION%%/test/test_new.pyc
lib/%%PYTHON_VERSION%%/test/test_new.pyo
@ -2232,10 +2236,6 @@ share/emacs/site-lisp/python-mode.el
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/embed/demo.c
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/embed/importexc.c
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/embed/loop.c
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/README
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/make_clean
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/make_shared
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/make_static
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/imputil/importers.py
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/md5test/README
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/md5test/foo
@ -2560,7 +2560,6 @@ share/emacs/site-lisp/python-mode.el
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/metaclasses
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/md5test
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/imputil
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/extend
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/embed
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/curses
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/comparisons

View File

@ -6,8 +6,7 @@
#
PORTNAME= python
PORTVERSION= 2.2
PORTREVISION= 2
PORTVERSION= 2.2.1
CATEGORIES= lang python ipv6
MASTER_SITES= http://www.python.org/ftp/python/${PORTVERSION}/ \
${MASTER_SITE_SOURCEFORGE} \

View File

@ -1 +1 @@
MD5 (python/Python-2.2.tgz) = 87febf0780c8e18454022d34b2ca70a0
MD5 (python/Python-2.2.1.tgz) = e7012d611602b62e36073c2fd02396a3

View File

@ -1,56 +0,0 @@
Index: Include/abstract.h
===================================================================
RCS file: /home/python/cvs/python/dist/src/Include/abstract.h,v
retrieving revision 2.42
retrieving revision 2.43
diff -u -r2.42 -r2.43
--- Include/abstract.h 28 Nov 2001 16:20:07 -0000 2.42
+++ Include/abstract.h 5 Jan 2002 10:50:30 -0000 2.43
@@ -445,6 +445,14 @@
statement: o[key]=v.
*/
+ DL_IMPORT(int) PyObject_DelItemString(PyObject *o, char *key);
+
+ /*
+ Remove the mapping for object, key, from the object *o.
+ Returns -1 on failure. This is equivalent to
+ the Python statement: del o[key].
+ */
+
DL_IMPORT(int) PyObject_DelItem(PyObject *o, PyObject *key);
/*
Index: Objects/abstract.c
===================================================================
RCS file: /home/python/cvs/python/dist/src/Objects/abstract.c,v
retrieving revision 2.93
retrieving revision 2.94
diff -u -r2.93 -r2.94
--- Objects/abstract.c 24 Nov 2001 18:24:47 -0000 2.93
+++ Objects/abstract.c 5 Jan 2002 10:50:30 -0000 2.94
@@ -174,6 +174,24 @@
return -1;
}
+int
+PyObject_DelItemString(PyObject *o, char *key)
+{
+ PyObject *okey;
+ int ret;
+
+ if (o == NULL || key == NULL) {
+ null_error();
+ return -1;
+ }
+ okey = PyString_FromString(key);
+ if (okey == NULL)
+ return -1;
+ ret = PyObject_DelItem(o, okey);
+ Py_DECREF(okey);
+ return ret;
+}
+
int PyObject_AsCharBuffer(PyObject *obj,
const char **buffer,
int *buffer_len)

View File

@ -1400,6 +1400,7 @@ lib/%%PYTHON_VERSION%%/test/data/msg_19.txt
lib/%%PYTHON_VERSION%%/test/data/msg_20.txt
lib/%%PYTHON_VERSION%%/test/data/msg_21.txt
lib/%%PYTHON_VERSION%%/test/data/msg_22.txt
lib/%%PYTHON_VERSION%%/test/data/msg_23.txt
lib/%%PYTHON_VERSION%%/test/double_const.py
lib/%%PYTHON_VERSION%%/test/double_const.pyc
lib/%%PYTHON_VERSION%%/test/double_const.pyo
@ -1827,6 +1828,9 @@ lib/%%PYTHON_VERSION%%/test/test_mmap.pyo
lib/%%PYTHON_VERSION%%/test/test_mutants.py
lib/%%PYTHON_VERSION%%/test/test_mutants.pyc
lib/%%PYTHON_VERSION%%/test/test_mutants.pyo
lib/%%PYTHON_VERSION%%/test/test_netrc.py
lib/%%PYTHON_VERSION%%/test/test_netrc.pyc
lib/%%PYTHON_VERSION%%/test/test_netrc.pyo
lib/%%PYTHON_VERSION%%/test/test_new.py
lib/%%PYTHON_VERSION%%/test/test_new.pyc
lib/%%PYTHON_VERSION%%/test/test_new.pyo
@ -2232,10 +2236,6 @@ share/emacs/site-lisp/python-mode.el
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/embed/demo.c
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/embed/importexc.c
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/embed/loop.c
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/README
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/make_clean
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/make_shared
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/make_static
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/imputil/importers.py
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/md5test/README
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/md5test/foo
@ -2560,7 +2560,6 @@ share/emacs/site-lisp/python-mode.el
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/metaclasses
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/md5test
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/imputil
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/extend
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/embed
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/curses
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/comparisons

View File

@ -6,8 +6,7 @@
#
PORTNAME= python
PORTVERSION= 2.2
PORTREVISION= 2
PORTVERSION= 2.2.1
CATEGORIES= lang python ipv6
MASTER_SITES= http://www.python.org/ftp/python/${PORTVERSION}/ \
${MASTER_SITE_SOURCEFORGE} \

View File

@ -1 +1 @@
MD5 (python/Python-2.2.tgz) = 87febf0780c8e18454022d34b2ca70a0
MD5 (python/Python-2.2.1.tgz) = e7012d611602b62e36073c2fd02396a3

View File

@ -1,56 +0,0 @@
Index: Include/abstract.h
===================================================================
RCS file: /home/python/cvs/python/dist/src/Include/abstract.h,v
retrieving revision 2.42
retrieving revision 2.43
diff -u -r2.42 -r2.43
--- Include/abstract.h 28 Nov 2001 16:20:07 -0000 2.42
+++ Include/abstract.h 5 Jan 2002 10:50:30 -0000 2.43
@@ -445,6 +445,14 @@
statement: o[key]=v.
*/
+ DL_IMPORT(int) PyObject_DelItemString(PyObject *o, char *key);
+
+ /*
+ Remove the mapping for object, key, from the object *o.
+ Returns -1 on failure. This is equivalent to
+ the Python statement: del o[key].
+ */
+
DL_IMPORT(int) PyObject_DelItem(PyObject *o, PyObject *key);
/*
Index: Objects/abstract.c
===================================================================
RCS file: /home/python/cvs/python/dist/src/Objects/abstract.c,v
retrieving revision 2.93
retrieving revision 2.94
diff -u -r2.93 -r2.94
--- Objects/abstract.c 24 Nov 2001 18:24:47 -0000 2.93
+++ Objects/abstract.c 5 Jan 2002 10:50:30 -0000 2.94
@@ -174,6 +174,24 @@
return -1;
}
+int
+PyObject_DelItemString(PyObject *o, char *key)
+{
+ PyObject *okey;
+ int ret;
+
+ if (o == NULL || key == NULL) {
+ null_error();
+ return -1;
+ }
+ okey = PyString_FromString(key);
+ if (okey == NULL)
+ return -1;
+ ret = PyObject_DelItem(o, okey);
+ Py_DECREF(okey);
+ return ret;
+}
+
int PyObject_AsCharBuffer(PyObject *obj,
const char **buffer,
int *buffer_len)

View File

@ -1400,6 +1400,7 @@ lib/%%PYTHON_VERSION%%/test/data/msg_19.txt
lib/%%PYTHON_VERSION%%/test/data/msg_20.txt
lib/%%PYTHON_VERSION%%/test/data/msg_21.txt
lib/%%PYTHON_VERSION%%/test/data/msg_22.txt
lib/%%PYTHON_VERSION%%/test/data/msg_23.txt
lib/%%PYTHON_VERSION%%/test/double_const.py
lib/%%PYTHON_VERSION%%/test/double_const.pyc
lib/%%PYTHON_VERSION%%/test/double_const.pyo
@ -1827,6 +1828,9 @@ lib/%%PYTHON_VERSION%%/test/test_mmap.pyo
lib/%%PYTHON_VERSION%%/test/test_mutants.py
lib/%%PYTHON_VERSION%%/test/test_mutants.pyc
lib/%%PYTHON_VERSION%%/test/test_mutants.pyo
lib/%%PYTHON_VERSION%%/test/test_netrc.py
lib/%%PYTHON_VERSION%%/test/test_netrc.pyc
lib/%%PYTHON_VERSION%%/test/test_netrc.pyo
lib/%%PYTHON_VERSION%%/test/test_new.py
lib/%%PYTHON_VERSION%%/test/test_new.pyc
lib/%%PYTHON_VERSION%%/test/test_new.pyo
@ -2232,10 +2236,6 @@ share/emacs/site-lisp/python-mode.el
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/embed/demo.c
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/embed/importexc.c
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/embed/loop.c
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/README
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/make_clean
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/make_shared
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/make_static
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/imputil/importers.py
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/md5test/README
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/md5test/foo
@ -2560,7 +2560,6 @@ share/emacs/site-lisp/python-mode.el
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/metaclasses
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/md5test
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/imputil
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/extend
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/embed
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/curses
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/comparisons

View File

@ -6,8 +6,7 @@
#
PORTNAME= python
PORTVERSION= 2.2
PORTREVISION= 2
PORTVERSION= 2.2.1
CATEGORIES= lang python ipv6
MASTER_SITES= http://www.python.org/ftp/python/${PORTVERSION}/ \
${MASTER_SITE_SOURCEFORGE} \

View File

@ -1 +1 @@
MD5 (python/Python-2.2.tgz) = 87febf0780c8e18454022d34b2ca70a0
MD5 (python/Python-2.2.1.tgz) = e7012d611602b62e36073c2fd02396a3

View File

@ -1,56 +0,0 @@
Index: Include/abstract.h
===================================================================
RCS file: /home/python/cvs/python/dist/src/Include/abstract.h,v
retrieving revision 2.42
retrieving revision 2.43
diff -u -r2.42 -r2.43
--- Include/abstract.h 28 Nov 2001 16:20:07 -0000 2.42
+++ Include/abstract.h 5 Jan 2002 10:50:30 -0000 2.43
@@ -445,6 +445,14 @@
statement: o[key]=v.
*/
+ DL_IMPORT(int) PyObject_DelItemString(PyObject *o, char *key);
+
+ /*
+ Remove the mapping for object, key, from the object *o.
+ Returns -1 on failure. This is equivalent to
+ the Python statement: del o[key].
+ */
+
DL_IMPORT(int) PyObject_DelItem(PyObject *o, PyObject *key);
/*
Index: Objects/abstract.c
===================================================================
RCS file: /home/python/cvs/python/dist/src/Objects/abstract.c,v
retrieving revision 2.93
retrieving revision 2.94
diff -u -r2.93 -r2.94
--- Objects/abstract.c 24 Nov 2001 18:24:47 -0000 2.93
+++ Objects/abstract.c 5 Jan 2002 10:50:30 -0000 2.94
@@ -174,6 +174,24 @@
return -1;
}
+int
+PyObject_DelItemString(PyObject *o, char *key)
+{
+ PyObject *okey;
+ int ret;
+
+ if (o == NULL || key == NULL) {
+ null_error();
+ return -1;
+ }
+ okey = PyString_FromString(key);
+ if (okey == NULL)
+ return -1;
+ ret = PyObject_DelItem(o, okey);
+ Py_DECREF(okey);
+ return ret;
+}
+
int PyObject_AsCharBuffer(PyObject *obj,
const char **buffer,
int *buffer_len)

View File

@ -1400,6 +1400,7 @@ lib/%%PYTHON_VERSION%%/test/data/msg_19.txt
lib/%%PYTHON_VERSION%%/test/data/msg_20.txt
lib/%%PYTHON_VERSION%%/test/data/msg_21.txt
lib/%%PYTHON_VERSION%%/test/data/msg_22.txt
lib/%%PYTHON_VERSION%%/test/data/msg_23.txt
lib/%%PYTHON_VERSION%%/test/double_const.py
lib/%%PYTHON_VERSION%%/test/double_const.pyc
lib/%%PYTHON_VERSION%%/test/double_const.pyo
@ -1827,6 +1828,9 @@ lib/%%PYTHON_VERSION%%/test/test_mmap.pyo
lib/%%PYTHON_VERSION%%/test/test_mutants.py
lib/%%PYTHON_VERSION%%/test/test_mutants.pyc
lib/%%PYTHON_VERSION%%/test/test_mutants.pyo
lib/%%PYTHON_VERSION%%/test/test_netrc.py
lib/%%PYTHON_VERSION%%/test/test_netrc.pyc
lib/%%PYTHON_VERSION%%/test/test_netrc.pyo
lib/%%PYTHON_VERSION%%/test/test_new.py
lib/%%PYTHON_VERSION%%/test/test_new.pyc
lib/%%PYTHON_VERSION%%/test/test_new.pyo
@ -2232,10 +2236,6 @@ share/emacs/site-lisp/python-mode.el
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/embed/demo.c
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/embed/importexc.c
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/embed/loop.c
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/README
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/make_clean
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/make_shared
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/make_static
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/imputil/importers.py
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/md5test/README
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/md5test/foo
@ -2560,7 +2560,6 @@ share/emacs/site-lisp/python-mode.el
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/metaclasses
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/md5test
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/imputil
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/extend
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/embed
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/curses
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/comparisons

View File

@ -6,8 +6,7 @@
#
PORTNAME= python
PORTVERSION= 2.2
PORTREVISION= 2
PORTVERSION= 2.2.1
CATEGORIES= lang python ipv6
MASTER_SITES= http://www.python.org/ftp/python/${PORTVERSION}/ \
${MASTER_SITE_SOURCEFORGE} \

View File

@ -1 +1 @@
MD5 (python/Python-2.2.tgz) = 87febf0780c8e18454022d34b2ca70a0
MD5 (python/Python-2.2.1.tgz) = e7012d611602b62e36073c2fd02396a3

View File

@ -1,56 +0,0 @@
Index: Include/abstract.h
===================================================================
RCS file: /home/python/cvs/python/dist/src/Include/abstract.h,v
retrieving revision 2.42
retrieving revision 2.43
diff -u -r2.42 -r2.43
--- Include/abstract.h 28 Nov 2001 16:20:07 -0000 2.42
+++ Include/abstract.h 5 Jan 2002 10:50:30 -0000 2.43
@@ -445,6 +445,14 @@
statement: o[key]=v.
*/
+ DL_IMPORT(int) PyObject_DelItemString(PyObject *o, char *key);
+
+ /*
+ Remove the mapping for object, key, from the object *o.
+ Returns -1 on failure. This is equivalent to
+ the Python statement: del o[key].
+ */
+
DL_IMPORT(int) PyObject_DelItem(PyObject *o, PyObject *key);
/*
Index: Objects/abstract.c
===================================================================
RCS file: /home/python/cvs/python/dist/src/Objects/abstract.c,v
retrieving revision 2.93
retrieving revision 2.94
diff -u -r2.93 -r2.94
--- Objects/abstract.c 24 Nov 2001 18:24:47 -0000 2.93
+++ Objects/abstract.c 5 Jan 2002 10:50:30 -0000 2.94
@@ -174,6 +174,24 @@
return -1;
}
+int
+PyObject_DelItemString(PyObject *o, char *key)
+{
+ PyObject *okey;
+ int ret;
+
+ if (o == NULL || key == NULL) {
+ null_error();
+ return -1;
+ }
+ okey = PyString_FromString(key);
+ if (okey == NULL)
+ return -1;
+ ret = PyObject_DelItem(o, okey);
+ Py_DECREF(okey);
+ return ret;
+}
+
int PyObject_AsCharBuffer(PyObject *obj,
const char **buffer,
int *buffer_len)

View File

@ -1400,6 +1400,7 @@ lib/%%PYTHON_VERSION%%/test/data/msg_19.txt
lib/%%PYTHON_VERSION%%/test/data/msg_20.txt
lib/%%PYTHON_VERSION%%/test/data/msg_21.txt
lib/%%PYTHON_VERSION%%/test/data/msg_22.txt
lib/%%PYTHON_VERSION%%/test/data/msg_23.txt
lib/%%PYTHON_VERSION%%/test/double_const.py
lib/%%PYTHON_VERSION%%/test/double_const.pyc
lib/%%PYTHON_VERSION%%/test/double_const.pyo
@ -1827,6 +1828,9 @@ lib/%%PYTHON_VERSION%%/test/test_mmap.pyo
lib/%%PYTHON_VERSION%%/test/test_mutants.py
lib/%%PYTHON_VERSION%%/test/test_mutants.pyc
lib/%%PYTHON_VERSION%%/test/test_mutants.pyo
lib/%%PYTHON_VERSION%%/test/test_netrc.py
lib/%%PYTHON_VERSION%%/test/test_netrc.pyc
lib/%%PYTHON_VERSION%%/test/test_netrc.pyo
lib/%%PYTHON_VERSION%%/test/test_new.py
lib/%%PYTHON_VERSION%%/test/test_new.pyc
lib/%%PYTHON_VERSION%%/test/test_new.pyo
@ -2232,10 +2236,6 @@ share/emacs/site-lisp/python-mode.el
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/embed/demo.c
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/embed/importexc.c
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/embed/loop.c
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/README
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/make_clean
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/make_shared
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/extend/make_static
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/imputil/importers.py
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/md5test/README
%%PORTDOCS%%share/examples/%%PYTHON_VERSION%%/md5test/foo
@ -2560,7 +2560,6 @@ share/emacs/site-lisp/python-mode.el
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/metaclasses
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/md5test
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/imputil
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/extend
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/embed
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/curses
%%PORTDOCS%%@dirrm share/examples/%%PYTHON_VERSION%%/comparisons