1861 Commits

Author SHA1 Message Date
Guido van Rossum
f502c73012 Bring SRE up do date with Python 2.1 2001-06-13 15:15:02 +00:00
Moshe Zadka
aafd60c9bc Backported pyexpat memory-leak plugs
backported by Martin van Lowis
2001-03-31 15:44:16 +00:00
Moshe Zadka
f3712961dd - #121706 - config.c - _PyImport_Inittab: define the exceptions module's init
function.
2001-03-31 14:01:13 +00:00
Moshe Zadka
8b219694a2 - #128713 - mmapmodule.c - type(mmap_object) blew up on Linux.
- mmap on windows creates a mapping without a name when tagname isn't
  specified
2001-03-31 13:23:19 +00:00
Moshe Zadka
d0851885c6 Address a bug in the uuencode decoder, reported bu "donut" in SF bug
#127718: '@' and '`' seem to be confused.
2001-03-31 11:14:43 +00:00
Moshe Zadka
2010399f41 Make mpz's .binary() work on 64 bit platforms
Make mpzmodule compile with cygwin
2001-03-31 10:55:47 +00:00
Moshe Zadka
256a550cf1 #125375 - parsermodule.c - fix parser.tuple2ast() failure on valid parse tree 2001-03-31 10:29:03 +00:00
Moshe Zadka
64c21a541e Fixing #233200 - cPickle did not use Py_BEGIN_ALLOW_THREADS. 2001-03-31 08:31:13 +00:00
Moshe Zadka
aece8f3fd2 - posixmodule.c - Add missing prototypes in for SunOS 4.1.4, plug memory leak
- #125891 - posixmodule.c - os.popen2,3 and 4 leaked file objects on Windows.

- #128053 - posixmodule.c - #ifdef for including "tmpfile" in the
            posix_methods[] array was wrong -- should be HAVE_TMPFILE
2001-03-31 08:10:03 +00:00
Moshe Zadka
d5ceef4c8d Use Py_CHARMASK for ctype macros. Fixes bug #232787. 2001-03-31 07:33:56 +00:00
Moshe Zadka
0a6e179934 - #125981 -- socketmodule.c -- closing sockets was not thread-safe.
- Use openssl/*.h to include the OpenSSL header files

- Patch #103636: Allow writing strings containing null bytes to an SSL socket
2001-03-31 07:13:29 +00:00
Moshe Zadka
81c7b62ec0 Fixing bug #407504. -- did not close pwd/grp databases. 2001-03-30 19:18:23 +00:00
Moshe Zadka
2b2ac3a1e8 #126161 and 123634 -- Unicode strings could not be pickled correctly.
This is *backwards incompatible* with the previous pickling scheme,
which wasnot reversible
2001-03-30 17:20:58 +00:00
Moshe Zadka
fc2b761d05 More _curses compilation-problem fixes.
NetBSD, IRIX and platforms with term.h that makes "lines" a macro
2001-03-30 14:23:06 +00:00
Moshe Zadka
0cf3bad83d Yay! First fix I'm commiting on the way to 2.0.1
This is supposed to fix compilation problems of the curses
module on SGI, and is based on the patch from 2.39 to 2.40
This should fix bug #116172

From the 2.39->2.40 log:
* Check for 'sgi' preprocessor symbol, not '__sgi__'
* Surround individual character macros with #ifdef's, instead of making them
  all rely on STRICT_SYSV_CURSES

Metacomment: this is as much to test procedures as it is
to actually fix the bug. If you're a CVS wizard please look
at the checkin message to see I'm commiting correctly,
and e-mail me if not, and I'll do my best to back it out and
reread the docos.

Good luck to me.
2001-03-29 19:27:29 +00:00
Martin v. Löwis
0a932b6895 Move _tkinter.c 1.115 into release branch. 2001-03-15 16:56:36 +00:00
Skip Montanaro
5696eb2214 forgot to update the comment to reflect the change in default linkage 2001-01-02 17:09:48 +00:00
Skip Montanaro
d8f38d8d1a change default linkage of bsddb to shared - closes bug #126564 2001-01-02 17:07:49 +00:00
Fred Drake
8f176accde Update the comments for the BSD DB module, including a new pointer to
the DB 3 module; thanks to Robin Dunn <robind@users.sourceforge.net>.

This closes SourceForge bug #116850.
2000-10-14 04:14:09 +00:00
Tim Peters
2bf405ad55 Repaired a comment and asserted a precondition. 2000-10-12 19:42:00 +00:00
Guido van Rossum
ada6d87c0c Fix for Bug #116453.
Direct use of interp->result is deprecated; changing this to
Tcl_GetStringResult(interp) everywhere fixed the problem of losing the
error message with TclError exceptions, on Windows.
2000-10-12 17:14:46 +00:00
Tim Peters
1d120619d4 Stop raising OverflowError on underflows reported by libm (errno==ERANGE and
libm result is 0).  Cautiously add a few libm exception test cases:
1. That exp(-huge) returns 0 without exception.
2. That exp(+huge) triggers OverflowError.
3. That sqrt(-1) raises ValueError specifically (apparently under glibc linked
   with -lieee, it was raising OverflowError due to an accident of the way
   mathmodule.c's CHECK() macro happened to deal with Infs and NaNs under gcc).
2000-10-12 06:10:25 +00:00
Fred Drake
06fdd2d9e8 Another gcc -Wall warning squashed:
MPZ_divm():  Initialize mpzden to NULL, since it could be Py_XDECREF()ed
             without being initialized.
2000-10-11 21:53:34 +00:00
Fred Drake
4747a18ef9 Remove one more gcc -Wall warning. 2000-10-11 21:44:02 +00:00
Fred Drake
5428c7db41 Fix the docstring for new.function().
Based on a comment from Detlef Lannert
<lannert@lannert.rz.uni-duesseldorf.de>.
2000-10-10 22:07:18 +00:00