]> granicus.if.org Git - python/log
python
23 years agoMore bug 460020. When I is a subclass of int, disable the +I(whatever),
Tim Peters [Tue, 11 Sep 2001 21:44:14 +0000 (21:44 +0000)]
More bug 460020.  When I is a subclass of int, disable the +I(whatever),
I(0) << whatever, I(0) >> whatever, I(whatever) << 0 and I(whatever) >> 0
optimizations.

23 years agoThese modules now live under the Carbon package.
Jack Jansen [Tue, 11 Sep 2001 21:25:10 +0000 (21:25 +0000)]
These modules now live under the Carbon package.
Added a few new toolbox modules.
Noted machine dependencies for some modules.
Moved waste to undoc.tex.

23 years agoAdded applesingle, macresource, Nav and videoreader.
Jack Jansen [Tue, 11 Sep 2001 21:24:07 +0000 (21:24 +0000)]
Added applesingle, macresource, Nav and videoreader.
Moved icopen to its alphabetical place.
Moved waste here (from toolbox).

23 years agoAdded a note that these are not available under Carbon (or
Jack Jansen [Tue, 11 Sep 2001 20:18:04 +0000 (20:18 +0000)]
Added a note that these are not available under Carbon (or
OSX MachO Python).

23 years agoAnother documentation contributor.
Fred Drake [Tue, 11 Sep 2001 19:58:51 +0000 (19:58 +0000)]
Another documentation contributor.

23 years agoDocument clearly that the only way to retrieve the return code from the
Fred Drake [Tue, 11 Sep 2001 19:56:51 +0000 (19:56 +0000)]
Document clearly that the only way to retrieve the return code from the
child processes is to use the Popen3 and Popen4 classes.
This fixes SF bug #460512.

23 years agoThe endless 460020 bug.
Tim Peters [Tue, 11 Sep 2001 19:48:03 +0000 (19:48 +0000)]
The endless 460020 bug.
Disable t[:], t*0, t*1 optimizations when t is of a tuple subclass type.

23 years agoAdded Donovan Preston.
Jack Jansen [Tue, 11 Sep 2001 19:12:02 +0000 (19:12 +0000)]
Added Donovan Preston.

23 years agoAdded entry for the hmac module.
Fred Drake [Tue, 11 Sep 2001 16:59:42 +0000 (16:59 +0000)]
Added entry for the hmac module.

23 years agoDocumentation for the new login() method of the smtplib.SMTP class,
Fred Drake [Tue, 11 Sep 2001 16:58:00 +0000 (16:58 +0000)]
Documentation for the new login() method of the smtplib.SMTP class,
contributed by Gerhard Häring.
This is part of SF patch #460112.

23 years agoDocumentation for the new hmac module, contributed by Gerhard Häring.
Fred Drake [Tue, 11 Sep 2001 16:56:09 +0000 (16:56 +0000)]
Documentation for the new hmac module, contributed by Gerhard Häring.
This is part of SF patch #460112.

23 years agoSilence parser generator output.
Guido van Rossum [Tue, 11 Sep 2001 16:43:16 +0000 (16:43 +0000)]
Silence parser generator output.

23 years agoAdded documentation on the getfirst() and getlist() methods of the
Fred Drake [Tue, 11 Sep 2001 16:27:03 +0000 (16:27 +0000)]
Added documentation on the getfirst() and getlist() methods of the
cgi.FieldStorage class.
This closes SF patch #453691.

23 years agoReplace a few places where X->ob_type was compared to &PyXXX_Type with
Guido van Rossum [Tue, 11 Sep 2001 16:13:52 +0000 (16:13 +0000)]
Replace a few places where X->ob_type was compared to &PyXXX_Type with
calls to PyXXX_CheckExact(X).

23 years agoAdd login() method and SMTPAuthenticationError exception. SF patch
Guido van Rossum [Tue, 11 Sep 2001 15:57:46 +0000 (15:57 +0000)]
Add login() method and SMTPAuthenticationError exception.  SF patch
#460112 by Gerhard Haering.

(With slight layout changes to conform to docstrings guidelines and to
prevent a line longer than 78 characters.  Also fixed some docstrings
that Gerhard didn't touch.)

23 years agoTest for new hmac module.
Guido van Rossum [Tue, 11 Sep 2001 15:54:16 +0000 (15:54 +0000)]
Test for new hmac module.

23 years agoHMAC algorithm as described by RFC 2104, by Gerhard Häring (SF patch
Guido van Rossum [Tue, 11 Sep 2001 15:54:00 +0000 (15:54 +0000)]
HMAC algorithm as described by RFC 2104, by Gerhard Häring (SF patch
#460112).

23 years agoAnother contributor.
Guido van Rossum [Tue, 11 Sep 2001 15:52:01 +0000 (15:52 +0000)]
Another contributor.

23 years agoPatch #460554: Properly test for tuples.
Martin v. Löwis [Tue, 11 Sep 2001 15:11:27 +0000 (15:11 +0000)]
Patch #460554: Properly test for tuples.

23 years agoUpdated infomation about libraries for alternate compilers on Windows.
Fred Drake [Tue, 11 Sep 2001 15:10:42 +0000 (15:10 +0000)]
Updated infomation about libraries for alternate compilers on Windows.
This closes SF patch #459441.

23 years agoWhen frameworks are not enabled don't put an empty target in the Makefile.
Jack Jansen [Tue, 11 Sep 2001 14:41:54 +0000 (14:41 +0000)]
When frameworks are not enabled don't put an empty target in the Makefile.
Older make's can apparently choke on this.

23 years agoFix the second reincarnation of SF #456395 -- failure on IRIX. This
Guido van Rossum [Tue, 11 Sep 2001 14:24:35 +0000 (14:24 +0000)]
Fix the second reincarnation of SF #456395 -- failure on IRIX.  This
time use .replace() to change all \r\n into \n, not just the last one.

23 years agoRestore the comparisons that I initially put in the test but that Tim
Guido van Rossum [Tue, 11 Sep 2001 14:02:22 +0000 (14:02 +0000)]
Restore the comparisons that I initially put in the test but that Tim
XXX'ed out.  Turns out that after fixing the constructors, the
comparisons in fact succeed.  E.g. int(hexint(12345)) returns an int
with value 12345.

23 years agoMods by Donovan Preston (with changes by me to make them "go with the flow")
Jack Jansen [Tue, 11 Sep 2001 13:08:10 +0000 (13:08 +0000)]
Mods by Donovan Preston (with changes by me to make them "go with the flow")
that will detect an __main__.py or __rawmain__.py in the application bundle.
This file is then exectued as the main script. We now have applets in
MachO Python!!!

The difference between __main__ and __rawmain__ is that the former gets a
complete simulated argv (so you can drop files on the applet and the script
sees them in sys.argv) while the latter skips the argv simulation and the
<option>key dialog. This keeps the AppleEvent that started the app intact,
as well as the funny "-psn_xxxx" argv[1] argument, so the script can do
with these what it wants.

23 years ago- Removed the . in the extensions.
Jack Jansen [Tue, 11 Sep 2001 13:01:07 +0000 (13:01 +0000)]
- Removed the . in the extensions.
- Allow any file to be dropped on the interpreter (for file args).

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.