]> granicus.if.org Git - python/log
python
23 years agoremoved debug print.
Jack Jansen [Tue, 11 Sep 2001 13:00:16 +0000 (13:00 +0000)]
removed debug print.

23 years agoAdded a note about making sure the Lac/Lib directory is in sys.path.
Jack Jansen [Tue, 11 Sep 2001 11:30:02 +0000 (11:30 +0000)]
Added a note about making sure the Lac/Lib directory is in sys.path.

23 years agoFailing to import macfsn is not a fatal error.
Jack Jansen [Tue, 11 Sep 2001 11:29:31 +0000 (11:29 +0000)]
Failing to import macfsn is not a fatal error.

23 years agoImplemented PyMac_GetFullPathname for MacPython.
Jack Jansen [Tue, 11 Sep 2001 09:22:19 +0000 (09:22 +0000)]
Implemented PyMac_GetFullPathname for MacPython.

23 years agoPossibly the end of SF [#460020] bug or feature: unicode() and subclasses.
Tim Peters [Tue, 11 Sep 2001 03:07:38 +0000 (03:07 +0000)]
Possibly the end of SF [#460020] bug or feature: unicode() and subclasses.
Changed unicode(i) to return a true Unicode object when i is an instance of
a unicode subclass.  Added PyUnicode_CheckExact macro.

23 years agoPyUnicode_FromEncodedObject(): Repair memory leak in an error case.
Tim Peters [Tue, 11 Sep 2001 02:00:50 +0000 (02:00 +0000)]
PyUnicode_FromEncodedObject():  Repair memory leak in an error case.

23 years agoAdded another test of str() applied to a string subclass instance,
Tim Peters [Tue, 11 Sep 2001 01:52:02 +0000 (01:52 +0000)]
Added another test of str() applied to a string subclass instance,
involving embedded null bytes, since it's possible to screw that up w/o
screwing up cases w/o embedded nulls.

23 years agoMore on SF bug [#460020] bug or feature: unicode() and subclasses.
Tim Peters [Tue, 11 Sep 2001 01:41:59 +0000 (01:41 +0000)]
More on SF bug [#460020] bug or feature: unicode() and subclasses.
Repaired str(i) to return a genuine string when i is an instance of a str
subclass.  New PyString_CheckExact() macro.

23 years agoFix tortured comment -- I must be on drugs today.
Tim Peters [Mon, 10 Sep 2001 23:53:53 +0000 (23:53 +0000)]
Fix tortured comment -- I must be on drugs today.

23 years agoMore on SF bug [#460020] bug or feature: unicode() and subclasses.
Tim Peters [Mon, 10 Sep 2001 23:37:46 +0000 (23:37 +0000)]
More on SF bug [#460020] bug or feature: unicode() and subclasses.
tuple(i) repaired to return a true tuple when i is an instance of a
tuple subclass.
Added PyTuple_CheckExact macro.
PySequence_Tuple():  if a tuple-like object isn't exactly a tuple, it's
not safe to return the object as-is -- make a new tuple of it instead.

23 years agotest_dir(): Add tests for dir(i) where i is a module subclass.
Tim Peters [Mon, 10 Sep 2001 23:12:14 +0000 (23:12 +0000)]
test_dir():  Add tests for dir(i) where i is a module subclass.

23 years agoPrototype for PyMac_GetFullPathname().
Jack Jansen [Mon, 10 Sep 2001 22:09:30 +0000 (22:09 +0000)]
Prototype for PyMac_GetFullPathname().

23 years agoReplaced PyMac_FullPath by PyMac_FullPathname, which has an extra 'length'
Jack Jansen [Mon, 10 Sep 2001 22:00:39 +0000 (22:00 +0000)]
Replaced PyMac_FullPath by PyMac_FullPathname, which has an extra 'length'
parameter for the return string (as unix pathnames are not limited
by the 255 char pstring limit).
Implemented the function for MachO-Python, where it returns unix pathnames.

23 years agomore xmlrpclib tweaks: fixed repr(Fault()); enable UTF-8 parsing in
Fredrik Lundh [Mon, 10 Sep 2001 21:45:42 +0000 (21:45 +0000)]
more xmlrpclib tweaks: fixed repr(Fault()); enable UTF-8 parsing in
xmllib (on 2.0 and later)

23 years agoMore for SF bug [#460020] bug or feature: unicode() and subclasses
Tim Peters [Mon, 10 Sep 2001 21:28:20 +0000 (21:28 +0000)]
More for SF bug [#460020] bug or feature: unicode() and subclasses
Repair float constructor to return a true float when passed a subclass
instance.  New PyFloat_CheckExact macro.

23 years agoSuperseded by Python 2.2.vct.
Jack Jansen [Mon, 10 Sep 2001 21:03:06 +0000 (21:03 +0000)]
Superseded by Python 2.2.vct.

23 years agoSF bug #460020: bug or feature: unicode() and subclasses.
Tim Peters [Mon, 10 Sep 2001 20:52:51 +0000 (20:52 +0000)]
SF bug #460020:  bug or feature: unicode() and subclasses.
Given an immutable type M, and an instance I of a subclass of M, the
constructor call M(I) was just returning I as-is; but it should return a
new instance of M.  This fixes it for M in {int, long}.  Strings, floats
and tuples remain to be done.
Added new macros PyInt_CheckExact and PyLong_CheckExact, to more easily
distinguish between "is" and "is a" (i.e., only an int passes
PyInt_CheckExact, while any sublass of int passes PyInt_Check).
Added private API function _PyLong_Copy.

23 years ago_portable_fseek():
Guido van Rossum [Mon, 10 Sep 2001 20:43:35 +0000 (20:43 +0000)]
_portable_fseek():

Subtlety on Windows: if we change test_largefile.py to use a file
> 4GB, it still fails.  A debug session suggests this is because
fseek(fp, 0, 2) refuses to seek to the end of the file when the file
is > 4GB, because it uses the SetFilePointer() in 32-bit mode.

But it only fails when we seek relative to the end of the file,
because in the other seek modes only calls to fgetpos() and fsetpos()
are made, which use Get/SetFilePointer() in 64-bit mode.  Solution:
#ifdef MS_WInDOWS, replace the call to fseek(fp, ...) with a call to
_lseeki64(fileno(fp), ...).  Make sure to call fflush(fp) first.

(XXX Could also replace the entire branch with a call to _lseeki64().
Would that be more efficient?  Certainly less generated code.)

(XXX This needs more testing.  I can't actually test that it works for
files >4GB on my Win98 machine, because the filesystem here won't let
me create files >=4GB at all.  Tim should test this on his Win2K
machine.)

23 years agosync with pythonware codebase: much faster import (doesn't import
Fredrik Lundh [Mon, 10 Sep 2001 19:45:02 +0000 (19:45 +0000)]
sync with pythonware codebase: much faster import (doesn't import
xmllib unless needed), merged docstring patches, added overridable
Transport.getparser to simplify plugging in different parsers.

23 years agoAnother volunteer.
Guido van Rossum [Mon, 10 Sep 2001 19:00:21 +0000 (19:00 +0000)]
Another volunteer.

23 years agoPyObject_Dir():
Guido van Rossum [Mon, 10 Sep 2001 18:27:43 +0000 (18:27 +0000)]
PyObject_Dir():
  - use PyModule_Check() instead of PyObject_TypeCheck(), now we can.
  - don't assert that the __dict__ gotten out of a module is always
    a dictionary; check its type, and raise an exception if it's not.

23 years agoPyModule_Check() now checks for subtype of module, as it should.
Guido van Rossum [Mon, 10 Sep 2001 18:21:59 +0000 (18:21 +0000)]
PyModule_Check() now checks for subtype of module, as it should.

23 years agoRemove some XXX markers
Andrew M. Kuchling [Mon, 10 Sep 2001 16:18:50 +0000 (16:18 +0000)]
Remove some XXX markers
Update the patch and bug counts

23 years agoUse $(CC) -G to link shared libraries on Solaris.
Martin v. Löwis [Mon, 10 Sep 2001 15:34:42 +0000 (15:34 +0000)]
Use $(CC) -G to link shared libraries on Solaris.

23 years agoWork around a LaTeX2HTML bug that caused the "m" in "mutable" to be dropped
Fred Drake [Mon, 10 Sep 2001 15:16:08 +0000 (15:16 +0000)]
Work around a LaTeX2HTML bug that caused the "m" in "mutable" to be dropped
in one place.

23 years agoRemove two XXX comments that have been resolved.
Guido van Rossum [Mon, 10 Sep 2001 15:03:48 +0000 (15:03 +0000)]
Remove two XXX comments that have been resolved.

23 years agoMove the global variables 'size' and 'name' to the top -- these are
Guido van Rossum [Mon, 10 Sep 2001 15:03:18 +0000 (15:03 +0000)]
Move the global variables 'size' and 'name' to the top -- these are
"module parameters", and used in the Windows test (which crashed
because size was undefined -- sigh).

23 years agoImprove threading on Solaris, according to SF patch #460269, submitted
Guido van Rossum [Mon, 10 Sep 2001 14:10:54 +0000 (14:10 +0000)]
Improve threading on Solaris, according to SF patch #460269, submitted
by bbrox@bbrox.org / lionel.ulmer@free.fr.

This adds a configure check and if all goes well turns on the
PTHREAD_SCOPE_SYSTEM thread attribute for new threads.

This should remove the need to add tiny sleeps at the start of threads
to allow other threads to be scheduled.

23 years agoChange the criteria for skipping the test.
Guido van Rossum [Mon, 10 Sep 2001 13:34:12 +0000 (13:34 +0000)]
Change the criteria for skipping the test.

If on Windows, we require the 'largefile' resource.

If not on Windows, we use a test that actually writes a byte beyond
the 2BG limit -- seeking alone is not sufficient, since on some
systems (e.g. Linux with glibc 2.2) the sytem call interface supports
large seek offsets but not all filesystem implementations do.

Note that on Windows, we do not use the write test: on Win2K, that
test can take a minute trying to zero all those blocks on disk, and on
Windows our code always supports large seek offsets (but again, not
all filesystems do).  This may mean that on Win95, or on certain other
backward filesystems, test_largefile will *fail*.

23 years agoRemoved an erronous comment about alias files.
Jack Jansen [Mon, 10 Sep 2001 08:55:25 +0000 (08:55 +0000)]
Removed an erronous comment about alias files.

23 years agoAdd section on long integer changes
Andrew M. Kuchling [Mon, 10 Sep 2001 03:20:53 +0000 (03:20 +0000)]
Add section on long integer changes
Add removal of 3-arg pow() for floats
Rewrite introduction a bit

23 years agoAdd a few more todo items.
Guido van Rossum [Mon, 10 Sep 2001 02:40:26 +0000 (02:40 +0000)]
Add a few more todo items.

23 years agoTest the failed-unicode-decoding bug in PyArg_ParseTuple().
Jeremy Hylton [Mon, 10 Sep 2001 01:57:12 +0000 (01:57 +0000)]
Test the failed-unicode-decoding bug in PyArg_ParseTuple().

23 years agoFix core dump in PyArg_ParseTuple() with Unicode arguments.
Jeremy Hylton [Mon, 10 Sep 2001 01:54:43 +0000 (01:54 +0000)]
Fix core dump in PyArg_ParseTuple() with Unicode arguments.

Reported by Fredrik Lundh on python-dev.

The conversimple() code that handles Unicode arguments and converts
them to the default encoding now calls converterr() with the original
Unicode argument instead of the NULL returned by the failed encoding
attempt.

23 years agoRepair late-night doc typos.
Tim Peters [Mon, 10 Sep 2001 01:39:21 +0000 (01:39 +0000)]
Repair late-night doc typos.

23 years agoThis time (I hope) I've fixed largefile
Guido van Rossum [Sun, 9 Sep 2001 23:51:39 +0000 (23:51 +0000)]
This time (I hope) I've fixed largefile
support on Linux (and Solaris, I expect) for real.
The necessary symbols are defined once and for all,
under the assumption that they won't harm elsewhere.

23 years agoTeach regrtest how to pass on doctest failure msgs. This is done via a
Tim Peters [Sun, 9 Sep 2001 06:12:01 +0000 (06:12 +0000)]
Teach regrtest how to pass on doctest failure msgs.  This is done via a
horridly inefficient hack in regrtest's Compare class, but it's about as
clean as can be:  regrtest has to set up the Compare instance before
importing a test module, and by the time the module *is* imported it's too
late to change that decision.  The good news is that the more tests we
convert to unittest and doctest, the less the inefficiency here matters.
Even now there are few tests with large expected-output files (the new
cost here is a Python-level call per .write() when there's an expected-
output file).

23 years agoForce "test." into the start of the module name, inherited by class and
Tim Peters [Sun, 9 Sep 2001 01:21:31 +0000 (01:21 +0000)]
Force "test." into the start of the module name, inherited by class and
type reprs, to accomodate the way Jack runs tests on the Mac.

23 years agoInstall the dialog resources into the application bundle. The EasyDialogs
Jack Jansen [Sun, 9 Sep 2001 00:36:52 +0000 (00:36 +0000)]
Install the dialog resources into the application bundle. The EasyDialogs
selftest now works.

23 years agoDon't call MacOS.SchedParams() in MachO, it doesn't exist.
Jack Jansen [Sun, 9 Sep 2001 00:36:01 +0000 (00:36 +0000)]
Don't call MacOS.SchedParams() in MachO, it doesn't exist.

23 years agoMinimal module to decode AppleSingle files (the way resource files are
Jack Jansen [Sun, 9 Sep 2001 00:35:19 +0000 (00:35 +0000)]
Minimal module to decode AppleSingle files (the way resource files are
stored in the CVS repository). It can either decode resource/data forks
in the standard Mac way or decode only the resource fork but store
the result in the data fork (the MacOSX preferred way). Finder info
and all other stuff is ignored.

23 years agoThis commit was manufactured by cvs2svn to create tag 'r22a3'. v2.2a3
cvs2svn [Sat, 8 Sep 2001 21:38:26 +0000 (21:38 +0000)]
This commit was manufactured by cvs2svn to create tag 'r22a3'.

23 years agoFinal tweaks for 2.2a3 distribution.
Jack Jansen [Sat, 8 Sep 2001 21:38:26 +0000 (21:38 +0000)]
Final tweaks for 2.2a3 distribution.

23 years agoSilence warnings about passing unsigned char** as char**.
Martin v. Löwis [Sat, 8 Sep 2001 16:23:34 +0000 (16:23 +0000)]
Silence warnings about passing unsigned char** as char**.

23 years agoOops, this file is very outdated. Removed.
Jack Jansen [Sat, 8 Sep 2001 13:57:16 +0000 (13:57 +0000)]
Oops, this file is very outdated. Removed.

23 years agoGeneralize operator.indexOf (PySequence_Index) to work with any
Tim Peters [Sat, 8 Sep 2001 04:00:12 +0000 (04:00 +0000)]
Generalize operator.indexOf (PySequence_Index) to work with any
iterable object.  I'm not sure how that got overlooked before!

Got rid of the internal _PySequence_IterContains, introduced a new
internal _PySequence_IterSearch, and rewrote all the iteration-based
"count of", "index of", and "is the object in it or not?" routines to
just call the new function.  I suppose it's slower this way, but the
code duplication was getting depressing.

23 years agoIt appears that unittest was changed to stop hoarding raw exception data,
Tim Peters [Sat, 8 Sep 2001 03:37:56 +0000 (03:37 +0000)]
It appears that unittest was changed to stop hoarding raw exception data,
saving instead a traceback string, but test_support's run_unittest was
still peeking into unittest internals and trying to pick apart unittest's
errors and failures vectors as if they contained exc_info() tuples instead
of strings.
Whatever, when a unittest-based test failed, test_support blew up.  I'm
not sure this is the right way to fix it; it simply gets me unstuck.

23 years agoThe usual post-release fiddling.
Tim Peters [Sat, 8 Sep 2001 01:25:47 +0000 (01:25 +0000)]
The usual post-release fiddling.

23 years agoPyClass_New(): put the extended Don Beaudry hook back in. When one of
Guido van Rossum [Fri, 7 Sep 2001 21:08:32 +0000 (21:08 +0000)]
PyClass_New(): put the extended Don Beaudry hook back in.  When one of
the base classes is not a classic class, and its class (the metaclass)
is callable, call the metaclass to do the deed.

One effect of this is that, when mixing classic and new-style classes
amongst the bases of a class, it doesn't matter whether the first base
class is a classic class or not: you will always get the error
"TypeError: metatype conflict among bases".  (Formerly, with a classic
class first, you'd get "TypeError: PyClass_New: base must be a class".)

Another effect is that multiple inheritance from ExtensionClass.Base,
with a classic class as the first class, transfers control to the
ExtensionClass.Base class.  This is what we need for SF #443239 (and
also for running Zope under 2.2a4, before ExtensionClass is replaced).

23 years agoPySequence_Check(), PyMapping_Check(): only return true if the
Guido van Rossum [Fri, 7 Sep 2001 20:20:11 +0000 (20:20 +0000)]
PySequence_Check(), PyMapping_Check(): only return true if the
corresponding "getitem" operation (sq_item or mp_subscript) is
implemented.  I realize that "sequence-ness" and "mapping-ness" are
poorly defined (and the tests may still be wrong for user-defined
instances, which always have both slots filled), but I believe that a
sequence that doesn't support its getitem operation should not be
considered a sequence.  All other operations are optional though.

For example, the ZODB BTree tests crashed because PySequence_Check()
returned true for a dictionary!  (In 2.2, the dictionary type has a
tp_as_sequence pointer, but the only field filled is sq_contains, so
you can write "if key in dict".)  With this fix, all standalone ZODB
tests succeed.

23 years agoPyType_IsSubtype(): test tp_flags for HAVE_CLASS bit before accessing
Guido van Rossum [Fri, 7 Sep 2001 18:52:13 +0000 (18:52 +0000)]
PyType_IsSubtype(): test tp_flags for HAVE_CLASS bit before accessing
a->tp_mro.  If a doesn't have class, it's considered a subclass only
of itself or of 'object'.

This one fix is enough to prevent the ExtensionClass test suite from
dumping core, but that doesn't say much (it's a rather small test
suite).  Also note that for ExtensionClass-defined types, a different
subclass test may be needed.  But I haven't checked whether
PyType_IsSubtype() is actually used in situations where this matters
-- probably it doesn't, since we also don't check for classic classes.

23 years agoBumping version numbers.
Barry Warsaw [Fri, 7 Sep 2001 18:23:30 +0000 (18:23 +0000)]
Bumping version numbers.

23 years agoMerging in removal of this file from branch to trunk.
Barry Warsaw [Fri, 7 Sep 2001 18:20:04 +0000 (18:20 +0000)]
Merging in removal of this file from branch to trunk.

23 years agoMerging 2.2a3 branch changes back into trunk
Barry Warsaw [Fri, 7 Sep 2001 18:13:44 +0000 (18:13 +0000)]
Merging 2.2a3 branch changes back into trunk

23 years agoPatch #438790: Add additional mappings.
Martin v. Löwis [Fri, 7 Sep 2001 16:49:12 +0000 (16:49 +0000)]
Patch #438790: Add additional mappings.
Also remove mappings that are not registered with IANA, and not extensions.

23 years agoPatch #450702: allow threads when calling into zlib, protect usage of
Martin v. Löwis [Fri, 7 Sep 2001 16:27:31 +0000 (16:27 +0000)]
Patch #450702: allow threads when calling into zlib, protect usage of
the module in multiple threads with a global lock.

23 years agoFix compiler warnings. This closes some of the #458880 problem.
Martin v. Löwis [Fri, 7 Sep 2001 16:10:00 +0000 (16:10 +0000)]
Fix compiler warnings. This closes some of the #458880 problem.

23 years ago(Slightly modified) patch by Steve Spicklemire to make Python build
Jack Jansen [Fri, 7 Sep 2001 14:25:12 +0000 (14:25 +0000)]
(Slightly modified) patch by Steve Spicklemire to make Python build
out of the box on OSX 10.1. Untested by me (except for not having adverse
effects on 10.0.4) but it looks good, for now. Eventually we should not
trigger on the darwin version but test for something, but until I have
the time to install 10.1 myself I have no clue what to test on.

It would be nice if this got in to the 2.2a3 distribution.

23 years agoFix bug #410274 - sys.prefix isn't always set.
Mark Hammond [Fri, 7 Sep 2001 14:08:01 +0000 (14:08 +0000)]
Fix bug #410274 - sys.prefix isn't always set.

If after calculating sys.path we do not have sys.prefix set, we loop over all path entries checking if one can point to our home directory.

23 years agoPatch by Mark Day to allow from __future__ imports. Looks harmless
Jack Jansen [Fri, 7 Sep 2001 10:11:31 +0000 (10:11 +0000)]
Patch by Mark Day to allow from __future__ imports. Looks harmless
enough, but may have side-effects because it preallocates a single
codeop.Compiler() to compile all statements the user enters.

Just: please review and retract/modify if necessary.

23 years agoSF bug [#458941] Looks like a unary minus bug.
Tim Peters [Fri, 7 Sep 2001 08:45:55 +0000 (08:45 +0000)]
SF bug [#458941] Looks like a unary minus bug.
com_factor():  when a unary minus is attached to a float or imaginary zero,
don't optimize the UNARY_MINUS opcode away:  the const dict can't
distinguish between +0.0 and -0.0, so ended up treating both like the
first one added to it.  Optimizing UNARY_PLUS away isn't a problem.

(BTW, I already uploaded the 2.2a3 Windows installer, and this isn't
important enough to delay the release.)

23 years agoFix typo in error reporting. This doesn't need to go into the release
Tim Peters [Fri, 7 Sep 2001 00:47:00 +0000 (00:47 +0000)]
Fix typo in error reporting.  This doesn't need to go into the release
branch (if it ever gets to the typo, the test is failing anyway).

23 years agoReverting to rev 1.2. Apparently gcc doesn't use the extended-precision
Tim Peters [Thu, 6 Sep 2001 23:00:21 +0000 (23:00 +0000)]
Reverting to rev 1.2.  Apparently gcc doesn't use the extended-precision
capabilities of the Pentium FPU, so what should have been (and were on
Windows) exact results got fuzzy.  Then it turns out test_support.fcmp()
isn't tolerant of tiny errors when *one* of the comparands is 0, but
test_complex's old check_close_real() is.  Rather than fix gcc <wink>,
easier to revert this test and revisit after the release.

23 years agoRewrite to use test_support's fine fcmp instead -- I didn't know that
Tim Peters [Thu, 6 Sep 2001 22:07:50 +0000 (22:07 +0000)]
Rewrite to use test_support's fine fcmp instead -- I didn't know that
existed when I wrote this test.

23 years agoAdded some underflow-to-0.0 long/long true division tests.
Tim Peters [Thu, 6 Sep 2001 22:03:36 +0000 (22:03 +0000)]
Added some underflow-to-0.0 long/long true division tests.

23 years agoRename 'getset' to 'property'.
Guido van Rossum [Thu, 6 Sep 2001 22:02:58 +0000 (22:02 +0000)]
Rename 'getset' to 'property'.

23 years agolong_true_divide: reliably force underflow to 0 when the denominator
Tim Peters [Thu, 6 Sep 2001 21:59:14 +0000 (21:59 +0000)]
long_true_divide:  reliably force underflow to 0 when the denominator
has more bits than the numerator than can be counted in a C int (yes,
that's unlikely, and no, I'm not adding a test case with a 2 gigabit
long).

23 years agoRename 'getset' to 'property'.
Guido van Rossum [Thu, 6 Sep 2001 21:56:42 +0000 (21:56 +0000)]
Rename 'getset' to 'property'.

23 years agoDo not rebuild html-$(RELEASE).tar every time we need to use it.
Fred Drake [Thu, 6 Sep 2001 19:35:02 +0000 (19:35 +0000)]
Do not rebuild html-$(RELEASE).tar every time we need to use it.

23 years agoBump version number.
Fred Drake [Thu, 6 Sep 2001 19:28:06 +0000 (19:28 +0000)]
Bump version number.

23 years agoUpdate link to the PyOpenGL project in the "gl" module docs.
Fred Drake [Thu, 6 Sep 2001 19:23:03 +0000 (19:23 +0000)]
Update link to the PyOpenGL project in the "gl" module docs.
This closes SF bug #459256.

23 years agoAdd missing period in docstring.
Fred Drake [Thu, 6 Sep 2001 19:13:14 +0000 (19:13 +0000)]
Add missing period in docstring.
(Steve, can you add this to the PyUnit repository as well?)

23 years agoDocument the built-in iter() function.
Fred Drake [Thu, 6 Sep 2001 19:04:29 +0000 (19:04 +0000)]
Document the built-in iter() function.

23 years agoBump version number.
Fred Drake [Thu, 6 Sep 2001 19:02:57 +0000 (19:02 +0000)]
Bump version number.

23 years agoAdded an additional link to NIST information on secure hashing.
Fred Drake [Thu, 6 Sep 2001 18:59:43 +0000 (18:59 +0000)]
Added an additional link to NIST information on secure hashing.
This closes SF bug #458785.

23 years agoClarified the interaction between string literals and continuation lines.
Fred Drake [Thu, 6 Sep 2001 18:41:15 +0000 (18:41 +0000)]
Clarified the interaction between string literals and continuation lines.
Fixes bug reported as SF bug #453728.

23 years agoMake the examples for "Default Argument Values" more presentable and
Fred Drake [Thu, 6 Sep 2001 18:21:30 +0000 (18:21 +0000)]
Make the examples for "Default Argument Values" more presentable and
less hostile to newbie use at the interactive prompt.
This is in response to SF bug #458654.

23 years agoFix parameter for PyInt_Check().
Fred Drake [Thu, 6 Sep 2001 18:06:46 +0000 (18:06 +0000)]
Fix parameter for PyInt_Check().
Add refcount information for other recently documented APIs.

23 years agoDocument the PyMethod_* type object, functions, and macros.
Fred Drake [Thu, 6 Sep 2001 17:12:44 +0000 (17:12 +0000)]
Document the PyMethod_* type object, functions, and macros.

23 years agoMinimal instructions for using the Makefile here. Also a clear
Jack Jansen [Thu, 6 Sep 2001 16:36:42 +0000 (16:36 +0000)]
Minimal instructions for using the Makefile here. Also a clear
statement that this is a proof-of-concept meant for people to
experiment with, nothing more.

23 years agoAdded targets to install the application, and to install mac-additions
Jack Jansen [Thu, 6 Sep 2001 16:33:57 +0000 (16:33 +0000)]
Added targets to install the application, and to install mac-additions
in Python.

23 years agoBump Windows buildno (installer changes were made earlier).
Tim Peters [Thu, 6 Sep 2001 16:33:17 +0000 (16:33 +0000)]
Bump Windows buildno (installer changes were made earlier).

23 years agoDocument the rule that Python.h must be included before any standard
Fred Drake [Thu, 6 Sep 2001 16:30:30 +0000 (16:30 +0000)]
Document the rule that Python.h must be included before any standard
headers.  This is the final checkin for SF bug #458768.

23 years agoDo not #include <stdio.h> since Python.h already does that.
Fred Drake [Thu, 6 Sep 2001 16:20:33 +0000 (16:20 +0000)]
Do not #include <stdio.h> since Python.h already does that.

23 years agoUse the standard argument convention for main(), and conform to the
Fred Drake [Thu, 6 Sep 2001 16:17:24 +0000 (16:17 +0000)]
Use the standard argument convention for main(), and conform to the
Python/C style guide.

23 years agoTwo small changes to the resource usage option:
Guido van Rossum [Thu, 6 Sep 2001 16:09:41 +0000 (16:09 +0000)]
Two small changes to the resource usage option:

(1) Allow multiple -u options to extend each other (and the initial
    value of use_resources passed into regrtest.main()).

(2) When a test is run stand-alone (not via regrtest.py), needed
    resources are always granted.

23 years agoAdded note of unittest.py changes that fixed bug 451309
Steve Purcell [Thu, 6 Sep 2001 16:05:17 +0000 (16:05 +0000)]
Added note of unittest.py changes that fixed bug 451309

23 years agoSeveral updates to cover omissions noted by Rich Salz.
Fred Drake [Thu, 6 Sep 2001 15:51:56 +0000 (15:51 +0000)]
Several updates to cover omissions noted by Rich Salz.
This closes SF bug #458771.

23 years agoDocument the "unixfrom" attribute of the rfc822.Message class.
Fred Drake [Thu, 6 Sep 2001 15:07:55 +0000 (15:07 +0000)]
Document the "unixfrom" attribute of the rfc822.Message class.
Based on a patch by Skip Montanaro, this closes SF bug #458885.

23 years agoAdded tests for key deletion for both Weak*Dictionary flavors.
Fred Drake [Thu, 6 Sep 2001 14:52:39 +0000 (14:52 +0000)]
Added tests for key deletion for both Weak*Dictionary flavors.
This covers regression on SF bug #458860.

23 years agoAdd __delitem__() support for WeakKeyDictionary.
Fred Drake [Thu, 6 Sep 2001 14:51:01 +0000 (14:51 +0000)]
Add __delitem__() support for WeakKeyDictionary.
This closes SF bug #458860.

23 years agoSkip instead of fail this test if the socket module has no ssl
Guido van Rossum [Thu, 6 Sep 2001 09:54:47 +0000 (09:54 +0000)]
Skip instead of fail this test if the socket module has no ssl
support.

23 years agoReport patch #416079 changes.
Martin v. Löwis [Thu, 6 Sep 2001 08:54:16 +0000 (08:54 +0000)]
Report patch #416079 changes.

23 years agoPatch #416079: fix the debug string output when receiving telnet commands.
Martin v. Löwis [Thu, 6 Sep 2001 08:51:38 +0000 (08:51 +0000)]
Patch #416079: fix the debug string output when receiving telnet commands.
added all the telnet options known to arpa/telnet.h
added all the options registered with IANA as of today
added the possibility for the user to have it's own option negotiation callback

23 years agoChanged TestResult to store only the text representation of an error.
Steve Purcell [Thu, 6 Sep 2001 08:24:40 +0000 (08:24 +0000)]
Changed TestResult to store only the text representation of an error.

This patch is similar to that proposed by Jeremy. The proposed patch altered
the interface of TestResult such that it would be passed the error
information as a string rather than an exc_info() tuple.

The implemented change leaves the interface untouched so that TestResults
are still passed the tracebacks, but stor them in stringified form for
later reporting.

Notes:
- Custom subclasses of TestResult written by users should be unaffected.
- The existing 'unittestgui.py' will still work with this module after the
  change.
- Support can later be added to pop into the debugger when an error occurs;
  this support should be added to a TestRunner rather than to TestCase itself,
  which this change will enable.

(Jeremy, Fred, Guido: Thanks for all the feedback)

23 years agoRevert parts of patch #453627, documenting the resulting test failures
Martin v. Löwis [Thu, 6 Sep 2001 08:16:17 +0000 (08:16 +0000)]
Revert parts of patch #453627, documenting the resulting test failures
instead.

23 years agoBase address updates for bug #442142 - DLL base assignments need update
Mark Hammond [Thu, 6 Sep 2001 06:42:00 +0000 (06:42 +0000)]
Base address updates for bug #442142 - DLL base assignments need update

23 years agoFirst part of fix for bug #442142 - DLL base assignments need update
Mark Hammond [Thu, 6 Sep 2001 06:39:39 +0000 (06:39 +0000)]
First part of fix for bug #442142 - DLL base assignments need update

23 years agoDubious assumptions:
Tim Peters [Thu, 6 Sep 2001 01:17:45 +0000 (01:17 +0000)]
Dubious assumptions:

1. That seeking beyond the end of a file increases the size of a file.
2. That files so extended are magically filled with null bytes.

I find no support for either in the C std, and #2 in particular turns out
not to be true on Win32 (you apparently see whatever trash happened to be
on disk).  Left #1 intact, but changed the test to check only bytes it
explicitly wrote.  Also fiddled the "expected" vs "got" failure reports
to consistently use repr (%r) -- they weren't readable otherwise.

23 years agoEnable large file support on Win32 systems.
Tim Peters [Thu, 6 Sep 2001 00:32:15 +0000 (00:32 +0000)]
Enable large file support on Win32 systems.
Curious:  the MS docs say stati64 etc are supported even on Win95, but
Win95 doesn't support a filesystem that allows partitions > 2 Gb.

test_largefile:  This was opening its test file in text mode.  I have no
idea how that worked under Win64, but it sure needs binary mode on Win98.
BTW, on Win98 test_largefile runs quickly (under a second).