]> granicus.if.org Git - python/log
python
22 years agoSF bug 533198: Complex power underflow raises exception.
Tim Peters [Fri, 22 Mar 2002 02:48:46 +0000 (02:48 +0000)]
SF bug 533198:  Complex power underflow raises exception.
Konrad was too kind.  Not only did it raise an exception, the specific
exception it raised made no sense.  These are old bugs in complex_pow()
and friends:

1. Raising 0 to a negative power isn't a range error, it's a domain
   error, so changed c_pow() to set errno to EDOM in that case instead
   of ERANGE.

2. Changed complex_pow() to:

A. Used the Py_ADJUST_ERANGE2 macro to try to clear errno of a spurious
   ERANGE error due to underflow in the libm pow() called by c_pow().

B. Produced different exceptions depending on the errno value:
   i) For errno==EDOM, raise ZeroDivisionError instead of ValueError.
      This is for consistency with the non-complex cases 0.0**-2 and
      0**-2 and 0L**-2.
   ii) For errno==ERANGE, raise OverflowError.

Bugfix candidate.

22 years ago[Bug #532115] netrc module was broken
Andrew M. Kuchling [Fri, 22 Mar 2002 02:46:41 +0000 (02:46 +0000)]
[Bug #532115]  netrc module was broken
   * 'macdef' (macro definition) wasn't parsed correctly
   * account value not reset for a subsequent 'default' line
   * typo: 'whitepace' -> 'whitespace'

Bugfix candidate.

22 years ago[Bug #532136] Change path in README, as suggested by Ralph Corderoy
Andrew M. Kuchling [Thu, 21 Mar 2002 23:52:20 +0000 (23:52 +0000)]
[Bug #532136] Change path in README, as suggested by Ralph Corderoy

Bugfix candidate.

22 years agoAdd missing Boolean options
Andrew M. Kuchling [Thu, 21 Mar 2002 23:46:54 +0000 (23:46 +0000)]
Add missing Boolean options
Remove unused no_compile flag
Initialize the Boolean attribute .compile to 0 instead of None

Bugfix candidate.

22 years agoAdd unlisted Boolean options. Thomas H., can you please check that I
Andrew M. Kuchling [Thu, 21 Mar 2002 23:44:01 +0000 (23:44 +0000)]
Add unlisted Boolean options.  Thomas H., can you please check that I
    got this right?

Bugfix candidate, unless Thomas notes a problem.

22 years ago[Bug #517451] bdist_rpm didn't list all of its Boolean options.
Andrew M. Kuchling [Thu, 21 Mar 2002 23:27:54 +0000 (23:27 +0000)]
[Bug #517451] bdist_rpm didn't list all of its Boolean options.
   (Someone should check the other commands for this same error.)

Bugfix candidate.

22 years agoAdded an open_pathname() method which opens a resource file by pathname,
Jack Jansen [Thu, 21 Mar 2002 22:38:32 +0000 (22:38 +0000)]
Added an open_pathname() method which opens a resource file by pathname,
possibly converting from AppleSingle.

22 years agoFor reasons I don't fully understand we sometimes get unexpected events
Jack Jansen [Thu, 21 Mar 2002 22:36:57 +0000 (22:36 +0000)]
For reasons I don't fully understand we sometimes get unexpected events
in MachoPython. As we don't have MacOS.HandleEvent() we drop these on
the floor (with a print).

22 years agoSolve sync() signature conflict differently: manually return 0 if
Jack Jansen [Thu, 21 Mar 2002 21:09:36 +0000 (21:09 +0000)]
Solve sync() signature conflict differently: manually return 0 if
we have GUSI's void sync().

22 years agoNew checkin to convert from BinHex to AppleSingle encoding.
Jack Jansen [Thu, 21 Mar 2002 20:18:32 +0000 (20:18 +0000)]
New checkin to convert from BinHex to AppleSingle encoding.

22 years agoPatch #532729: check for sem_init in -lrt.
Martin v. Löwis [Thu, 21 Mar 2002 15:10:58 +0000 (15:10 +0000)]
Patch #532729: check for sem_init in -lrt.

22 years agoFix grammar
Neal Norwitz [Thu, 21 Mar 2002 12:58:54 +0000 (12:58 +0000)]
Fix grammar

22 years ago[Apply SF patch #504943]
Walter Dörwald [Thu, 21 Mar 2002 10:38:40 +0000 (10:38 +0000)]
[Apply SF patch #504943]

This patch makes it possible to pass Warning instances as the first
argument to warnings.warn. In this case the category argument
will be ignored. The message text used will be str(warninginstance).

22 years agoDo not insert characters for unicode-escape decoders if the error mode
Martin v. Löwis [Thu, 21 Mar 2002 08:55:28 +0000 (08:55 +0000)]
Do not insert characters for unicode-escape decoders if the error mode
is "ignore". Fixes #529104.

22 years ago[Apply patch #500457 from the PyXML tracker]
Andrew M. Kuchling [Wed, 20 Mar 2002 23:56:34 +0000 (23:56 +0000)]
[Apply patch #500457 from the PyXML tracker]
Add iterator support to pulldom.DOMEventStream

New feature, so not a bugfix candidate (though it should be safe for inclusion)

22 years agoRemove compiler warnings on Solaris 8.
Neal Norwitz [Wed, 20 Mar 2002 21:32:07 +0000 (21:32 +0000)]
Remove compiler warnings on Solaris 8.
Can go into 2.2.x, but not necessary.

22 years agoChange raw "except:" constructs to pass on KeyboardInterrupt.
Tim Peters [Wed, 20 Mar 2002 19:32:03 +0000 (19:32 +0000)]
Change raw "except:" constructs to pass on KeyboardInterrupt.

Bugfix candidate?  Don't know -- never bothered me, but it's minor
either way.

22 years agoSF# 522426, add doc for common parameter for filecmp.cmpfiles()
Neal Norwitz [Wed, 20 Mar 2002 18:55:09 +0000 (18:55 +0000)]
SF# 522426, add doc for common parameter for filecmp.cmpfiles()

22 years agoMake GzipFile an iterator. Closes bug #532621.
Neil Schemenauer [Wed, 20 Mar 2002 18:36:00 +0000 (18:36 +0000)]
Make GzipFile an iterator.  Closes bug #532621.

22 years agoArrange to export the _PyMalloc_{Malloc, Realloc, Free} entry points. On
Tim Peters [Wed, 20 Mar 2002 04:02:31 +0000 (04:02 +0000)]
Arrange to export the _PyMalloc_{Malloc, Realloc, Free} entry points.  On
Windows some modules are considered (by me, and I don't care what anyone
else thinks about this <wink>) to be part of "the core" despite that they
happen to be compiled into separate DLLs (the "to DLL or not to DLL?"
question on Windows is nearly arbitrary).  Making the pymalloc entry
points available to them allows the Windows build to complete without
incident when WITH_PYMALLOC is #define'd.

Note that this isn't unprecedented.  Other "private API" functions we
export include _PySequence_IterSearch, _PyEval_SliceIndex, _PyCodec_Lookup,
_Py_ZeroStruct, _Py_TrueStruct, _PyLong_New and _PyModule_Clear.

22 years agoA faster version of the find_prefix_at_end() function (that I found in the
Andrew M. Kuchling [Wed, 20 Mar 2002 02:22:58 +0000 (02:22 +0000)]
A faster version of the find_prefix_at_end() function (that I found in the
    last Medusa release)

Should be safe as a bugfix candidate, though it's not fixing a bug.

22 years ago[Bug #528914] PyTraceBack_Store/Fetch were deleted in 1997, but their
Andrew M. Kuchling [Tue, 19 Mar 2002 16:02:35 +0000 (16:02 +0000)]
[Bug #528914] PyTraceBack_Store/Fetch were deleted in 1997, but their
              prototypes remain.  Noted by Yakov Markovitch.

Bugfix candidate.

22 years agoExpand LINKCC in configure.in. Suggested in bug report #529713.
Martin v. Löwis [Tue, 19 Mar 2002 15:15:32 +0000 (15:15 +0000)]
Expand LINKCC in configure.in. Suggested in bug report #529713.

22 years agoAdjust some poor wording in the text that explains what events are used
Fred Drake [Tue, 19 Mar 2002 14:37:44 +0000 (14:37 +0000)]
Adjust some poor wording in the text that explains what events are used
for (reported by Keith Briggs).
Wrap some very long lines.

22 years agoClarify that copy_reg.pickle() is not intended for use with "classic" classes.
Fred Drake [Tue, 19 Mar 2002 03:33:33 +0000 (03:33 +0000)]
Clarify that copy_reg.pickle() is not intended for use with "classic" classes.
This was stated before, but a minor grammatical error made it difficult to be
sure of the meaning.
This closes SF bug #530143.

22 years agoRecord 2.2.1c1 release date.
Tim Peters [Tue, 19 Mar 2002 02:12:10 +0000 (02:12 +0000)]
Record 2.2.1c1 release date.

22 years ago[Bug #531616] Make HTTPS work again by adding a sendall method to the
Andrew M. Kuchling [Mon, 18 Mar 2002 22:51:48 +0000 (22:51 +0000)]
[Bug #531616] Make HTTPS work again by adding a sendall method to the
FakeSocket class.  Without it, the sendall() call got the method on
the underlying socket object, and that messed up SSL.

Does httplib use other methods of sockets that FakeSocket doesn't support?
Someone should take a look...  (I'll try to give it a once-over.)

2.2.1 bugfix candidate.

22 years agoTo make 'urllib.py -t' run again, change FTP URL to a file that actually
Andrew M. Kuchling [Mon, 18 Mar 2002 22:18:46 +0000 (22:18 +0000)]
To make 'urllib.py -t' run again, change FTP URL to a file that actually
   exists.

22 years agouse -kb on idle/Icons/minusnode.gif ("cvs up" kept checking it out all
Fredrik Lundh [Mon, 18 Mar 2002 21:43:04 +0000 (21:43 +0000)]
use -kb on idle/Icons/minusnode.gif ("cvs up" kept checking it out all
the time...)

22 years agoDrop the PyCore_* memory API.
Neil Schemenauer [Mon, 18 Mar 2002 21:06:21 +0000 (21:06 +0000)]
Drop the PyCore_* memory API.

22 years agoRe-enable GC of generator objects.
Neil Schemenauer [Mon, 18 Mar 2002 20:45:09 +0000 (20:45 +0000)]
Re-enable GC of generator objects.

22 years agoRe-enable GC of method objects.
Neil Schemenauer [Mon, 18 Mar 2002 20:44:53 +0000 (20:44 +0000)]
Re-enable GC of method objects.

22 years agoRe-enable GC of iter objects.
Neil Schemenauer [Mon, 18 Mar 2002 20:43:51 +0000 (20:43 +0000)]
Re-enable GC of iter objects.

22 years ago(py-temp-directory): Add /var/tmp to the list of directories this
Barry Warsaw [Mon, 18 Mar 2002 18:53:56 +0000 (18:53 +0000)]
(py-temp-directory): Add /var/tmp to the list of directories this
searches.  This is added after /tmp.  Closes SF bug #505488, except
that /var/tmp comes after /tmp instead of the patch's suggestion of
putting it before /usr/tmp.

22 years agoRemove extraneous #define as per effbot's instructions in:
Neal Norwitz [Mon, 18 Mar 2002 18:46:14 +0000 (18:46 +0000)]
Remove extraneous #define as per effbot's instructions in:

[ 530285 ] redefining SRE_CODE in Modules/sre.h

22 years agoSimpilify PyCore_* macros by assuming the function prototypes for
Neil Schemenauer [Mon, 18 Mar 2002 18:13:41 +0000 (18:13 +0000)]
Simpilify PyCore_* macros by assuming the function prototypes for
malloc() and free() don't change.

22 years agoFix up unescaped tilde; reported by several people.
Fred Drake [Mon, 18 Mar 2002 16:47:14 +0000 (16:47 +0000)]
Fix up unescaped tilde; reported by several people.

22 years agoRemove extra verb; reported by Detlef Lannert.
Fred Drake [Mon, 18 Mar 2002 16:45:01 +0000 (16:45 +0000)]
Remove extra verb; reported by Detlef Lannert.

22 years agoLurking bug found by patch for 531291: FSSpecs should be passed to
Jack Jansen [Mon, 18 Mar 2002 15:41:32 +0000 (15:41 +0000)]
Lurking bug found by patch for 531291: FSSpecs should be passed to
Py_BuildValue by address, not by value.

2.2.1 candidate.

22 years agoSome of the newer routines return an OSErr, like most toolbox calls, in stead of...
Jack Jansen [Mon, 18 Mar 2002 15:31:08 +0000 (15:31 +0000)]
Some of the newer routines return an OSErr, like most toolbox calls, in stead of depending on ResError(). Second half of fix for #531291.

2.2.1 candidate.

22 years agoSome structures should be passed to Py_BuildValue by reference, not by value,
Jack Jansen [Mon, 18 Mar 2002 15:24:22 +0000 (15:24 +0000)]
Some structures should be passed to Py_BuildValue by reference, not by value,
notably FSSpec and FSRef objects. First half of fix for #531291.

2.2.1 candidate.

22 years agoamk's fix attached to
Michael W. Hudson [Mon, 18 Mar 2002 13:06:00 +0000 (13:06 +0000)]
amk's fix attached to

[ 516299 ] urlparse can get fragments wrong

22 years agoPatch #495598: add an -q (quiet) option to pycompile.
Martin v. Löwis [Mon, 18 Mar 2002 12:44:08 +0000 (12:44 +0000)]
Patch #495598: add an -q (quiet) option to pycompile.

22 years agoCorrectly set default entry in all cases.
Martin v. Löwis [Mon, 18 Mar 2002 10:43:18 +0000 (10:43 +0000)]
Correctly set default entry in all cases.

22 years agoPatch #499513: use readline() instead of readlines(). Removed the
Martin v. Löwis [Mon, 18 Mar 2002 10:41:20 +0000 (10:41 +0000)]
Patch #499513: use readline() instead of readlines(). Removed the
unnecessary redirection limit code which is already in FancyURLopener.

22 years agoPatch #512466: Script to move faqwiz entries.
Martin v. Löwis [Mon, 18 Mar 2002 08:56:23 +0000 (08:56 +0000)]
Patch #512466: Script to move faqwiz entries.

22 years agoPatch #525870: Avoid duplicate stat calls, use st_ attributes.
Martin v. Löwis [Mon, 18 Mar 2002 08:37:19 +0000 (08:37 +0000)]
Patch #525870: Avoid duplicate stat calls, use st_ attributes.

22 years agoFix for SF bug 528132 (Armin Rigo): classmethod().__get__() segfault
Guido van Rossum [Mon, 18 Mar 2002 03:09:06 +0000 (03:09 +0000)]
Fix for SF bug 528132 (Armin Rigo): classmethod().__get__() segfault

The proper fix is not quite what was submitted; it's really better to
take the class of the object passed rather than calling PyMethod_New
with NULL pointer args, because that can then cause other core dumps
later.

I also added a testcase for the fix to classmethods() in test_descr.py.

I've already applied this to the 2.2 branch.

22 years agodump the string exception fallback for anydbm.error.
Skip Montanaro [Mon, 18 Mar 2002 03:07:20 +0000 (03:07 +0000)]
dump the string exception fallback for anydbm.error.

22 years agoinitial test_anydbm module - based on test_dumbdbm.py
Skip Montanaro [Mon, 18 Mar 2002 03:00:37 +0000 (03:00 +0000)]
initial test_anydbm module - based on test_dumbdbm.py

22 years agofurther work on dynamic reconfiguration;
Steven M. Gava [Mon, 18 Mar 2002 02:38:44 +0000 (02:38 +0000)]
further work on dynamic reconfiguration;
keybindings

22 years agonetrc will now raise a more predictable exception when $HOME is not set
Paul Prescod [Mon, 18 Mar 2002 02:13:48 +0000 (02:13 +0000)]
netrc will now raise a more predictable exception when $HOME is not set
(as it is often not on Windows). The code was always designed so that it
would raise an IOError if there was no .netrc. But if there was no $HOME
it would return a KeyError which would be somewhat unexpected for code
that didn't know the algorithm it used to find .netrc. The particular
code that triggered this problem for me was ftpmirror.py which handled
the IOError gracefully, but not the KeyError.

22 years agoadded note that xmlrpclib won't marshal instances of subclasses of the
Skip Montanaro [Sun, 17 Mar 2002 23:15:02 +0000 (23:15 +0000)]
added note that xmlrpclib won't marshal instances of subclasses of the
builtin types

22 years agorestructure a bit to not rely on test case execution ordering
Skip Montanaro [Sun, 17 Mar 2002 23:03:42 +0000 (23:03 +0000)]
restructure a bit to not rely on test case execution ordering
add test case for bug #482460

22 years agoRegenerated for Irix 6.5.
Jack Jansen [Sun, 17 Mar 2002 21:49:20 +0000 (21:49 +0000)]
Regenerated for Irix 6.5.

22 years agoPatch by Michael Pruett: make regen work on Irix 6.0 and 6.5.
Jack Jansen [Sun, 17 Mar 2002 21:46:48 +0000 (21:46 +0000)]
Patch by Michael Pruett: make regen work on Irix 6.0 and 6.5.

22 years agoSF patch 530070: pydoc regression, from Martin and Guido.
Tim Peters [Sun, 17 Mar 2002 18:56:20 +0000 (18:56 +0000)]
SF patch 530070: pydoc regression, from Martin and Guido.
Change the way __doc__ is handled, to avoid blowing up on non-string
__doc__ values.

22 years agoPatch #430706: Persistent connections in BaseHTTPServer.
Martin v. Löwis [Sun, 17 Mar 2002 18:37:22 +0000 (18:37 +0000)]
Patch #430706: Persistent connections in BaseHTTPServer.

22 years agoPatch #485959: Various changes to Tix demos.
Martin v. Löwis [Sun, 17 Mar 2002 18:19:13 +0000 (18:19 +0000)]
Patch #485959: Various changes to Tix demos.

22 years agoDocument that _POSIX_SEMAPHORES is predefined.
Martin v. Löwis [Sun, 17 Mar 2002 17:19:00 +0000 (17:19 +0000)]
Document that _POSIX_SEMAPHORES is predefined.

22 years agoPatch #525532: Add support for POSIX semaphores.
Martin v. Löwis [Sun, 17 Mar 2002 09:53:51 +0000 (09:53 +0000)]
Patch #525532: Add support for POSIX semaphores.

22 years agoFix stupid typo in example.
Fred Drake [Sat, 16 Mar 2002 14:01:12 +0000 (14:01 +0000)]
Fix stupid typo in example.

22 years agoMarkup error: braces not properly marked in dictionary display
Fred Drake [Sat, 16 Mar 2002 06:35:54 +0000 (06:35 +0000)]
Markup error: braces not properly marked in dictionary display
grammer productions.
Fixes SF bug #520959.

22 years agoClarify the descriptions of the positive and negative lookbehind assertions.
Fred Drake [Sat, 16 Mar 2002 05:58:12 +0000 (05:58 +0000)]
Clarify the descriptions of the positive and negative lookbehind assertions.
Added examples of positive lookbehind assertions.
This closes SF bug #529708.

22 years agopdfTeX 0.13 and 0.14 do not agree on the name of the macro, and I will not
Fred Drake [Sat, 16 Mar 2002 04:52:36 +0000 (04:52 +0000)]
pdfTeX 0.13 and 0.14 do not agree on the name of the macro, and I will not
change the installed version on either of the machines I use to format the
docs.  Instead, use a compatibility hack to support both versions.  This is
also better for external users of the Python styles.

22 years agoApplet icon.
Jack Jansen [Sat, 16 Mar 2002 00:34:03 +0000 (00:34 +0000)]
Applet icon.

22 years agoRevise the markup related to the grammar productions to increase the
Fred Drake [Fri, 15 Mar 2002 23:21:37 +0000 (23:21 +0000)]
Revise the markup related to the grammar productions to increase the
level of predictability.  This is not really "good" markup, but is arguably
better than we had before.
This closes SF bug #523117.

22 years agoMake the release status obvious in the title area.
Fred Drake [Fri, 15 Mar 2002 22:38:16 +0000 (22:38 +0000)]
Make the release status obvious in the title area.

22 years agoPatch #530105: Allow file object may to be subtyped
Martin v. Löwis [Fri, 15 Mar 2002 17:42:16 +0000 (17:42 +0000)]
Patch #530105: Allow file object may to be subtyped

22 years ago(py-honor-comment-indentation, py-compute-indentation): Fix the
Barry Warsaw [Fri, 15 Mar 2002 16:46:46 +0000 (16:46 +0000)]
(py-honor-comment-indentation, py-compute-indentation): Fix the
implementation to match the documentation for
py-honor-comment-indentation w.r.t. not nil or t value.  In that case
it should still ignore ## for indentation purposes.  Closes SF bug
#523825, w/ patch provided by Christian Stork (mod'd by Barry).

Python 2.2.1 candidate.

22 years agoWrap a couple of long lines.
Fred Drake [Fri, 15 Mar 2002 14:37:23 +0000 (14:37 +0000)]
Wrap a couple of long lines.

22 years agoCorrected _localized_name.__getitem__ based on code in patch 503202 (which I
Skip Montanaro [Fri, 15 Mar 2002 13:52:43 +0000 (13:52 +0000)]
Corrected _localized_name.__getitem__ based on code in patch 503202 (which I
thought was just a bug report, so didn't notice - doh!).  This handles
slicing, which v 1.23 didn't.

22 years agoPatch #527427: minidom fails to use NodeList sometimes.
Martin v. Löwis [Fri, 15 Mar 2002 13:51:59 +0000 (13:51 +0000)]
Patch #527427: minidom fails to use NodeList sometimes.

22 years agoSkip test_longexp for MacPython on Mac OS X. It triggers a pathological realloc slowd...
Jack Jansen [Fri, 15 Mar 2002 13:50:54 +0000 (13:50 +0000)]
Skip test_longexp for MacPython on Mac OS X. It triggers a pathological realloc slowdown. Some tests with shorter expressions lead me to the conclusion that it will eventually finish, but it may take a few weeks:-)

2.2.1 candidate.

22 years agoPatch 527434: Avoid double inclusion of thread.o on Sol2.8.
Martin v. Löwis [Fri, 15 Mar 2002 13:48:21 +0000 (13:48 +0000)]
Patch  527434: Avoid double inclusion of thread.o on Sol2.8.

22 years agoIf no webbrowsers were found _tryorder would be empty, cmd would never be set and...
Jack Jansen [Fri, 15 Mar 2002 13:47:32 +0000 (13:47 +0000)]
If no webbrowsers were found _tryorder would be empty, cmd would never be set and the "del cmd" would fail. Fixed.

2.2.1 candidate.

22 years agoPatch #517521: Consider byte strings before Unicode strings
Martin v. Löwis [Fri, 15 Mar 2002 13:40:30 +0000 (13:40 +0000)]
Patch #517521: Consider byte strings before Unicode strings
in PyObject_Get/SetAttr.

22 years ago....
Michael W. Hudson [Fri, 15 Mar 2002 10:21:59 +0000 (10:21 +0000)]
....

22 years agoFix
Michael W. Hudson [Fri, 15 Mar 2002 10:18:58 +0000 (10:18 +0000)]
Fix

[ 530236 ] os.py assumes existence of statvfs_resul

This was pretty dense of me.  Sorry.

2.2.1 candidate.

22 years agoInclude Python.h first. Fixes #530159.
Martin v. Löwis [Fri, 15 Mar 2002 09:16:40 +0000 (09:16 +0000)]
Include Python.h first. Fixes #530159.

22 years agomake _localized_name instances work more like the tuples they replaced. In
Skip Montanaro [Fri, 15 Mar 2002 04:08:38 +0000 (04:08 +0000)]
make _localized_name instances work more like the tuples they replaced.  In
particular, negative indexes work and they are limited by the actual length
of the names they represent (weekday and month names).  This closes bug
#503202.

22 years agoadded test case to catch index errors with _localized_name class
Skip Montanaro [Fri, 15 Mar 2002 03:57:04 +0000 (03:57 +0000)]
added test case to catch index errors with _localized_name class

22 years agofirst cut at skip-list for hp-ux 11 based upon input from Bill Lawler at HP.
Skip Montanaro [Fri, 15 Mar 2002 02:54:03 +0000 (02:54 +0000)]
first cut at skip-list for hp-ux 11 based upon input from Bill Lawler at HP.

22 years agoRemove duplicate "import os"
Neal Norwitz [Thu, 14 Mar 2002 23:48:18 +0000 (23:48 +0000)]
Remove duplicate "import os"

22 years agoModifed for new included expat.
Jack Jansen [Thu, 14 Mar 2002 23:14:43 +0000 (23:14 +0000)]
Modifed for new included expat.

22 years agoUpdated for new included expat and new waste.
Jack Jansen [Thu, 14 Mar 2002 23:13:33 +0000 (23:13 +0000)]
Updated for new included expat and new waste.

22 years ago"Fix" for SF bug #520644: __slots__ are not pickled.
Guido van Rossum [Thu, 14 Mar 2002 23:05:54 +0000 (23:05 +0000)]
"Fix" for SF bug #520644: __slots__ are not pickled.

As promised in my response to the bug report, I'm not really fixing
it; in fact, one could argule over what the proper fix should do.
Instead, I'm adding a little magic that raises TypeError if you try to
pickle an instance of a class that has __slots__ but doesn't define or
override __getstate__.  This is done by adding a bozo __getstate__
that always raises TypeError.

Bugfix candidate (also the checkin to typeobject.c, of course).

22 years ago"Fix" for SF bug #520644: __slots__ are not pickled.
Guido van Rossum [Thu, 14 Mar 2002 23:03:14 +0000 (23:03 +0000)]
"Fix" for SF bug #520644: __slots__ are not pickled.

As promised in my response to the bug report, I'm not really fixing
it; in fact, one could argule over what the proper fix should do.
Instead, I'm adding a little magic that raises TypeError if you try to
pickle an instance of a class that has __slots__ but doesn't define or
override __getstate__.  This is done by adding a bozo __getstate__
that always raises TypeError.

22 years agoUpdate master Windows buildno list to reflect impending 2.2.1c1.
Tim Peters [Thu, 14 Mar 2002 22:48:50 +0000 (22:48 +0000)]
Update master Windows buildno list to reflect impending 2.2.1c1.

22 years agoNews about zlib-1.1.4.
Tim Peters [Thu, 14 Mar 2002 19:06:01 +0000 (19:06 +0000)]
News about zlib-1.1.4.

22 years agoupdate text to refer to ServerProxy class in preference to Server, which is
Skip Montanaro [Thu, 14 Mar 2002 17:35:25 +0000 (17:35 +0000)]
update text to refer to ServerProxy class in preference to Server, which is
only retained for backward compatibility with older versions of the library.

22 years agoMove to zlib 1.1.4 on Windows (the new version that squashes the "double
Tim Peters [Wed, 13 Mar 2002 21:51:55 +0000 (21:51 +0000)]
Move to zlib 1.1.4 on Windows (the new version that squashes the "double
free" glitch).
Bugfix candidate -- I'll backpatch this into 2.2.1 later this week.

22 years agoDescribe how to support the iterator protocol in extension types.
Fred Drake [Wed, 13 Mar 2002 03:55:11 +0000 (03:55 +0000)]
Describe how to support the iterator protocol in extension types.
This closes SF bug #420851.

22 years agoSF #515015, raise exception if code not found in findsource()
Neal Norwitz [Wed, 13 Mar 2002 03:14:26 +0000 (03:14 +0000)]
SF #515015, raise exception if code not found in findsource()

22 years agoExtend the list of special characters and magic markup used to produce them
Fred Drake [Wed, 13 Mar 2002 02:48:24 +0000 (02:48 +0000)]
Extend the list of special characters and magic markup used to produce them
to include various characters used in code samples, URLs, and other special
contexts.
This closes SF bug #525684.

22 years agoChange the way \textasciitilde is implemented so it works more consistently
Fred Drake [Wed, 13 Mar 2002 02:44:50 +0000 (02:44 +0000)]
Change the way \textasciitilde is implemented so it works more consistently
(dropping tildes into data that still goes through LaTeX-like processing is
a bad idea).

22 years agoVerify arguments for nl_langinfo. Fixes #528879.
Martin v. Löwis [Tue, 12 Mar 2002 22:05:02 +0000 (22:05 +0000)]
Verify arguments for nl_langinfo. Fixes #528879.

22 years agoChange the example code to prefer PyModule_Add*() instead of using the
Fred Drake [Tue, 12 Mar 2002 21:49:44 +0000 (21:49 +0000)]
Change the example code to prefer PyModule_Add*() instead of using the
module dictionary directly.  Also, be more careful about not re-initializing
globals in the event of re-initialization of a C extension.

22 years agoUpdate docstrings to use te attribute names of the new structures returned
Fred Drake [Tue, 12 Mar 2002 21:38:49 +0000 (21:38 +0000)]
Update docstrings to use te attribute names of the new structures returned
by stat and time functions.
This closes SF patch #523271.

22 years agoTest for the fix I just checked in to moduleobject.c.
Guido van Rossum [Tue, 12 Mar 2002 20:43:31 +0000 (20:43 +0000)]
Test for the fix I just checked in to moduleobject.c.

Bugfix candidate.