]> granicus.if.org Git - python/log
python
22 years ago- use Tue/False for booleans
Fred Drake [Thu, 17 Apr 2003 22:01:17 +0000 (22:01 +0000)]
- use Tue/False for booleans
- some very minor cleanups

22 years agodded missing k and K format specifiers to Py_BuildValue and friends.
Jack Jansen [Thu, 17 Apr 2003 22:01:10 +0000 (22:01 +0000)]
dded missing k and K format specifiers to Py_BuildValue and friends.

22 years agomarkup banalities
Fred Drake [Thu, 17 Apr 2003 21:49:04 +0000 (21:49 +0000)]
markup banalities

22 years agoImplemented posix-mode parsing support in shlex.py, as dicussed in
Gustavo Niemeyer [Thu, 17 Apr 2003 21:31:33 +0000 (21:31 +0000)]
Implemented posix-mode parsing support in shlex.py, as dicussed in
mailing list, and in patch #722686.

22 years agoOops, 'k' is the new format code for un unchecked 32 bit quantity,
Jack Jansen [Thu, 17 Apr 2003 20:44:21 +0000 (20:44 +0000)]
Oops, 'k' is the new format code for un unchecked 32 bit quantity,
not 'K'.

22 years agoConverted manually written code to the new K format specifier.
Jack Jansen [Thu, 17 Apr 2003 20:40:07 +0000 (20:40 +0000)]
Converted manually written code to the new K format specifier.
Untested, but at least it still compiles.

22 years ago_Py_PrintReferences(): Changed to print object address at start of each
Tim Peters [Thu, 17 Apr 2003 19:52:29 +0000 (19:52 +0000)]
_Py_PrintReferences():  Changed to print object address at start of each
new line.

New pvt API function _Py_PrintReferenceAddresses():  Prints only the
addresses and refcnts of the live objects.  This is always safe to call,
because it has no dependence on Python's C API.

Py_Finalize():  If envar PYTHONDUMPREFS is set, call (the new)
_Py_PrintReferenceAddresses() right before dumping final pymalloc stats.
We can't print the reprs of the objects here because too much of the
interpreter has been shut down.  You need to correlate the addresses
displayed here with the object reprs printed by the earlier
PYTHONDUMPREFS call to _Py_PrintReferences().

22 years agoSF # 595026: support for masks in getargs.c.
Thomas Heller [Thu, 17 Apr 2003 18:55:45 +0000 (18:55 +0000)]
SF # 595026: support for masks in getargs.c.

New functions:
  unsigned long PyInt_AsUnsignedLongMask(PyObject *);
  unsigned PY_LONG_LONG) PyInt_AsUnsignedLongLongMask(PyObject *);
  unsigned long PyLong_AsUnsignedLongMask(PyObject *);
  unsigned PY_LONG_LONG) PyLong_AsUnsignedLongLongMask(PyObject *);

New and changed format codes:

b unsigned char 0..UCHAR_MAX
B unsigned char none **
h unsigned short 0..USHRT_MAX
H unsigned short none **
i int INT_MIN..INT_MAX
I * unsigned int 0..UINT_MAX
l long LONG_MIN..LONG_MAX
k * unsigned long none
L long long LLONG_MIN..LLONG_MAX
K * unsigned long long none

Notes:

* New format codes.

** Changed from previous "range-and-a-half" to "none"; the
range-and-a-half checking wasn't particularly useful.

New test test_getargs2.py, to verify all this.

22 years ago- New C API PyGC_Collect(), same as calling gc.collect().
Guido van Rossum [Thu, 17 Apr 2003 17:29:22 +0000 (17:29 +0000)]
- New C API PyGC_Collect(), same as calling gc.collect().
- Call this in Py_Finalize().
- Expand the Misc/NEWS text on PY_LONG_LONG.

22 years agoChanges in support of PEP 269.
Guido van Rossum [Thu, 17 Apr 2003 16:53:26 +0000 (16:53 +0000)]
Changes in support of PEP 269.

22 years agoA missing piece of the PEP 269 patch: add PyParser_SetError(), a
Guido van Rossum [Thu, 17 Apr 2003 16:02:26 +0000 (16:02 +0000)]
A missing piece of the PEP 269 patch: add PyParser_SetError(), a
wrapper around err_input().

22 years agoTrimmed trailing whitespace.
Tim Peters [Thu, 17 Apr 2003 15:24:21 +0000 (15:24 +0000)]
Trimmed trailing whitespace.

22 years agoPy_Finalize(): Reverted recent changes that tried to move the
Tim Peters [Thu, 17 Apr 2003 15:21:01 +0000 (15:21 +0000)]
Py_Finalize():  Reverted recent changes that tried to move the
PYTHONDUMPREFS output after most teardown.  Attempts to use
PYTHONDUMPREFS with the Zope3 test suite died with Py_FatalError(),
since _Py_PrintReferences() can end up executing arbitrary Python code
(for objects that override __repr__), and that requires an intact
interpreter.

22 years agoChanges from Jonathan Riehl to allow his pgen extension (PEP 269) to
Guido van Rossum [Thu, 17 Apr 2003 14:55:42 +0000 (14:55 +0000)]
Changes from Jonathan Riehl to allow his pgen extension (PEP 269) to
work.  This includes some more code that used to be part of pgen in
the main parser; I'm okay with that.  I'll see if the Windows build
needs work next.

22 years agoRemove extra space in docstring
Neal Norwitz [Thu, 17 Apr 2003 13:13:55 +0000 (13:13 +0000)]
Remove extra space in docstring

22 years ago- The repr() of a weakref object now shows the __name__ attribute of
Guido van Rossum [Wed, 16 Apr 2003 21:13:23 +0000 (21:13 +0000)]
- The repr() of a weakref object now shows the __name__ attribute of
  the referenced object, if it has one.

Also use %p to format pointers consistently, and use <weakproxy ...>
in proxy_repr(), to match the type name.

22 years agoSupport UCS-4 Tcl for UCS-4 Python builds. Fixes #719880.
Martin v. Löwis [Wed, 16 Apr 2003 20:34:55 +0000 (20:34 +0000)]
Support UCS-4 Tcl for UCS-4 Python builds. Fixes #719880.

22 years agoAdd 'get' method to Variable and switch it from internal class to
Guido van Rossum [Wed, 16 Apr 2003 20:10:03 +0000 (20:10 +0000)]
Add 'get' method to Variable and switch it from internal class to
standard class (it is now useful because it doesn't constrain the type
of the value).

22 years ago- super() no longer ignores data descriptors, except __class__. See
Guido van Rossum [Wed, 16 Apr 2003 20:02:22 +0000 (20:02 +0000)]
- super() no longer ignores data descriptors, except __class__.  See
  the thread started at
  http://mail.python.org/pipermail/python-dev/2003-April/034338.html

22 years agoSigh. The crucial change was still missing from the previous
Guido van Rossum [Wed, 16 Apr 2003 20:01:36 +0000 (20:01 +0000)]
Sigh.  The crucial change was still missing from the previous
checkin. :-(

22 years agoFor StringVar results to strings. Document that boolean things are of
Martin v. Löwis [Wed, 16 Apr 2003 19:42:51 +0000 (19:42 +0000)]
For StringVar results to strings. Document that boolean things are of
type bool. Requested in #721171.

22 years ago- super() no longer ignores data descriptors, except __class__. See
Guido van Rossum [Wed, 16 Apr 2003 19:40:58 +0000 (19:40 +0000)]
- super() no longer ignores data descriptors, except __class__.  See
  the thread started at
  http://mail.python.org/pipermail/python-dev/2003-April/034338.html

22 years agoMinor source formatting fixes.
Raymond Hettinger [Wed, 16 Apr 2003 18:40:04 +0000 (18:40 +0000)]
Minor source formatting fixes.

22 years agoMostly reformatting, splitting long lines, whitespace normalization
Barry Warsaw [Wed, 16 Apr 2003 18:08:23 +0000 (18:08 +0000)]
Mostly reformatting, splitting long lines, whitespace normalization
etc.

Fixed one typo in the __main__ section.

22 years agoAs discussed on python-dev, revised docs to note that
Raymond Hettinger [Wed, 16 Apr 2003 17:28:12 +0000 (17:28 +0000)]
As discussed on python-dev, revised docs to note that
PyObject_IsTrue() can have an error result.

Also, added missing docs for PyObject_Not().

Will backport.

22 years agoAdd version info for name2codepoint and codepoint2name
Neal Norwitz [Wed, 16 Apr 2003 13:21:06 +0000 (13:21 +0000)]
Add version info for name2codepoint and codepoint2name

22 years agoWhen on MacOSX, and only in a framework build, add
Jack Jansen [Wed, 16 Apr 2003 13:12:21 +0000 (13:12 +0000)]
When on MacOSX, and only in a framework build, add
~/Library/Python/2.3/site-packages to sys.path, if it exists.

22 years agoThe identify() description didn't match the code. Fixed.
Jack Jansen [Wed, 16 Apr 2003 13:10:53 +0000 (13:10 +0000)]
The identify() description didn't match the code. Fixed.

22 years agoRefer people to the help pages on failure to load the database.
Jack Jansen [Wed, 16 Apr 2003 12:40:21 +0000 (12:40 +0000)]
Refer people to the help pages on failure to load the database.

22 years agoAdded a note on getting 404 Not Found errors when loading the database.
Jack Jansen [Wed, 16 Apr 2003 12:39:03 +0000 (12:39 +0000)]
Added a note on getting 404 Not Found errors when loading the database.

22 years agoAdded support for per-user installs.
Jack Jansen [Wed, 16 Apr 2003 12:17:56 +0000 (12:17 +0000)]
Added support for per-user installs.
Don't show psuedo-packages by default, added a button to show them.
Cleaned up interface a little (not enough, though).

22 years agoAllow switching of install dir after creation of preferences.
Jack Jansen [Wed, 16 Apr 2003 12:15:34 +0000 (12:15 +0000)]
Allow switching of install dir after creation of preferences.
Changed some message to be clearer when presented by Package Manager.

22 years agoAdd two dictionaries to htmlentitydefs: name2codepoint maps
Walter Dörwald [Wed, 16 Apr 2003 09:46:13 +0000 (09:46 +0000)]
Add two dictionaries to htmlentitydefs: name2codepoint maps
HTML entity names to Unicode codepoints (as integers).
codepoint2name is the reverse mapping. From SF patch #722017.

22 years agoFix three (!) object leaks in the code for assignment to __bases__.
Guido van Rossum [Tue, 15 Apr 2003 22:09:45 +0000 (22:09 +0000)]
Fix three (!) object leaks in the code for assignment to __bases__.

22 years agoAdapted GUI for per-user install. Doesn't do anything yet, though
Jack Jansen [Tue, 15 Apr 2003 21:59:42 +0000 (21:59 +0000)]
Adapted GUI for per-user install. Doesn't do anything yet, though

22 years agoTest SystemEvents too.
Jack Jansen [Tue, 15 Apr 2003 21:40:30 +0000 (21:40 +0000)]
Test SystemEvents too.

22 years agoUse object interface for global vars. Fixes #721171.
Martin v. Löwis [Tue, 15 Apr 2003 20:33:20 +0000 (20:33 +0000)]
Use object interface for global vars. Fixes #721171.
Also move complete processing of get/set/delvar calls to target thread.

22 years agoOuch, it's Carlo Verre, not Verre Carlo.
Guido van Rossum [Tue, 15 Apr 2003 20:05:10 +0000 (20:05 +0000)]
Ouch, it's Carlo Verre, not Verre Carlo.

22 years agoAdd a few errors tests for range().
Walter Dörwald [Tue, 15 Apr 2003 18:59:28 +0000 (18:59 +0000)]
Add a few errors tests for range().

22 years agoFix copy & paste error in comment.
Walter Dörwald [Tue, 15 Apr 2003 16:08:01 +0000 (16:08 +0000)]
Fix copy & paste error in comment.

22 years agoFix the test so that it works even when /etc/group has two entries
Walter Dörwald [Tue, 15 Apr 2003 15:59:36 +0000 (15:59 +0000)]
Fix the test so that it works even when /etc/group has two entries
for the same gid.

22 years agoFix the test so that it works even when /etc/passwd has two entries
Walter Dörwald [Tue, 15 Apr 2003 15:39:08 +0000 (15:39 +0000)]
Fix the test so that it works even when /etc/passwd has two entries
for the same uid.

22 years ago- pythunrun.c, Py_Finalize(): move the call to _Py_PrintReferences()
Guido van Rossum [Tue, 15 Apr 2003 15:12:39 +0000 (15:12 +0000)]
- pythunrun.c, Py_Finalize(): move the call to _Py_PrintReferences()
  even farther down, to just before the call to
  _PyObject_DebugMallocStats().  This required the following changes:

- pystate.c, PyThreadState_GetDict(): changed not to raise an
  exception or issue a fatal error when no current thread state is
  available, but simply return NULL without raising an exception
  (ever).

- object.c, Py_ReprEnter(): when PyThreadState_GetDict() returns NULL,
  don't raise an exception but return 0.  This means that when
  printing a container that's recursive, printing will go on and on
  and on.  But that shouldn't happen in the case we care about (see
  first bullet).

- Updated Misc/NEWS and Doc/api/init.tex to reflect changes to
  PyThreadState_GetDict() definition.

22 years ago- Use the tarfile module to unpack tarfiles.
Jack Jansen [Tue, 15 Apr 2003 14:43:05 +0000 (14:43 +0000)]
- Use the tarfile module to unpack tarfiles.
- Allow setting the destination install directory. If this is set then
  it is used for the modules, other items (header files, etc) are not
  installed, and warnings are printed if the package would have liked to.

Unfortunaltey binary installs seem broken due to a tarfile bug (#721871)
or my misunderstanding of how tarfile works.

22 years agotest_range(): The C code changed to raise TypeError in one of these
Tim Peters [Tue, 15 Apr 2003 14:40:03 +0000 (14:40 +0000)]
test_range():  The C code changed to raise TypeError in one of these
cases, but the test still expected ValueError.  Repaired that.

22 years agoMove the call to _Py_PrintReferences() a bit further down. This
Guido van Rossum [Tue, 15 Apr 2003 14:10:09 +0000 (14:10 +0000)]
Move the call to _Py_PrintReferences() a bit further down.  This
prevents it from showing stuff (like codec state) that is cleared when
the interpreter state is cleared.

22 years agoSome errors from range() should be TypeError, not ValueError.
Guido van Rossum [Tue, 15 Apr 2003 12:43:26 +0000 (12:43 +0000)]
Some errors from range() should be TypeError, not ValueError.

22 years agoPort test_pwd.py to PyUnit. Check that getpwall() and
Walter Dörwald [Tue, 15 Apr 2003 11:10:33 +0000 (11:10 +0000)]
Port test_pwd.py to PyUnit. Check that getpwall() and
getpwnam()/getpwuid() return consistent data.

Change test_grp to check that getgrall() and
getgrnam()/getgrgid() return consistent data.
Add error checks similar to test_pwd.py.

Port test___all__.py to PyUnit.

From SF patch #662807.

22 years agoExtend SF patch #707257: Improve code generation
Raymond Hettinger [Tue, 15 Apr 2003 10:35:07 +0000 (10:35 +0000)]
Extend SF patch #707257: Improve code generation
to cover the case for:  "x,y,z=1,2,3".  Gives a 30% speed-up.

Also, added FOR_ITER to the list of opcodes that can jump.

22 years agoThe date class is now properly subclassable. (SF bug #720908)
Guido van Rossum [Mon, 14 Apr 2003 22:01:58 +0000 (22:01 +0000)]
The date class is now properly subclassable.  (SF bug #720908)

(This is only the tip of the iceberg; the time and datetime classes
need the same treatment.)

22 years agoClose off the "Verre Carlo hack" as discussed on python-dev.
Guido van Rossum [Mon, 14 Apr 2003 21:46:03 +0000 (21:46 +0000)]
Close off the "Verre Carlo hack" as discussed on python-dev.

22 years agosuper_getattro(): kill some dead code; explain a mystery.
Guido van Rossum [Mon, 14 Apr 2003 21:20:26 +0000 (21:20 +0000)]
super_getattro(): kill some dead code; explain a mystery.

22 years ago- list.insert(i, x) now interprets negative i as it would be
Guido van Rossum [Mon, 14 Apr 2003 20:58:14 +0000 (20:58 +0000)]
- list.insert(i, x) now interprets negative i as it would be
  interpreted by slicing, so negative values count from the end of the
  list.  This was the only place where such an interpretation was not
  placed on a list index.

22 years agoAdd a name
Andrew M. Kuchling [Mon, 14 Apr 2003 18:47:28 +0000 (18:47 +0000)]
Add a name

22 years agoPrompted by Tim's comment, when handle_range_longs() sees an
Guido van Rossum [Mon, 14 Apr 2003 18:25:04 +0000 (18:25 +0000)]
Prompted by Tim's comment, when handle_range_longs() sees an
unexpected type, report the actual type rather than 'float'.  (It's
hard to even reach this code with a float. :-)

22 years agoSF patch #720991 by Gary Herron:
Guido van Rossum [Mon, 14 Apr 2003 17:59:34 +0000 (17:59 +0000)]
SF patch #720991 by Gary Herron:
A small fix for bug #545855 and Greg Chapman's
addition of op code SRE_OP_MIN_REPEAT_ONE for
eliminating recursion on simple uses of pattern '*?' on a
long string.

22 years agoTypo fix
Andrew M. Kuchling [Mon, 14 Apr 2003 15:32:18 +0000 (15:32 +0000)]
Typo fix

22 years agoFix docstring typo
Andrew M. Kuchling [Mon, 14 Apr 2003 15:31:27 +0000 (15:31 +0000)]
Fix docstring typo

22 years agoPatch #709178: remove -static option from cygwinccompiler
Jason Tishler [Mon, 14 Apr 2003 12:51:26 +0000 (12:51 +0000)]
Patch #709178: remove -static option from cygwinccompiler

After some more reflection (and no negative feedback), I am reverting the
original patch and applying my version, cygwinccompiler.py-shared.diff,
instead.

My reasons are the following:

1. support for older toolchains is retained
2. support for new toolchains (i.e., ld -shared) is added

The goal of my approach is to avoid breaking older toolchains while adding
better support for newer ones.

22 years agoMake readers and writers participate in garbage collection.
Jeremy Hylton [Mon, 14 Apr 2003 02:20:55 +0000 (02:20 +0000)]
Make readers and writers participate in garbage collection.
Fix memory leak in dialect_init().

22 years agoGet test working if gzip support is not available
Neal Norwitz [Mon, 14 Apr 2003 01:18:32 +0000 (01:18 +0000)]
Get test working if gzip support is not available

22 years agohandle_range_longs(): refcount handling is very delicate here, and
Tim Peters [Sun, 13 Apr 2003 22:13:08 +0000 (22:13 +0000)]
handle_range_longs():  refcount handling is very delicate here, and
the code erroneously decrefed the istep argument in an error case.  This
caused a co_consts tuple to lose a float constant prematurely, which
eventually caused gc to try executing static data in floatobject.c (don't
ask <wink>).  So reworked this extensively to ensure refcount correctness.

22 years agoMention timeit module
Andrew M. Kuchling [Sun, 13 Apr 2003 21:44:28 +0000 (21:44 +0000)]
Mention timeit module
Fix error in description of logging package's 'propagate'
Mention default arg to dict.pop()
Link to more module docs
   (I wonder if I should adopt some convention such as linking the first
    mention of all new modules to the LibRef?)
Various text changes
Bump version number and Python version

22 years agoUse simpler import
Andrew M. Kuchling [Sun, 13 Apr 2003 21:13:02 +0000 (21:13 +0000)]
Use simpler import

22 years agoMust declare vrbls at the tops of blocks in C89 (wouldn't compile).
Tim Peters [Sun, 13 Apr 2003 03:25:15 +0000 (03:25 +0000)]
Must declare vrbls at the tops of blocks in C89 (wouldn't compile).

22 years agoOops, _propdeclarations and friends are needed: gensuitemodule uses them
Jack Jansen [Sat, 12 Apr 2003 22:27:11 +0000 (22:27 +0000)]
Oops, _propdeclarations and friends are needed: gensuitemodule uses them
to lookup properties declared in base classes. Looking at it I'm not sure
what the official scope if the property codes is, maybe it is only the
(OSA) class in which they are used. But giving them global scope hasn't been
a problem so far.

Regenerated the standard suites, which are now also space-indented.

22 years agouse PyModule_Add{Int,String}Constant() where appropriate
Skip Montanaro [Sat, 12 Apr 2003 19:23:46 +0000 (19:23 +0000)]
use PyModule_Add{Int,String}Constant() where appropriate
(thanks to Neal Norwitz for the code review, BTW)

22 years agotighten up string checks
Skip Montanaro [Sat, 12 Apr 2003 19:17:14 +0000 (19:17 +0000)]
tighten up string checks
make csv_{get,unregister}_dialect METH_O functions to avoid PyArg_ParseTuple

22 years agoadd writerows docstring
Skip Montanaro [Sat, 12 Apr 2003 18:57:52 +0000 (18:57 +0000)]
add writerows docstring
conditionally exclude Unicode functions

22 years agotypo
Skip Montanaro [Fri, 11 Apr 2003 23:10:13 +0000 (23:10 +0000)]
typo

22 years agotypo
Skip Montanaro [Fri, 11 Apr 2003 21:40:01 +0000 (21:40 +0000)]
typo

22 years agoBack out of setting the default charset to iso-8859-1.
Barry Warsaw [Fri, 11 Apr 2003 21:28:10 +0000 (21:28 +0000)]
Back out of setting the default charset to iso-8859-1.

22 years agoNullTranslations.__init__(): Back out of setting the default charset
Barry Warsaw [Fri, 11 Apr 2003 20:26:47 +0000 (20:26 +0000)]
NullTranslations.__init__(): Back out of setting the default charset
to iso-8859-1.

GNUTranslations._parse(): Back out the addition of a test for
Project-ID-Version in the metadata.  This was deliberately removed in
response to SF patch #700839.

Also, re-organize the code in _parse() so we parse the metadata header
containing the charset parameter before we try to decode any strings
using charset.

22 years agozap commented out bit of code
Skip Montanaro [Fri, 11 Apr 2003 19:33:55 +0000 (19:33 +0000)]
zap commented out bit of code

22 years agoFix markup
Neal Norwitz [Fri, 11 Apr 2003 18:48:03 +0000 (18:48 +0000)]
Fix markup

22 years agoPatch by Chad Netzer (with significant change):
Guido van Rossum [Fri, 11 Apr 2003 18:43:06 +0000 (18:43 +0000)]
Patch by Chad Netzer (with significant change):
- range() now works even if the arguments are longs with magnitude
  larger than sys.maxint, as long as the total length of the sequence
  fits.  E.g., range(2**100, 2**101, 2**100) is the following list:
  [1267650600228229401496703205376L].  (SF patch #707427.)

22 years agoFrom http://mail.python.org/pipermail/i18n-sig/2003-April/001557.html
Barry Warsaw [Fri, 11 Apr 2003 18:36:43 +0000 (18:36 +0000)]
From http://mail.python.org/pipermail/i18n-sig/2003-April/001557.html

- Expose NullTranslations and GNUTranslations to __all__

- Set the default charset to iso-8859-1.  It used to be None, which
would cause problems with .ugettext() if the file had no charset
parameter.  Arguably, the po/mo file would be broken, but I still think
iso-8859-1 is a reasonable default.

- Add a "coerce" default argument to GNUTranslations's constructor.  The
reason for this is that in Zope, we want all msgids and msgstrs to be
Unicode.  For the latter, we could use .ugettext() but there isn't
currently a mechanism for Unicode-ifying msgids.

The plan then is that the charset parameter specifies the encoding for
both the msgids and msgstrs, and both are decoded to Unicode when read.
For example, we might encode po files with utf-8. I think the GNU
gettext tools don't care.

Since this could potentially break code [*] that wants to use the
encoded interface .gettext(), the constructor flag is added, defaulting
to False.  Most code I suspect will want to set this to True and use
.ugettext().

- A few other minor changes from the Zope project, including asserting
that a zero-length msgid must have a Project-ID-Version header for it to
be counted as the metadata record.

22 years agoAdded a note that the Mac OSA modules are documented.
Jack Jansen [Fri, 11 Apr 2003 15:37:20 +0000 (15:37 +0000)]
Added a note that the Mac OSA modules are documented.

22 years agoSF patch #706707, time.tzset standards compliance update by Stuart Bishop
Neal Norwitz [Fri, 11 Apr 2003 15:35:53 +0000 (15:35 +0000)]
SF patch #706707, time.tzset standards compliance update by Stuart Bishop

Update configure and test to use proper timezone specifications

22 years agoMoved all the scripting stuff to a separate section, added all the
Jack Jansen [Fri, 11 Apr 2003 15:35:28 +0000 (15:35 +0000)]
Moved all the scripting stuff to a separate section, added all the
missing bits (well, all the bits I could think of) and updated the
rest.

22 years agoAvoid creating one of the TestSuite objects.
Fred Drake [Fri, 11 Apr 2003 15:14:05 +0000 (15:14 +0000)]
Avoid creating one of the TestSuite objects.

22 years agoFix test_tarfile failure when gzip is not available
Neal Norwitz [Fri, 11 Apr 2003 03:05:56 +0000 (03:05 +0000)]
Fix test_tarfile failure when gzip is not available
The module would exist, but be empty if already imported.
This change ensures we have gzip available.

22 years agoAttempt to make all the various string *strip methods the same.
Neal Norwitz [Thu, 10 Apr 2003 22:35:32 +0000 (22:35 +0000)]
Attempt to make all the various string *strip methods the same.
 * Doc - add doc for when functions were added
 * UserString
 * string object methods
 * string module functions
'chars' is used for the last parameter everywhere.

These changes will be backported, since part of the changes
have already been made, but they were inconsistent.

22 years agoMove declaration of enc to scope where it is used
Neal Norwitz [Thu, 10 Apr 2003 21:53:14 +0000 (21:53 +0000)]
Move declaration of enc to scope where it is used

22 years agoAdd a space after expression to be consistent
Neal Norwitz [Thu, 10 Apr 2003 21:51:29 +0000 (21:51 +0000)]
Add a space after expression to be consistent

22 years agoPyErr_NormalizeException(): in the type==NULL test, we should simply
Guido van Rossum [Thu, 10 Apr 2003 20:29:48 +0000 (20:29 +0000)]
PyErr_NormalizeException(): in the type==NULL test, we should simply
return.  Setting an exception can mess with the exception state, and
continuing is definitely wrong (since type is dereferenced later on).
Some code that calls this seems to be prepared for a NULL exception
type, so let's be safe rather than sorry and simply assume there's
nothing to normalize in this case.

22 years agohoist contents of csv submodule up to the package level
Skip Montanaro [Thu, 10 Apr 2003 17:16:15 +0000 (17:16 +0000)]
hoist contents of csv submodule up to the package level

22 years agoSF patch #718867: Fix reference leak for time.strptime
Raymond Hettinger [Thu, 10 Apr 2003 16:03:22 +0000 (16:03 +0000)]
SF patch #718867:  Fix reference leak for time.strptime
(contributed by Brett Cannon)

22 years agoMake Unpickler objects colletable.
Jeremy Hylton [Wed, 9 Apr 2003 21:25:30 +0000 (21:25 +0000)]
Make Unpickler objects colletable.

Bugfix candidate.

22 years agoMake Picklers collectable.
Jeremy Hylton [Wed, 9 Apr 2003 21:05:12 +0000 (21:05 +0000)]
Make Picklers collectable.

Bug fix candidate.

22 years agoMissing DECREF.
Jeremy Hylton [Wed, 9 Apr 2003 21:01:42 +0000 (21:01 +0000)]
Missing DECREF.

22 years agoPatch #718551: cygwinccompiler.get_versions() patch
Jason Tishler [Wed, 9 Apr 2003 20:13:59 +0000 (20:13 +0000)]
Patch #718551: cygwinccompiler.get_versions() patch

The cygwinccompiler.get_versions() function only handles versions numbers of
the form "x.y.z".  The attached patch enhances get_versions() to handle "x.y"
too (i.e., the ".z" is optional).

This change causes the unnecessary "--entry _DllMain@12" link option to be
suppressed for recent Cygwin and Mingw toolchains. Additionally, it directs
recent Mingw toolchains to use gcc instead of dllwrap during linking.

22 years agoAdd test for MessageBeep()
Guido van Rossum [Wed, 9 Apr 2003 19:57:06 +0000 (19:57 +0000)]
Add test for MessageBeep()

22 years ago- New function winsound.MessageBeep() wraps the Win32 API
Guido van Rossum [Wed, 9 Apr 2003 19:39:06 +0000 (19:39 +0000)]
- New function winsound.MessageBeep() wraps the Win32 API
  MessageBeep().

22 years agoAdd MessageBeep() API.
Guido van Rossum [Wed, 9 Apr 2003 19:38:08 +0000 (19:38 +0000)]
Add MessageBeep() API.

22 years agoDetabified.
Guido van Rossum [Wed, 9 Apr 2003 19:36:34 +0000 (19:36 +0000)]
Detabified.
Removed dead code.

22 years agoMake it possible to call instancemethod() with 2 arguments.
Guido van Rossum [Wed, 9 Apr 2003 19:35:08 +0000 (19:35 +0000)]
Make it possible to call instancemethod() with 2 arguments.

22 years agoReformat a few docstrings that caused line wraps in help() output.
Guido van Rossum [Wed, 9 Apr 2003 19:32:45 +0000 (19:32 +0000)]
Reformat a few docstrings that caused line wraps in help() output.

22 years agoFix two crashes on Windows:
Guido van Rossum [Wed, 9 Apr 2003 19:31:02 +0000 (19:31 +0000)]
Fix two crashes on Windows:
- CHECK_VALID() was checking the wrong value for a closed fd
- fseek(&_iob[fileno], ...) doesn't work for fileno >= 20

22 years agoVarious improvements to the way the table is formatted, to deal with
Guido van Rossum [Wed, 9 Apr 2003 19:10:46 +0000 (19:10 +0000)]
Various improvements to the way the table is formatted, to deal with
exceptionally large totals etc.