Commit Graph

814 Commits

Author SHA1 Message Date
Fred Drake
b5dd25732c Fix broken API descriptions in comments. 2003-05-12 21:38:50 +00:00
Tim Peters
539afe0d84 More backporting of gc-vs-__del__ fixes. It should be fixed for instances
of classic classes now.  Alas, new-style classes are still a problem, and
didn't need to be fixed in 2.3 (they were already immune in 2.3 due to the
new-in-2.3 tp_del slot).
2003-04-08 19:13:14 +00:00
Tim Peters
82550d5b86 Added private API function _PyInstance_Lookup(). This is part of
backporting fixes so that garbage collection doesn't have to trigger
execution of arbitrary Python code just to figure out whether
an object has a __del__ method.
2003-04-08 19:02:34 +00:00
Martin v. Löwis
3c5173c179 Patch #710576: Implement per-interpreter-state codec registries. 2003-03-30 20:57:31 +00:00
Guido van Rossum
233938495a Bump release version to 2.2.2 -- the final release is imminent. 2002-10-14 12:25:20 +00:00
Guido van Rossum
2e382ca1b2 Upgrade the version *string* by adding a '+'. This marks the first
checkin since 2.2.2b1 was released.
2002-10-08 01:04:34 +00:00
Michael W. Hudson
d1bb75505f Backport:
2002/08/11 12:23:04 lemburg Python/bltinmodule.c 2.262
2002/08/11 12:23:04 lemburg Objects/unicodeobject.c 2.162
2002/08/11 12:23:03 lemburg Misc/NEWS 1.461
2002/08/11 12:23:03 lemburg Lib/test/test_unicode.py 1.65
2002/08/11 12:23:03 lemburg Include/unicodeobject.h 2.39
Add C API PyUnicode_FromOrdinal() which exposes unichr() at C level.

u'%c' will now raise a ValueError in case the argument is an
integer outside the valid range of Unicode code point ordinals.

Closes SF bug #593581.
2002-10-07 12:32:57 +00:00
Michael W. Hudson
5e40e74bbe This is Armin Rigo's patch:
[ 617309 ] getframe hook (Psyco #1)

Forward port candidate.
2002-10-07 09:47:21 +00:00
Michael W. Hudson
ddd3f0ea7b This is Armin Rigo's patch:
[ 617311 ] Tiny profiling info (Psyco #2)

Forward port candidate.
2002-10-07 09:40:20 +00:00
Tim Peters
6acdcd2f0a Assorted changes needed to release 2.2.2b1. 2002-10-06 04:14:18 +00:00
Neal Norwitz
b3861ce31f Backport last checkin:
SF # 607253, header file problems, reported by Ralf W. Grosse-Kunstleve

Don't pollute the namespace when protecting against multiple header inclusion.
Prefix with Py_ and use standard naming convention Py_FILENAME_H.
2002-10-04 12:50:12 +00:00
Neal Norwitz
ea2b436d50 Backport patch (also pointed out in SF #607253):
date: 2002/03/30 08:57:12;  author: loewis;
Patch #536908: Add missing #include guards/extern "C".
2002-10-04 12:35:17 +00:00
Neal Norwitz
727bbab275 Backport revision 1.6 by jackjansen;
Added include guards and C++ extern "C" {} constructs. Partial fix for #607253.
2002-09-25 21:40:17 +00:00
Guido van Rossum
dff08ead67 Change the version to 2.2.2a0. (Whether we're going to do a 2.2.2
alpha or beta at all isn't clear; but while it's unreleased, I think
a0 is the best indicator we've got.)
2002-09-24 17:14:19 +00:00
Walter Dörwald
aa82bc0817 Backport checkin:
Apply patch diff.txt from SF feature request
http://www.python.org/sf/444708

This adds the optional argument for str.strip
to unicode.strip too and makes it possible
to call str.strip with a unicode argument
and unicode.strip with a str argument.
2002-04-22 18:42:45 +00:00
Tim Peters
1c9bcc0ca3 Update patch level and Windows build number for 2.2.1 final. 2002-04-04 21:47:49 +00:00
Tim Peters
1f92d72b9c Bump release to 2.2.1c2. 2002-03-25 19:28:43 +00:00
Michael W. Hudson
8429b1ad41 backport akuchling's checkin of
revision 2.19 of traceback.h

[Bug #528914] PyTraceBack_Store/Fetch were deleted in 1997, but their
              prototypes remain.  Noted by Yakov Markovitch.

Bugfix candidate.
2002-03-25 12:25:26 +00:00
Michael W. Hudson
2510b46cf3 backport jhylton's checkin of
revision 2.2 of cellobject.h

Cells are not VAR objects.

Noted by Jason Orendorff, SF #520768.

Bug fix candidate for 2.1 & 2.2.
2002-03-15 10:23:11 +00:00
Tim Peters
21c9324bcb Rename this build 2.2.1c1. 2002-03-14 22:43:45 +00:00
Michael W. Hudson
879e96f716 This has been declared to work.
backport tim_one's checkin of
    revision 2.45 of pyport.h

SF bug 525705:  [2.2] underflow raise OverflowException.
Another year in the quest to out-guess random C behavior.

Added macros Py_ADJUST_ERANGE1(X) and Py_ADJUST_ERANGE2(X, Y).  The latter
is useful for functions with complex results.  Two corrections to errno-
after-libm-call are attempted:

1. If the platform set errno to ERANGE due to underflow, clear errno.
   Some unknown subset of libm versions and link options do this.  It's
   allowed by C89, but I never figured anyone would do it.

2. If the platform did not set errno but overflow occurred, force
   errno to ERANGE.  C89 required setting errno to ERANGE, but C99
   doesn't.  Some unknown subset of libm versions and link options do
   it the C99 way now.

Bugfix candidate, but hold off until some Linux people actually try it,
with and without -lieee.  I'll send a help plea to Python-Dev.
2002-03-11 10:16:23 +00:00
Michael W. Hudson
7a4b55ddc0 backport tim_one's checkin of
revision 2.5 of pymem.h
    revision 2.44 of pyport.h

Whether platform malloc(0) returns NULL has nothing to do with whether
platform realloc(p, 0) returns NULL, so MALLOC_ZERO_RETURNS_NULL can
be correctly undefined yet realloc(p, 0) can return NULL anyway.

Prevent realloc(p, 0) doing free(p) and returning NULL via a different
hack.  Would probably be better to get rid of MALLOC_ZERO_RETURNS_NULL
entirely.

Bugfix candidate.
2002-03-05 14:24:45 +00:00
Tim Peters
9cda54dda3 Assorted Windows buildno, copyright and version number changes for 2.2.1a1.
Repair PY_VERSION in patchlevel.h.
2002-02-28 07:43:20 +00:00
Michael W. Hudson
a06a7fbc31 Bump version number.
I *think* this is the only place I need to do this.

There are also some "(c) 2001"s that should probably be turned into
"(c) 2001, 2002"s -- should this be done on the trunk too?
2002-02-27 13:03:37 +00:00
Martin v. Löwis
0d21e64409 Include <unistd.h> in Python.h. Fixes #500924. 2002-01-12 11:13:24 +00:00