]> granicus.if.org Git - python/log
python
22 years agoAdd a comment that PyArg_GetInt is deprecated and should not be used
Neal Norwitz [Mon, 25 Mar 2002 22:21:58 +0000 (22:21 +0000)]
Add a comment that PyArg_GetInt is deprecated and should not be used

22 years agomake default banner match what the real interpreter displays
Skip Montanaro [Mon, 25 Mar 2002 22:04:23 +0000 (22:04 +0000)]
make default banner match what the real interpreter displays

22 years agoremove unqualified excepts - catch ImportError when trying to import
Skip Montanaro [Mon, 25 Mar 2002 21:44:07 +0000 (21:44 +0000)]
remove unqualified excepts - catch ImportError when trying to import
readline and get rid of string exception fallback when showing syntax
errors.
see bug 411881

22 years agoeliminate unqualified except when checking for presence of LC_MESSAGES
Skip Montanaro [Mon, 25 Mar 2002 21:40:36 +0000 (21:40 +0000)]
eliminate unqualified except when checking for presence of LC_MESSAGES
see bug 411881

22 years agotighten up unqualified except in currentframe()
Skip Montanaro [Mon, 25 Mar 2002 21:37:54 +0000 (21:37 +0000)]
tighten up unqualified except in currentframe()
see bug 411881

22 years agoMissed change METH_OLDARGS to METH_NOARGS for two aliased functions
Neal Norwitz [Mon, 25 Mar 2002 21:05:50 +0000 (21:05 +0000)]
Missed change METH_OLDARGS to METH_NOARGS for two aliased functions

22 years agoRemove many uses of PyArg_NoArgs macro, change METH_OLDARGS to METH_NOARGS.
Neal Norwitz [Mon, 25 Mar 2002 20:46:46 +0000 (20:46 +0000)]
Remove many uses of PyArg_NoArgs macro, change METH_OLDARGS to METH_NOARGS.

22 years agoDocument the finditer() function and method.
Fred Drake [Mon, 25 Mar 2002 20:22:59 +0000 (20:22 +0000)]
Document the finditer() function and method.
This closes SF bug #520904.

Explain that many of the escapes supported by string literals are also
supported by the RE compiler, and list which ones.
This closes SF bug #529923.

22 years agoUpdate master Windows build-number list for 2.2.1c2.
Tim Peters [Mon, 25 Mar 2002 19:35:58 +0000 (19:35 +0000)]
Update master Windows build-number list for 2.2.1c2.

22 years agoAdd tests for the iterkeys, itervalues and iteritems
Walter Dörwald [Mon, 25 Mar 2002 18:36:32 +0000 (18:36 +0000)]
Add tests for the iterkeys, itervalues and iteritems
methods in dict-proxy objects.

22 years agoAdd missing methods iterkeys, itervalues and iteritems to
Walter Dörwald [Mon, 25 Mar 2002 17:43:22 +0000 (17:43 +0000)]
Add missing methods iterkeys, itervalues and iteritems to
dict-proxy objects.

Add real docstrings to all methods.

22 years agoAdded description of binhex.Error.
Fred Drake [Mon, 25 Mar 2002 16:37:56 +0000 (16:37 +0000)]
Added description of binhex.Error.

22 years agoInclude obmalloc.c in the build.
Jack Jansen [Mon, 25 Mar 2002 15:43:37 +0000 (15:43 +0000)]
Include obmalloc.c in the build.

22 years agoDue to interaction between the MSL C library and the GUSI I/O library I can get reads...
Jack Jansen [Mon, 25 Mar 2002 15:32:01 +0000 (15:32 +0000)]
Due to interaction between the MSL C library and the GUSI I/O library I can get reads from sockets to work consistently either for unbuffered binary files or for buffered binary files, but not for both:-(

The workaround is to force socket.makefile() to disable buffering for binary files.

Fixes bug 534625. 2.2.1 candidate.

22 years agoFix SF # 532618 517704, install problems when building modules fail.
Neal Norwitz [Mon, 25 Mar 2002 14:20:09 +0000 (14:20 +0000)]
Fix SF # 532618 517704, install problems when building modules fail.
Fix whitespace on a line also.

22 years agoFix whitespace.
Walter Dörwald [Mon, 25 Mar 2002 11:16:18 +0000 (11:16 +0000)]
Fix whitespace.

22 years agoRemove bug.py. This is something I sent to Guido via email in or before
Tim Peters [Mon, 25 Mar 2002 06:55:57 +0000 (06:55 +0000)]
Remove bug.py.  This is something I sent to Guido via email in or before
'94, demonstrating a thread bug that was later repaired via Python growing
an internal import lock.  It's of no current interest, and the now-std
test_threaded_import.py is pretty much the same test.

22 years agoI've been waiting 8 years for KSR to re-emerge from bankruptcy. If they
Tim Peters [Mon, 25 Mar 2002 06:49:10 +0000 (06:49 +0000)]
I've been waiting 8 years for KSR to re-emerge from bankruptcy.  If they
ever do, they can damn well #define _POSIX_THREADS their own damn selves.

22 years agoSMTP.__init__(): Fixed minor typo in docstring.
Barry Warsaw [Mon, 25 Mar 2002 04:00:38 +0000 (04:00 +0000)]
SMTP.__init__(): Fixed minor typo in docstring.

22 years agoWeaklink most toolbox modules, improving backward compatibility. Modules will no...
Jack Jansen [Mon, 25 Mar 2002 00:32:17 +0000 (00:32 +0000)]
Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.

Should finally fix 531398. 2.2.1 candidate.

22 years agoQuote href properly.
Neil Schemenauer [Sun, 24 Mar 2002 23:11:21 +0000 (23:11 +0000)]
Quote href properly.

22 years agoWeaklink most toolbox modules, improving backward compatibility. Modules will no...
Jack Jansen [Sun, 24 Mar 2002 23:04:18 +0000 (23:04 +0000)]
Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.

Should finally fix 531398. 2.2.1 candidate.

Also blacklisted some constants with definitions that were not Python-compatible.

22 years agoRemove unnecessary \b. It was causing the RE to miss the tailing
Neil Schemenauer [Sun, 24 Mar 2002 23:02:07 +0000 (23:02 +0000)]
Remove unnecessary \b.  It was causing the RE to miss the tailing
slash on strings like "http://www.python.org/ is good".

22 years agoWeaklink most toolbox modules, improving backward compatibility. Modules will no...
Jack Jansen [Sun, 24 Mar 2002 22:59:16 +0000 (22:59 +0000)]
Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.

Should finally fix 531398. 2.2.1 candidate.

22 years agoExpose RLIM_INFINITY constant. Closes SF patch 489066.
Neil Schemenauer [Sun, 24 Mar 2002 22:27:39 +0000 (22:27 +0000)]
Expose RLIM_INFINITY constant.  Closes SF patch 489066.

22 years agoIf possible, set FD_CLOEXEC flag on file descriptors opened using
Neil Schemenauer [Sun, 24 Mar 2002 22:21:48 +0000 (22:21 +0000)]
If possible, set FD_CLOEXEC flag on file descriptors opened using
TemporaryFile.  This flag causes the fd to be closed on exec().

22 years agotighten up except - os.close only raises OSError
Skip Montanaro [Sun, 24 Mar 2002 20:48:26 +0000 (20:48 +0000)]
tighten up except - os.close only raises OSError
see bug 411881

22 years agoSF bug 480215: softspace confused in nested print
Tim Peters [Sun, 24 Mar 2002 19:25:00 +0000 (19:25 +0000)]
SF bug 480215:  softspace confused in nested print
This fixes the symptom, but PRINT_ITEM has no way to know what (if
anything) PyFile_WriteObject() writes unless the object being printed
is a string.  When the object isn't a string, this fix retains the
guess that softspace should be set after PyFile_WriteObject().
We might want to say that it's the job of filelike-object write methods
to leave the file's softspace in the correct state.  That would probably
be better -- but everyone relies on PRINT_ITEM to guess for them now.

22 years agooops - export InvalidURL in __all__
Skip Montanaro [Sun, 24 Mar 2002 16:56:45 +0000 (16:56 +0000)]
oops - export InvalidURL in __all__

22 years agodocument InvalidURL exception
Skip Montanaro [Sun, 24 Mar 2002 16:55:57 +0000 (16:55 +0000)]
document InvalidURL exception

22 years agoadd test for InvalidURL
Skip Montanaro [Sun, 24 Mar 2002 16:54:38 +0000 (16:54 +0000)]
add test for InvalidURL

22 years agoadd test of InvalidURL
Skip Montanaro [Sun, 24 Mar 2002 16:54:16 +0000 (16:54 +0000)]
add test of InvalidURL

22 years agoadd InvalidURL exception - raised if port is given but empty or non-numeric
Skip Montanaro [Sun, 24 Mar 2002 16:53:50 +0000 (16:53 +0000)]
add InvalidURL exception - raised if port is given but empty or non-numeric

22 years agotighten up except - in this context, AttributeError is the only exception
Skip Montanaro [Sun, 24 Mar 2002 16:34:21 +0000 (16:34 +0000)]
tighten up except - in this context, AttributeError is the only exception
that can be raised - do_help won't be called if arg is not a string

22 years agoAdd local_hostname to SMTP.__init__().
Neil Schemenauer [Sun, 24 Mar 2002 15:41:40 +0000 (15:41 +0000)]
Add local_hostname to SMTP.__init__().

22 years agoAdd local_hostname option to SMTP.__init__. If supplied, it is used
Neil Schemenauer [Sun, 24 Mar 2002 15:30:40 +0000 (15:30 +0000)]
Add local_hostname option to SMTP.__init__.  If supplied, it is used
as the fully qualified local hostname.

22 years agoTry /var/mail before trying /usr/mail. Most new systems use /var.
Neil Schemenauer [Sun, 24 Mar 2002 01:38:38 +0000 (01:38 +0000)]
Try /var/mail before trying /usr/mail.  Most new systems use /var.
This in inside the test so it really doesn't matter much.  Closes
SF patch 497097.

22 years agoAdd more tests for built-in types. Add tests for buffer objects.
Neil Schemenauer [Sun, 24 Mar 2002 01:24:54 +0000 (01:24 +0000)]
Add more tests for built-in types.  Add tests for buffer objects.
Closes SF patch 494871.

22 years agoAdd get_history_item, get_current_history_length, and redisplay functions.
Neil Schemenauer [Sun, 24 Mar 2002 01:09:04 +0000 (01:09 +0000)]
Add get_history_item, get_current_history_length, and redisplay functions.
Clarify the docstring for get_history_length.  Closes SF patch 494066.

22 years ago_PyMalloc_DebugRealloc(): simplify decl of "fresh".
Tim Peters [Sun, 24 Mar 2002 00:34:21 +0000 (00:34 +0000)]
_PyMalloc_DebugRealloc():  simplify decl of "fresh".

Assorted:  bump the serial number via a trivial new bumpserialno()
function.  The point is to give a single place to set a breakpoint when
waiting for a specific serial number.

22 years agoUse linecache for loading source code. Closes SF patch 490374.
Neil Schemenauer [Sat, 23 Mar 2002 23:51:04 +0000 (23:51 +0000)]
Use linecache for loading source code.  Closes SF patch 490374.

22 years agoAdd namespace selection for rlcompleter. Closes SF patch 490026.
Neil Schemenauer [Sat, 23 Mar 2002 23:44:51 +0000 (23:44 +0000)]
Add namespace selection for rlcompleter.  Closes SF patch 490026.

22 years agoMinor code cleanup -- no semantic changes.
Tim Peters [Sat, 23 Mar 2002 22:28:18 +0000 (22:28 +0000)]
Minor code cleanup -- no semantic changes.

22 years agoFix example for PyErr_SetFromErrno() (need to pass exception type).
Neil Schemenauer [Sat, 23 Mar 2002 20:57:11 +0000 (20:57 +0000)]
Fix example for PyErr_SetFromErrno() (need to pass exception type).

22 years agoFix wording of sys.exit docstring. Close SF bug 534113.
Neil Schemenauer [Sat, 23 Mar 2002 20:46:35 +0000 (20:46 +0000)]
Fix wording of sys.exit docstring.  Close SF bug 534113.

22 years agoFlush stdout before reading next command. Closes SF bug 526357.
Neil Schemenauer [Sat, 23 Mar 2002 20:43:59 +0000 (20:43 +0000)]
Flush stdout before reading next command.  Closes SF bug 526357.

22 years agoGrow the string buffer at a mildly exponential rate for the getc version
Neil Schemenauer [Sat, 23 Mar 2002 19:41:34 +0000 (19:41 +0000)]
Grow the string buffer at a mildly exponential rate for the getc version
of get_line.  This makes test_bufio finish in 1.7 seconds instead of 57
seconds on my machine (with Py_DEBUG defined).

Also, rename the local variables n1 and n2 to used_v_size and
total_v_size.

22 years agoGive Python a debug-mode pymalloc, much as sketched on Python-Dev.
Tim Peters [Sat, 23 Mar 2002 10:03:50 +0000 (10:03 +0000)]
Give Python a debug-mode pymalloc, much as sketched on Python-Dev.

When WITH_PYMALLOC is defined, define PYMALLOC_DEBUG to enable the debug
allocator.  This can be done independent of build type (release or debug).
A debug build automatically defines PYMALLOC_DEBUG when pymalloc is
enabled.  It's a detected error to define PYMALLOC_DEBUG when pymalloc
isn't enabled.

Two debugging entry points defined only under PYMALLOC_DEBUG:

+ _PyMalloc_DebugCheckAddress(const void *p) can be used (e.g., from gdb)
  to sanity-check a memory block obtained from pymalloc.  It sprays
  info to stderr (see next) and dies via Py_FatalError if the block is
  detectably damaged.

+ _PyMalloc_DebugDumpAddress(const void *p) can be used to spray info
  about a debug memory block to stderr.

A tiny start at implementing "API family" checks isn't good for
anything yet.

_PyMalloc_DebugRealloc() has been optimized to do little when the new
size is <= old size.  However, if the new size is larger, it really
can't call the underlying realloc() routine without either violating its
contract, or knowing something non-trivial about how the underlying
realloc() works.  A memcpy is always done in this case.

This was a disaster for (and only) one of the std tests:  test_bufio
creates single text file lines up to a million characters long.  On
Windows, fileobject.c's get_line() uses the horridly funky
getline_via_fgets(), which keeps growing and growing a string object
hoping to find a newline.  It grew the string object 1000 bytes each
time, so for a million-character string it took approximately forever
(I gave up after a few minutes).

So, also:

fileobject.c, getline_via_fgets():  When a single line is outrageously
long, grow the string object at a mildly exponential rate, instead of
just 1000 bytes at a time.

That's enough so that a debug-build test_bufio finishes in about 5 seconds
on my Win98SE box.  I'm curious to try this on Win2K, because it has very
different memory behavior than Win9X, and test_bufio always took a factor
of 10 longer to complete on Win2K.  It *could* be that the endless
reallocs were simply killing it on Win2K even in the release build.

22 years agoOnly AttributeError can be raised in this situation - on systems without
Skip Montanaro [Sat, 23 Mar 2002 05:58:52 +0000 (05:58 +0000)]
Only AttributeError can be raised in this situation - on systems without
getuid or getpid.  posix_getuid & posix_getpid never raise exceptions when
called with no args.

22 years agoimport statements only raise ImportError, right?
Skip Montanaro [Sat, 23 Mar 2002 05:55:18 +0000 (05:55 +0000)]
import statements only raise ImportError, right?

22 years agotighten up except - only ValueError can be raised in this situation
Skip Montanaro [Sat, 23 Mar 2002 05:50:17 +0000 (05:50 +0000)]
tighten up except - only ValueError can be raised in this situation

22 years agotighten up except - int() only raises ValueError
Skip Montanaro [Sat, 23 Mar 2002 05:47:31 +0000 (05:47 +0000)]
tighten up except - int() only raises ValueError

22 years agoadded RFC 2396 tests from Aaron Swartz included in bug # 450225.
Skip Montanaro [Sat, 23 Mar 2002 05:32:10 +0000 (05:32 +0000)]
added RFC 2396 tests from Aaron Swartz included in bug # 450225.
converted to use unittest

22 years agono longer needed - converted test_urlparse.py to use unittest
Skip Montanaro [Sat, 23 Mar 2002 05:29:59 +0000 (05:29 +0000)]
no longer needed - converted test_urlparse.py to use unittest

22 years agoSF bug 533234: tm_isdst > 1 Passed to strftime.
Tim Peters [Sat, 23 Mar 2002 03:26:53 +0000 (03:26 +0000)]
SF bug 533234:  tm_isdst > 1 Passed to strftime.
One more time on this turkey, but duller instead of cleverer.

Curious:  The docs say __getslice__ has been deprecated since 2.0, but
list.__getitem__ still doesn't work if you pass it a slice.  This makes
it a lot clearer to emulate a list by *being* a list <wink>.

Bugfix candidate.  Michael, just pile this patch on top of the others
that went by -- no need to try to pick these apart.

22 years agoCheck in (hopefully) corrected version of last change.
Neil Schemenauer [Sat, 23 Mar 2002 02:06:50 +0000 (02:06 +0000)]
Check in (hopefully) corrected version of last change.

22 years agoJust whitespace fiddling.
Tim Peters [Sat, 23 Mar 2002 00:28:57 +0000 (00:28 +0000)]
Just whitespace fiddling.

22 years agoBuild obmalloc.c directly instead of #include'ing from object.c.
Tim Peters [Sat, 23 Mar 2002 00:20:15 +0000 (00:20 +0000)]
Build obmalloc.c directly instead of #include'ing from object.c.
Also move all _PyMalloc_XXX entry points into obmalloc.c.

The Windows build works fine.
The Unix build is changed here (Makefile.pre.in), but not tested.
No other platform's build process has been fiddled.

22 years agoDisable the parser hacks that enabled the "yield" keyword using a future
Neil Schemenauer [Fri, 22 Mar 2002 23:53:36 +0000 (23:53 +0000)]
Disable the parser hacks that enabled the "yield" keyword using a future
statement.

22 years agoUndo last commit. It's causing the tests to file.
Neil Schemenauer [Fri, 22 Mar 2002 23:50:30 +0000 (23:50 +0000)]
Undo last commit.  It's causing the tests to file.

22 years agoDisable the parser hacks that allowed the "yield" keyword to be enabled
Neil Schemenauer [Fri, 22 Mar 2002 23:38:11 +0000 (23:38 +0000)]
Disable the parser hacks that allowed the "yield" keyword to be enabled
by a future statement.

22 years agoRemove malloc hooks.
Neil Schemenauer [Fri, 22 Mar 2002 23:20:15 +0000 (23:20 +0000)]
Remove malloc hooks.

22 years agoMatch behavior of the pickle.py module more closely.
Neil Schemenauer [Fri, 22 Mar 2002 23:02:53 +0000 (23:02 +0000)]
Match behavior of the pickle.py module more closely.

22 years agoAdd more example exceptions that unpickling can raise.
Neil Schemenauer [Fri, 22 Mar 2002 22:16:03 +0000 (22:16 +0000)]
Add more example exceptions that unpickling can raise.

22 years agoHandle os.listdir("") case correctly on Windows. Closes bug 500705.
Neil Schemenauer [Fri, 22 Mar 2002 20:51:58 +0000 (20:51 +0000)]
Handle os.listdir("") case correctly on Windows.  Closes bug 500705.

22 years agoDisallow open()ing of directories. Closes SF bug 487277.
Neil Schemenauer [Fri, 22 Mar 2002 20:38:57 +0000 (20:38 +0000)]
Disallow open()ing of directories.  Closes SF bug 487277.

22 years agobetter solution for bug #533234 courtesy of Tim.
Skip Montanaro [Fri, 22 Mar 2002 18:35:51 +0000 (18:35 +0000)]
better solution for bug #533234 courtesy of Tim.

Michael: use this version as the bugfix candidate...

22 years agoguarantee that the dst flag of synthetic "time" tuples passed to strftime
Skip Montanaro [Fri, 22 Mar 2002 18:07:49 +0000 (18:07 +0000)]
guarantee that the dst flag of synthetic "time" tuples passed to strftime
is always 0.  This closes bug #533234.

22 years agouse stat attributes instead of tuple entries
Walter Dörwald [Fri, 22 Mar 2002 17:30:38 +0000 (17:30 +0000)]
use stat attributes instead of tuple entries
and remove the unneccessary "import stat" statement.

22 years agoFix broken HTML in the head; this was reported by a user as causing Opera 6.01
Fred Drake [Fri, 22 Mar 2002 17:22:38 +0000 (17:22 +0000)]
Fix broken HTML in the head; this was reported by a user as causing Opera 6.01
to crash.  The user has reported the problem to Opera, but we still should
generate something that passes for HTML.

22 years agoAdd news about pymalloc being enabled.
Neil Schemenauer [Fri, 22 Mar 2002 17:06:59 +0000 (17:06 +0000)]
Add news about pymalloc being enabled.

22 years agoUse pymalloc for realloc() as well.
Neil Schemenauer [Fri, 22 Mar 2002 15:41:03 +0000 (15:41 +0000)]
Use pymalloc for realloc() as well.

22 years agoRevert part of previous patch: several install_* subcommands expect
Andrew M. Kuchling [Fri, 22 Mar 2002 15:35:17 +0000 (15:35 +0000)]
Revert part of previous patch: several install_* subcommands expect
    .compile to be None, and set it to true if it is.
    Caught by Pearu Peterson.

Bugfix candidate, if the previous change is accepted for
release22-maint.

22 years agoEnable pymalloc by default.
Neil Schemenauer [Fri, 22 Mar 2002 15:34:49 +0000 (15:34 +0000)]
Enable pymalloc by default.

22 years agoUse pymalloc if it's enabled.
Neil Schemenauer [Fri, 22 Mar 2002 15:33:15 +0000 (15:33 +0000)]
Use pymalloc if it's enabled.

22 years agoAdd pymalloc object memory management functions. These must be
Neil Schemenauer [Fri, 22 Mar 2002 15:28:30 +0000 (15:28 +0000)]
Add pymalloc object memory management functions.  These must be
available even if pymalloc is disabled since extension modules might use
them.

22 years agoMake PyObject_{NEW,New,Del,DEL} always use the standard malloc (PyMem_*)
Neil Schemenauer [Fri, 22 Mar 2002 15:25:18 +0000 (15:25 +0000)]
Make PyObject_{NEW,New,Del,DEL} always use the standard malloc (PyMem_*)
and not pymalloc.  Add the functions PyMalloc_New, PyMalloc_NewVar, and
PyMalloc_Del that will use pymalloc if it's enabled.   If pymalloc is
not enabled then they use the standard malloc (PyMem_*).

22 years agoGenerate with weaklink stubs, so missing routines (on MacOS 8.6 and earlier)
Jack Jansen [Fri, 22 Mar 2002 14:16:39 +0000 (14:16 +0000)]
Generate with weaklink stubs, so missing routines (on MacOS 8.6 and earlier)
don't cause import failure.

Fixes 531398, 2.2.1 candidate.

22 years ago- Weaklink InterfaceLib in _Res module
Jack Jansen [Fri, 22 Mar 2002 14:15:07 +0000 (14:15 +0000)]
- Weaklink InterfaceLib in _Res module
- forgot to pass libraryflags and stdlibraryflags on to ppc/carbon
  project generation.

First half of fix to 531398.

22 years agoEnable pymalloc by default in the Windows build.
Tim Peters [Fri, 22 Mar 2002 06:32:32 +0000 (06:32 +0000)]
Enable pymalloc by default in the Windows build.

22 years agoAdd a simple test suite for netrc.py, and remove it from test_sundry
Andrew M. Kuchling [Fri, 22 Mar 2002 02:48:57 +0000 (02:48 +0000)]
Add a simple test suite for netrc.py, and remove it from test_sundry

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.