]> granicus.if.org Git - python/log
python
23 years agoSkip test_mhlib on Windows -- too many Unix assumptions.
Tim Peters [Thu, 9 Aug 2001 21:34:54 +0000 (21:34 +0000)]
Skip test_mhlib on Windows -- too many Unix assumptions.

23 years agoFix two bugs detected by PyChecker: there's no need for redundant
Guido van Rossum [Thu, 9 Aug 2001 21:22:15 +0000 (21:22 +0000)]
Fix two bugs detected by PyChecker: there's no need for redundant
"import MacOS", and there *is* a need for "import operator".

23 years agoImport UnknownFileError
Andrew M. Kuchling [Thu, 9 Aug 2001 21:02:34 +0000 (21:02 +0000)]
Import UnknownFileError

23 years agoImport the errno module
Andrew M. Kuchling [Thu, 9 Aug 2001 20:59:53 +0000 (20:59 +0000)]
Import the errno module

23 years agoUse correct variable name
Andrew M. Kuchling [Thu, 9 Aug 2001 20:57:46 +0000 (20:57 +0000)]
Use correct variable name

23 years agoAdd resolution of __new__ story sequel.
Guido van Rossum [Thu, 9 Aug 2001 20:25:58 +0000 (20:25 +0000)]
Add resolution of __new__ story sequel.

23 years agoAdded tests for operator.floordiv() and operator.truediv().
Fred Drake [Thu, 9 Aug 2001 20:23:08 +0000 (20:23 +0000)]
Added tests for operator.floordiv() and operator.truediv().

23 years agoAdd wrappers around the rich-comparison operations.
Fred Drake [Thu, 9 Aug 2001 20:14:34 +0000 (20:14 +0000)]
Add wrappers around the rich-comparison operations.
This closes SF patch #428320.

Add wrappers to expose "floor" and "true" division.
This closes SF feature request #449093.

23 years agoRestore the test for 'object' that I removed when object was
Guido van Rossum [Thu, 9 Aug 2001 19:45:21 +0000 (19:45 +0000)]
Restore the test for 'object' that I removed when object was
uninstantiable.  All is well now.

23 years agoSigh. Strengthen the resriction of the previous checkin: tp_new is
Guido van Rossum [Thu, 9 Aug 2001 19:43:37 +0000 (19:43 +0000)]
Sigh.  Strengthen the resriction of the previous checkin: tp_new is
inherited unless *both*: (a) the base type is 'object', and (b) the
subtype is not a "heap" type.

23 years agoThinking back to the 2.22 revision, I didn't like what I did there one
Guido van Rossum [Thu, 9 Aug 2001 19:38:15 +0000 (19:38 +0000)]
Thinking back to the 2.22 revision, I didn't like what I did there one
bit.  For one, this class:

    class C(object):
        def __new__(myclass, ...): ...

would have no way to call the __new__ method of its base class, and
the workaround (to create an intermediate base class whose __new__ you
can call) is ugly.

So, I've come up with a better solution that restores object.__new__,
but still solves the original problem, which is that built-in and
extension types shouldn't inherit object.__new__.  The solution is
simple: only "heap types" inherit tp_new.  Simpler, less code,
perfect!

23 years agoUse type(x).__name__ to get the name of the type instead of parsing
Guido van Rossum [Thu, 9 Aug 2001 18:56:27 +0000 (18:56 +0000)]
Use type(x).__name__ to get the name of the type instead of parsing
repr(type(x)).

23 years agoUnittests for mhlib, by Nick Mathewson.
Guido van Rossum [Thu, 9 Aug 2001 18:18:08 +0000 (18:18 +0000)]
Unittests for mhlib, by Nick Mathewson.

23 years agoApply anonymous SF patch #441229.
Guido van Rossum [Thu, 9 Aug 2001 18:14:59 +0000 (18:14 +0000)]
Apply anonymous SF patch #441229.

  Previously, f.read() and f.readlines() checked for
  errors on their file object and possibly raised an
  IOError, but f.readline() didn't. This patch makes
  f.readline() behave like the others.

Note that I've added a call to clearerr() since the other calls to
ferror() include that too.

I have no way to test this code. :-)

23 years agoSF patch #403640: incomplete proxy handling in URLLIB
Tim Peters [Thu, 9 Aug 2001 18:04:14 +0000 (18:04 +0000)]
SF patch #403640: incomplete proxy handling in URLLIB
Look specific to Windows.  Don't know whether it works.

23 years agoSF Patch #420725 by Walter Doerwald:
Guido van Rossum [Thu, 9 Aug 2001 17:43:35 +0000 (17:43 +0000)]
SF Patch #420725 by Walter Doerwald:

  For local files urllib.py doesn't return the MIME
  headers that the documentation says it does:

  http://www.python.org/doc/current/lib/module-
  urllib.html#l2h-2187 states that "When the method is
  local-file, returned headers will include a Date
  representing the file's last-modified time, a Content-
  Length giving file size, and a Content-Type containing
  a guess at the file's type"

  But in Python 2.1 the only header that gets returned
  is the Content-Type:

  >>> import urllib
  >>> f = urllib.urlopen("gurk.txt")
  >>> f.info().headers
  ['Content-Type: text/plain\n']

23 years agoPatch #403514: precompute _subst_format_str to avoid a call to
Martin v. Löwis [Thu, 9 Aug 2001 16:57:33 +0000 (16:57 +0000)]
Patch #403514: precompute _subst_format_str to avoid a call to
string.join() on each invocation of _bind.

23 years agoAdded Josh Cogliati (turtle.py contributor).
Guido van Rossum [Thu, 9 Aug 2001 16:43:52 +0000 (16:43 +0000)]
Added Josh Cogliati (turtle.py contributor).

23 years agoApplied SF patch #438424 by Josh Cogliati:
Guido van Rossum [Thu, 9 Aug 2001 16:42:07 +0000 (16:42 +0000)]
Applied SF patch #438424 by Josh Cogliati:

Python's logolike module turtle.py did not display
the turtle except when actually drawing lines.
This patch changes the turtle.py module so that
it displays the turtle at all times when tracing is
on. This is similar to the the way that logo works.
When tracing is off the turtle will not be displayed.

23 years agoApply SF patch #424554: check for PYTHONDUMPREFS to be set instead of
Guido van Rossum [Thu, 9 Aug 2001 16:37:16 +0000 (16:37 +0000)]
Apply SF patch #424554: check for PYTHONDUMPREFS to be set instead of
asking to print the references.

23 years agoOne more.
Neil Schemenauer [Thu, 9 Aug 2001 16:04:28 +0000 (16:04 +0000)]
One more.

23 years agoAdd get_objects function. This is a low level function (like
Neil Schemenauer [Thu, 9 Aug 2001 15:58:59 +0000 (15:58 +0000)]
Add get_objects function.  This is a low level function (like
get_referents, and is not yet documented in the library manual).
Suggestions for a better name welcome.

23 years agoAdd get_referents function. Closes SF patch #402925.
Neil Schemenauer [Thu, 9 Aug 2001 15:38:31 +0000 (15:38 +0000)]
Add get_referents function.  Closes SF patch #402925.

23 years agoRegenerate for glibc 2.2.3.
Martin v. Löwis [Thu, 9 Aug 2001 12:48:17 +0000 (12:48 +0000)]
Regenerate for glibc 2.2.3.

23 years agoRegenerate for Solaris 8.
Martin v. Löwis [Thu, 9 Aug 2001 12:33:32 +0000 (12:33 +0000)]
Regenerate for Solaris 8.

23 years agoWhen representing #includes as imports, do from MOD import *.
Martin v. Löwis [Thu, 9 Aug 2001 12:32:10 +0000 (12:32 +0000)]
When representing #includes as imports, do from MOD import *.

23 years agoPatch #437683: Use re instead of regex.
Martin v. Löwis [Thu, 9 Aug 2001 12:24:38 +0000 (12:24 +0000)]
Patch #437683: Use re instead of regex.
If multiple header files are processed simultaneously which include each
other, the corresponding modules mport each other. Specifically, if h2py
is invoked with sys/types.h first, later header files won't contain the
complete contents of TYPES.py.

23 years agoMove IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis [Thu, 9 Aug 2001 11:40:14 +0000 (11:40 +0000)]
Move IPv6 test further down so that usage of -lnsl has been tested.
Recognize Solaris IPv6 by checking /etc/netconfig.

23 years agoPatch #433537: Cache ac_cv_bad_static_forward.
Martin v. Löwis [Thu, 9 Aug 2001 10:29:44 +0000 (10:29 +0000)]
Patch #433537: Cache ac_cv_bad_static_forward.
Also move up AC_AIX and AC_MINIX further up.

23 years agoMichael Hudson correctly pointed out we should cvsignore pyconfig.h, not
Thomas Wouters [Thu, 9 Aug 2001 09:53:00 +0000 (09:53 +0000)]
Michael Hudson correctly pointed out we should cvsignore pyconfig.h, not
config.h (anymore). People will still have to delete config.h from their
source trees manually :)

23 years agoPatch #448474: Add support for tell() and seek() to gzip.GzipFile.
Martin v. Löwis [Thu, 9 Aug 2001 07:21:56 +0000 (07:21 +0000)]
Patch #448474: Add support for tell() and seek() to gzip.GzipFile.

23 years agoIn the acks, CamelCase InstallMaster the same way Wise does it.
Tim Peters [Thu, 9 Aug 2001 05:16:00 +0000 (05:16 +0000)]
In the acks, CamelCase InstallMaster the same way Wise does it.

23 years agoAdd a comma.
Tim Peters [Wed, 8 Aug 2001 22:58:52 +0000 (22:58 +0000)]
Add a comma.

23 years agoMark binary operators as done.
Guido van Rossum [Wed, 8 Aug 2001 22:51:13 +0000 (22:51 +0000)]
Mark binary operators as done.

(This file could stand some reorganization -- it's hard to tell the
open items apart from those that are done or nearly done.)

23 years agoGive some special thanks on the final "Installation Completed!" screen.
Tim Peters [Wed, 8 Aug 2001 22:50:35 +0000 (22:50 +0000)]
Give some special thanks on the final "Installation Completed!" screen.

23 years agoA test suite for binary operators, disguised as a rational number
Guido van Rossum [Wed, 8 Aug 2001 22:27:20 +0000 (22:27 +0000)]
A test suite for binary operators, disguised as a rational number
class.

23 years agoProper support for binary operators, including true division and floor
Guido van Rossum [Wed, 8 Aug 2001 22:26:22 +0000 (22:26 +0000)]
Proper support for binary operators, including true division and floor
division.  The basic binary operators now all correctly call the
__rxxx__ variant when they should.

In type_new(), I now make the new type a new-style number unless it
inherits from an old-style number that has numeric methods.

By way of cosmetics, I've changed the signatures of the SLOT<i> macros
to take actual function names and operator names as strings, rather
than rely on C preprocessor symbol manipulations.  This makes the
calls slightly more verbose, but greatly helps simple searches through
the file: you can now find out where "__radd__" is used or where the
function slot_nb_power() is defined and where it is used.

23 years agoResource files for OSX Python.framework. Incomplete, and they should probably
Jack Jansen [Wed, 8 Aug 2001 22:00:26 +0000 (22:00 +0000)]
Resource files for OSX Python.framework. Incomplete, and they should probably
eventually be generated so version numbers and such are automatically
correct, but they do the job for now.

23 years agoTypo fix (spelling mistake in error message).
Greg Ward [Wed, 8 Aug 2001 20:55:10 +0000 (20:55 +0000)]
Typo fix (spelling mistake in error message).

23 years agoThanks to
Tim Peters [Wed, 8 Aug 2001 20:50:07 +0000 (20:50 +0000)]
Thanks to
    LettError, Erik van Blokland, http://www.letterror.com/
the Python Windows installer finally has an attractive Pythonic bitmap
to delight the senses and dampen the fears of the millions and millions of
eager new Windows users anticipating their first Python programming joy.

Always knew Mac users secretly wanted to switch to Windows <wink>.

23 years agoPatch #422471: Install IDLE Help File
Martin v. Löwis [Wed, 8 Aug 2001 20:26:14 +0000 (20:26 +0000)]
Patch #422471: Install IDLE Help File

23 years agoAdd the new Tools/compiler/README to the WIndows install, as README.txt.
Tim Peters [Wed, 8 Aug 2001 19:32:25 +0000 (19:32 +0000)]
Add the new Tools/compiler/README to the WIndows install, as README.txt.

In the Wise installer's "Advanced Options" dialog, substitute in the
actual name of "the system directory" -- this is clearer, and especially
for people reading this dialog who aren't me <wink>.

23 years agoAdded documentation for PyNumber_*FloorDivide(), PyNumber_*TrueDivide(),
Fred Drake [Wed, 8 Aug 2001 19:14:53 +0000 (19:14 +0000)]
Added documentation for PyNumber_*FloorDivide(), PyNumber_*TrueDivide(),
PyInterpreterState_*Head(), PyInterpreterState_Next(), and
PyThreadState_Next().

Wrapped some long lines, added some others.

23 years agoAdded README to this directory
Andrew M. Kuchling [Wed, 8 Aug 2001 19:10:11 +0000 (19:10 +0000)]
Added README to this directory

23 years agoReference counting information for PyNumber_*FloorDivide() and
Fred Drake [Wed, 8 Aug 2001 18:50:18 +0000 (18:50 +0000)]
Reference counting information for PyNumber_*FloorDivide() and
PyNumber_*TrueDivide().

23 years agoRemove 6-year old hack to worm around a bug in "NextSpec/Sparc 3.3
Tim Peters [Wed, 8 Aug 2001 18:24:45 +0000 (18:24 +0000)]
Remove 6-year old hack to worm around a bug in "NextSpec/Sparc 3.3
pre-release limits.h".

23 years agoAdded note to self about __new__ issue.
Guido van Rossum [Wed, 8 Aug 2001 16:57:43 +0000 (16:57 +0000)]
Added note to self about __new__ issue.

23 years agoPatch #449083: Use builtins to initalize the module.
Martin v. Löwis [Wed, 8 Aug 2001 16:02:01 +0000 (16:02 +0000)]
Patch #449083: Use builtins to initalize the module.

23 years agoRemoved extraneous semicolons that caused a gazzilion "empty declaration" warnings...
Jack Jansen [Wed, 8 Aug 2001 15:29:49 +0000 (15:29 +0000)]
Removed extraneous semicolons that caused a gazzilion "empty declaration" warnings in the MetroWerks compiler.

23 years agoAdapted for pymactoolbox.c and changed externals elsewhere.
Jack Jansen [Wed, 8 Aug 2001 15:29:22 +0000 (15:29 +0000)]
Adapted for pymactoolbox.c and changed externals elsewhere.

23 years agoGot rid of unused includes.
Jack Jansen [Wed, 8 Aug 2001 15:28:03 +0000 (15:28 +0000)]
Got rid of unused includes.

23 years agoVarious fixes to streamline build process on Mac OS X:
Jack Jansen [Wed, 8 Aug 2001 13:56:14 +0000 (13:56 +0000)]
Various fixes to streamline build process on Mac OS X:
- Give a warning if you're on a case-insensitive filesystem and have
  not specified --with-suffix.
- Don't require --with-dyld, it is now default for OSX/Darwin (suggested
  by Martin v. Loewis)
- Don't define _POSIX_THREADS on Darwin, it's done by standard headers already
  (fix by Tony Lownds)
- Don't use the Mac subtree anymore, the routines relevant to OSX/Darwin
  have moved to a new file Python/mactoolboxglue.c.

23 years ago- Don't return mac-style pathnames in unix-Python.
Jack Jansen [Wed, 8 Aug 2001 13:46:49 +0000 (13:46 +0000)]
- Don't return mac-style pathnames in unix-Python.
- Fixed up a lot more prototypes (gcc also wants them on static routines)
- Fixed various other gcc warnings.

23 years agoRemoved special rule for Mac/Python/macglue.o, it is not needed anymore.
Jack Jansen [Wed, 8 Aug 2001 13:18:36 +0000 (13:18 +0000)]
Removed special rule for Mac/Python/macglue.o, it is not needed anymore.

23 years agoSplit macglue.c into two: a new mactoolboxglue.c (in ./Python)
Jack Jansen [Wed, 8 Aug 2001 13:17:31 +0000 (13:17 +0000)]
Split macglue.c into two: a new mactoolboxglue.c (in ./Python)
with functionality needed for both unix-Python and MacPython and a
new smaller ./Mac/Python/macglue.c which contains MacPython stuff only.

pymactoolbox.h has moved to ./Include from ./Mac/Include and now also
contains the relevant stuff from macglue.h.

The net effect of this is that the ./Mac subdirectory is not needed
anymore for building the unix-Python core on MacOSX (it is needed
for building the extension modules).

23 years agoPut conditional S_IFMT definition into pyport.h.
Martin v. Löwis [Wed, 8 Aug 2001 12:54:28 +0000 (12:54 +0000)]
Put conditional S_IFMT definition into pyport.h.

23 years agoRemove redundant check for 'getaddrinfo' (it's already checked the block
Thomas Wouters [Wed, 8 Aug 2001 10:39:03 +0000 (10:39 +0000)]
Remove redundant check for 'getaddrinfo' (it's already checked the block
before.)

23 years agoPut conditional S_ISDIR definition(s) into pyport.h.
Martin v. Löwis [Wed, 8 Aug 2001 10:28:06 +0000 (10:28 +0000)]
Put conditional S_ISDIR definition(s) into pyport.h.

23 years agoMerged in bugfix from PyUnit CVS for problem reported by Gary Todd.
Steve Purcell [Wed, 8 Aug 2001 07:57:26 +0000 (07:57 +0000)]
Merged in bugfix from PyUnit CVS for problem reported by Gary Todd.
If 'unittest.py' was run from the command line with the name of a test
case class as a parameter, it failed with an ugly error. (Which was a
shame, because the documentation says you can do that.)

The problem was the old 'is the class X that you imported from me the same
as my class X?' gotcha.

23 years agoRegenerated token.py to account for new DOUBLESLASH and DOUBLESLASHEQUAL.
Tim Peters [Wed, 8 Aug 2001 06:35:56 +0000 (06:35 +0000)]
Regenerated token.py to account for new DOUBLESLASH and DOUBLESLASHEQUAL.

23 years agoRepair the Windows build (S_ISDIR() macro doesn't exist).
Tim Peters [Wed, 8 Aug 2001 06:24:48 +0000 (06:24 +0000)]
Repair the Windows build (S_ISDIR() macro doesn't exist).
Somebody else should feel free to repair this a different way; see Python-
Dev for discussion.

23 years agoAdd option to push the development docs to SF without announcing, for
Fred Drake [Wed, 8 Aug 2001 05:41:01 +0000 (05:41 +0000)]
Add option to push the development docs to SF without announcing, for
when the changes are just too small.

23 years agoMore names....
Fred Drake [Wed, 8 Aug 2001 05:39:52 +0000 (05:39 +0000)]
More names....

23 years agoClean up some of the markup here -- be more consistent in the use of
Fred Drake [Wed, 8 Aug 2001 05:39:29 +0000 (05:39 +0000)]
Clean up some of the markup here -- be more consistent in the use of
semantic labels instead of presentational markup.

23 years ago"Thin" version of floor division docs: add // to the list of operators
Fred Drake [Wed, 8 Aug 2001 05:37:21 +0000 (05:37 +0000)]
"Thin" version of floor division docs:  add // to the list of operators
and //= to the list of other delimiter tokens.

I'll work on it again when it's not so late...

23 years agoPatch #448227: Raise an exception when a directory is passed to execfile.
Martin v. Löwis [Wed, 8 Aug 2001 05:30:36 +0000 (05:30 +0000)]
Patch #448227: Raise an exception when a directory is passed to execfile.

23 years agoAdd new tokens // and //=, in support of PEP 238.
Guido van Rossum [Wed, 8 Aug 2001 05:04:07 +0000 (05:04 +0000)]
Add new tokens // and //=, in support of PEP 238.

23 years agoImplement PEP 238 in its (almost) full glory.
Guido van Rossum [Wed, 8 Aug 2001 05:00:18 +0000 (05:00 +0000)]
Implement PEP 238 in its (almost) full glory.

This introduces:

- A new operator // that means floor division (the kind of division
  where 1/2 is 0).

- The "future division" statement ("from __future__ import division)
  which changes the meaning of the / operator to implement "true
  division" (where 1/2 is 0.5).

- New overloadable operators __truediv__ and __floordiv__.

- New slots in the PyNumberMethods struct for true and floor division,
  new abstract APIs for them, new opcodes, and so on.

I emphasize that without the future division statement, the semantics
of / will remain unchanged until Python 3.0.

Not yet implemented are warnings (default off) when / is used with int
or long arguments.

This has been on display since 7/31 as SF patch #443474.

Flames to /dev/null.

23 years agobeginning of work on the conf. handling smarts
Steven M. Gava [Wed, 8 Aug 2001 01:30:38 +0000 (01:30 +0000)]
beginning of work on the conf. handling smarts

23 years agoCommented out most of the MacPython modules. There is a discussion on the
Jack Jansen [Wed, 8 Aug 2001 00:36:53 +0000 (00:36 +0000)]
Commented out most of the MacPython modules. There is a discussion on the
pythonmac-sig about turning this all into a package, so in the mean time
there is no reason to scribble all over people's disks. Interested parties
can uncomment them.

23 years agoPart of SF patch [#431848] mathmodule.c: doc strings & conversion, from
Tim Peters [Tue, 7 Aug 2001 22:10:00 +0000 (22:10 +0000)]
Part of SF patch [#431848] mathmodule.c: doc strings & conversion, from
Peter Schneider-Kamp.
Clarified some docstrings in the spirit of the patch; left out the
degrees() and radians() functions (see the patch comments on SF).

23 years agoFix SF bug [ #447370 ] typo in urllib2.py
Jeremy Hylton [Tue, 7 Aug 2001 21:12:25 +0000 (21:12 +0000)]
Fix SF bug [ #447370 ] typo in urllib2.py

Also fix another bug caught by pychecker-- HTTPError() raised when
redirect limit exceed did not pass an fp object.  Had to change method
to keep fp object around until it's certain that the error won't be
raised.

Remove useless line in do_proxy().

23 years agoApply two small changes to the Windows code, according to SF bug
Guido van Rossum [Tue, 7 Aug 2001 19:55:10 +0000 (19:55 +0000)]
Apply two small changes to the Windows code, according to SF bug
#427345.  These are supposed to support binary data and avoid
buffering problems on Windows.

23 years agoRemove make_re() function; this is no longer needed since _sre and pcre
Fred Drake [Tue, 7 Aug 2001 19:49:15 +0000 (19:49 +0000)]
Remove make_re() function; this is no longer needed since _sre and pcre
are now allowed by ok_builtin_modules.  This effectively backs out
revision 1.26.

This closes SF bug #448546.

23 years agoAdd a test that xml.sax.saxutils.XMLGenerator does the right thing
Fred Drake [Tue, 7 Aug 2001 19:17:06 +0000 (19:17 +0000)]
Add a test that xml.sax.saxutils.XMLGenerator does the right thing
when quoting attribute values that contain single & double quotes.

This provides the rest of the regression test for SF bug #440351.

23 years agoMake sure XMLGenerator uses quoteattr() instead of escape() to quote
Fred Drake [Tue, 7 Aug 2001 19:14:46 +0000 (19:14 +0000)]
Make sure XMLGenerator uses quoteattr() instead of escape() to quote
attribute values.  Just using escape() can (and always has) led to broken
XML being generated.  This makes sure it always produces the right thing.

This actually closes SF bug #440351.

23 years agoFix the test so it uses IterableUserDict for the "for x in dict" test.
Guido van Rossum [Tue, 7 Aug 2001 17:50:06 +0000 (17:50 +0000)]
Fix the test so it uses IterableUserDict for the "for x in dict" test.

23 years agoRemove the __iter__ method from the UserDict class -- it can silently
Guido van Rossum [Tue, 7 Aug 2001 17:40:42 +0000 (17:40 +0000)]
Remove the __iter__ method from the UserDict class -- it can silently
break old code (in extreme cases).  See SF bug #448153.

Add a new subclass IterableUserDict that has the __iter__ method.

Note that for new projects, unless backwards compatibility with
pre-2.2 Python is required, subclassing 'dictionary' is recommended;
UserDict might become deprecated.

23 years ago- Rename PyType_InitDict() to PyType_Ready().
Guido van Rossum [Tue, 7 Aug 2001 17:24:28 +0000 (17:24 +0000)]
- Rename PyType_InitDict() to PyType_Ready().

- Add an explicit call to PyType_Ready(&PyList_Type) to pythonrun.c
  (just for the heck of it, really -- we should either explicitly
  ready all types, or none).

23 years agoAdd the NannyNag exception class and the process_tokens() function to
Guido van Rossum [Tue, 7 Aug 2001 17:19:25 +0000 (17:19 +0000)]
Add the NannyNag exception class and the process_tokens() function to
__all__, to indicate these are implied as part of the public API.

IDLE's "Check Module" command uses this, and it broke once already
because the reset_globals() and tokeneater() functions were deleted
when Neil converted this to using the generator API of tokenizer.
(See SF bug #448835.)

23 years agoFix for SF bug #448835.
Guido van Rossum [Tue, 7 Aug 2001 17:15:36 +0000 (17:15 +0000)]
Fix for SF bug #448835.

Fix this to work with the new (still undocumented) tabnanny API.

I'm afraid Stephen will have to add this fix to the IDLE fork code
base as well.

23 years agoRemove the test for the 'object' type -- it can no longer be
Guido van Rossum [Tue, 7 Aug 2001 16:53:42 +0000 (16:53 +0000)]
Remove the test for the 'object' type -- it can no longer be
instantiated.  (Its use as a base class is adequately tested by other
tests.)

23 years agoCosmetics:
Guido van Rossum [Tue, 7 Aug 2001 16:40:56 +0000 (16:40 +0000)]
Cosmetics:

- Add comment blocks explaining add_operators() and override_slots().
  (This file could use some more explaining, but this is all I had
  breath for today. :)

- Renamed the argument 'base' of add_wrappers() to 'wraps' because
  it's not a base class (which is what the 'base' identifier is used
  for elsewhere).

Small nits:

- Fix add_tp_new_wrapper() to avoid overwriting an existing __new__
  descriptor in tp_defined.

- In add_operators(), check the return value of add_tp_new_wrapper().

Functional change:

- Remove the tp_new functionality from PyBaseObject_Type; this means
  you can no longer instantiate the 'object' type.  It's only useful
  as a base class.

- To make up for the above loss, add tp_new to dynamic types.  This
  has to be done in a hackish way (after override_slots() has been
  called, with an explicit call to add_tp_new_wrapper() at the very
  end) because otherwise I ran into recursive calls of slot_tp_new().
  Sigh.

23 years agosilence warnings about import *
Jeremy Hylton [Tue, 7 Aug 2001 16:38:19 +0000 (16:38 +0000)]
silence warnings about import *

23 years agoBrought up-to-date.
Jack Jansen [Tue, 7 Aug 2001 15:34:47 +0000 (15:34 +0000)]
Brought up-to-date.

23 years agoGot rid of (hopefully) the last 68k-mac related ifdefs.
Jack Jansen [Tue, 7 Aug 2001 15:32:37 +0000 (15:32 +0000)]
Got rid of (hopefully) the last 68k-mac related ifdefs.

23 years agoGot rid of 68k-Mac and other outdated ifdefs.
Jack Jansen [Tue, 7 Aug 2001 15:30:23 +0000 (15:30 +0000)]
Got rid of 68k-Mac and other outdated ifdefs.

23 years agoGot rid of mactcp cruft, added Mlte and CF modules.
Jack Jansen [Tue, 7 Aug 2001 15:29:17 +0000 (15:29 +0000)]
Got rid of mactcp cruft, added Mlte and CF modules.

23 years agoRemoved unused variable.
Jack Jansen [Tue, 7 Aug 2001 15:28:52 +0000 (15:28 +0000)]
Removed unused variable.

23 years agoYet another project.
Jack Jansen [Tue, 7 Aug 2001 15:26:26 +0000 (15:26 +0000)]
Yet another project.

23 years agoGot rid of (hopefully) the last 68k Mac-related ifdefs and various other cruft.
Jack Jansen [Tue, 7 Aug 2001 15:14:53 +0000 (15:14 +0000)]
Got rid of (hopefully) the last 68k Mac-related ifdefs and various other cruft.

23 years agoRemoved outdated stuff.
Jack Jansen [Tue, 7 Aug 2001 15:12:04 +0000 (15:12 +0000)]
Removed outdated stuff.

23 years agoDocument two new items
Andrew M. Kuchling [Tue, 7 Aug 2001 14:28:58 +0000 (14:28 +0000)]
Document two new items
Correct error noticed by Keith Briggs
Re-indent a paragraph

23 years agoProject files for the new plugin modules, plus a few that hadn't been added yet but...
Jack Jansen [Tue, 7 Aug 2001 14:21:56 +0000 (14:21 +0000)]
Project files for the new plugin modules, plus a few that hadn't been added yet but should have been.

23 years agoBit another bullet: all toolbox modules are now in dynamically loaded modules. Everyt...
Jack Jansen [Tue, 7 Aug 2001 13:53:25 +0000 (13:53 +0000)]
Bit another bullet: all toolbox modules are now in dynamically loaded modules. Everything still seems to work, but the ConfigurePythonXXX on initial install may still need work.

23 years agoBit the bullet and enabled garbage collection (finally).
Jack Jansen [Tue, 7 Aug 2001 12:33:32 +0000 (12:33 +0000)]
Bit the bullet and enabled garbage collection (finally).
Also updated pyconfig.h to the current state of pyconfig.h.in.

23 years agomore fleshing out, this time primarily the 'general' page
Steven M. Gava [Tue, 7 Aug 2001 03:28:25 +0000 (03:28 +0000)]
more fleshing out, this time primarily the 'general' page

23 years agoAnother bug fix for recent import * warning (caught by Thomas Wouters)
Jeremy Hylton [Mon, 6 Aug 2001 20:34:25 +0000 (20:34 +0000)]
Another bug fix for recent import * warning (caught by Thomas Wouters)

Only return if symtable_warn() returns -1, indicating that the warning
was turned into an error.

23 years ago+ Turn off patch creation (this isn't a patch release! got turned on by
Tim Peters [Mon, 6 Aug 2001 20:01:19 +0000 (20:01 +0000)]
+ Turn off patch creation (this isn't a patch release!  got turned on by
  mistake).
+ Arrange for Win2K Add/Remove to show a Python icon.

I think this "does it" -- a full install/uninstall can now be done on a
Win2K box from an ordinary (not Admin, not Power User) user acct, incl.
file extension registration, Start Menu entries, and full Add/Remove.

23 years agoFix error message for import * in function/class scope
Jeremy Hylton [Mon, 6 Aug 2001 19:55:17 +0000 (19:55 +0000)]
Fix error message for import * in function/class scope