]> granicus.if.org Git - python/log
python
22 years agoUse new file dialogs in GetArgv()
Jack Jansen [Tue, 21 Jan 2003 13:56:34 +0000 (13:56 +0000)]
Use new file dialogs in GetArgv()

22 years agoCompile site-packages with -t, not -tt.
Jack Jansen [Tue, 21 Jan 2003 13:50:34 +0000 (13:50 +0000)]
Compile site-packages with -t, not -tt.

22 years agoConditionalize features not found in PyXML 1.95.2.
Martin v. Löwis [Tue, 21 Jan 2003 11:09:21 +0000 (11:09 +0000)]
Conditionalize features not found in PyXML 1.95.2.

22 years agoMerge with PyXML 1.71:
Martin v. Löwis [Tue, 21 Jan 2003 10:58:18 +0000 (10:58 +0000)]
Merge with PyXML 1.71:
60: Added support for the SkippedEntityHandler, new in Expat 1.95.4.
61: Added support for namespace prefixes, which can be enabled by setting the
    "namespace_prefixes" attribute on the parser object.
65: Disable profiling changes for Python 2.0 and 2.1.
66: Update pyexpat to export the Expat 1.95.5 XML_GetFeatureList()
    information, and tighten up a type declaration now that Expat is using
    an incomplete type rather than a void * for the XML_Parser type.
67: Clarified a comment.
    Added support for XML_UseForeignDTD(), new in Expat 1.95.5.
68: Refactor to avoid partial duplication of the code to construct an
    ExpatError instance, and actually conform to the API for the exception
    instance as well.
69: Remove some spurious trailing whitespace.
    Add a special external-entity-ref handler that gets installed once a
    handler has raised a Python exception; this can cancel actual parsing
    earlier if there's an external entity reference in the input data
    after the the Python excpetion has been raised.
70: Untabify APPEND.
71: Backport PyMODINIT_FUNC for 2.2 and earlier.

22 years agoDon't use Posix semaphores on Solaris 8. Fixes #662787.
Martin v. Löwis [Tue, 21 Jan 2003 10:14:41 +0000 (10:14 +0000)]
Don't use Posix semaphores on Solaris 8. Fixes #662787.

22 years ago1. Restore the rest of Python IDLE setup.py Rev 1.4 (Python SF 634078)
Kurt B. Kaiser [Tue, 21 Jan 2003 04:42:50 +0000 (04:42 +0000)]
1. Restore the rest of Python IDLE setup.py Rev 1.4 (Python SF 634078)
   (Loewis) which uses 'SRCDIR' (if available) in package dir path.
2. Merge Python IDLE setup.py Rev 1.5 (Loewis) to allow installation
   from the build directory. IDLEfork SF Patch 668998 (Loewis)

22 years agoflesh out open() docstring
Skip Montanaro [Tue, 21 Jan 2003 01:53:09 +0000 (01:53 +0000)]
flesh out open() docstring

22 years agomore tweaks
Skip Montanaro [Tue, 21 Jan 2003 01:52:39 +0000 (01:52 +0000)]
more tweaks

22 years ago* document open() function
Skip Montanaro [Tue, 21 Jan 2003 01:38:47 +0000 (01:38 +0000)]
* document open() function
* promote the example and the documented restrictions to \subsection status
* document the flag parameter of the DbfilenameShelf class

22 years agoNew rule for tzinfo subclasses handling both standard and daylight time:
Tim Peters [Mon, 20 Jan 2003 22:54:38 +0000 (22:54 +0000)]
New rule for tzinfo subclasses handling both standard and daylight time:
When daylight time ends, an hour repeats on the local clock (for example,
in US Eastern, the clock jumps from 1:59 back to 1:00 again).  Times in
the repeated hour are ambiguous.  A tzinfo subclass that wants to play
with astimezone() needs to treat times in the repeated hour as being
standard time.  astimezone() previously required that such times be
treated as daylight time.  There seems no killer argument either way,
but Guido wants the standard-time version, and it does seem easier the
new way to code both American (local-time based) and European (UTC-based)
switch rules, and the astimezone() implementation is simpler.

22 years agoRecursive compare machinery: The code that intended to exempt tuples
Tim Peters [Mon, 20 Jan 2003 16:54:59 +0000 (16:54 +0000)]
Recursive compare machinery:  The code that intended to exempt tuples
was broken because new-in-2.3 code added a tp_as_mapping slot to tuples.
Repaired that.

Added basic docs to check_recursion().

The code that intended to exempt tuples and strings was also broken here,
and in 2.2:  these should use PyXYZ_CheckExact(), not PyXYZ_Check() -- we
can't know whether subclass instances are immutable.  This part (and this
part alone) is a bugfix candidate.

22 years agoOn MacOSX, added -prebind option to link phase for executable (and
Jack Jansen [Mon, 20 Jan 2003 10:47:48 +0000 (10:47 +0000)]
On MacOSX, added -prebind option to link phase for executable (and
framework, if applicable). This speeds up startup time by up to 50%.

22 years agoFix bug #670845: cut & clear in the output window now work, in that
Just van Rossum [Mon, 20 Jan 2003 09:02:23 +0000 (09:02 +0000)]
Fix bug #670845: cut & clear in the output window now work, in that
  - clear clears the entire buffer
  - cut doesn't cut, but copies.

22 years ago...and the old pyclbr.py faked Function instances with Class instances
Kurt B. Kaiser [Mon, 20 Jan 2003 04:49:37 +0000 (04:49 +0000)]
...and the old pyclbr.py faked Function instances with Class instances
which had empty method and super attributes.  ClassBrowser.IsExpandable()
could not handle the missing attributes.  SF Bug 667787.

22 years agoAdd comments and remove duplicate tests.
Walter Dörwald [Mon, 20 Jan 2003 02:34:07 +0000 (02:34 +0000)]
Add comments and remove duplicate tests.

22 years agoInstall email/test, email/test/data and bsddb/test subdirectories.
Barry Warsaw [Mon, 20 Jan 2003 01:13:21 +0000 (01:13 +0000)]
Install email/test, email/test/data and bsddb/test subdirectories.

22 years agoPort test_userdict.py to PyUnit. From SF patch #662807,
Walter Dörwald [Sun, 19 Jan 2003 23:26:59 +0000 (23:26 +0000)]
Port test_userdict.py to PyUnit. From SF patch #662807,
with additional tests for setdefault(), pop() and popitem().

22 years agoAdded a convenience routine pathname() which accepts either a string, unicode,
Jack Jansen [Sun, 19 Jan 2003 22:59:52 +0000 (22:59 +0000)]
Added a convenience routine pathname() which accepts either a string, unicode,
FSSpec or FSRef object and returns an 8-bit pathname (utf8 encoded).

22 years agoSigh, due to sloppiness on my part bgen has become pretty mixed up wrt. tabs
Jack Jansen [Sun, 19 Jan 2003 21:53:57 +0000 (21:53 +0000)]
Sigh, due to sloppiness on my part bgen has become pretty mixed up wrt. tabs
and spaces. Detabbed the lot.

22 years agoPort test_unicode.py to PyUnit and add tests for error
Walter Dörwald [Sun, 19 Jan 2003 16:59:20 +0000 (16:59 +0000)]
Port test_unicode.py to PyUnit and add tests for error
cases and a few methods. This increases code coverage
in Objects/unicodeobject.c from 81% to 85%.
(From SF patch #662807)

22 years agoCombine test_b1.py and test_b2.py into test_builtin.py,
Walter Dörwald [Sun, 19 Jan 2003 16:23:59 +0000 (16:23 +0000)]
Combine test_b1.py and test_b2.py into test_builtin.py,
port the tests to PyUnit and add many tests for error
cases. This increases code coverage in Python/bltinmodule.c
from 75% to 92%. (From SF patch #662807, with
assert_(not fcmp(x, y)) replaced with assertAlmostEqual(x, y)
where possible)

22 years agoSF # 669553, fix memory (ref) leaks
Neal Norwitz [Sun, 19 Jan 2003 15:40:09 +0000 (15:40 +0000)]
SF # 669553, fix memory (ref) leaks

Will backport.

22 years agoFix typo
Raymond Hettinger [Sun, 19 Jan 2003 14:57:12 +0000 (14:57 +0000)]
Fix typo

22 years agoSF patch #634557: inspect.BlockFinder didn't do a good enough job finding
Raymond Hettinger [Sun, 19 Jan 2003 13:21:20 +0000 (13:21 +0000)]
SF patch #634557: inspect.BlockFinder didn't do a good enough job finding
the end of code blocks.

Patch contributed by Patrick O'Brien.

22 years agoSF patch #634866: Alex Martelli's corrections to the ref manual.
Raymond Hettinger [Sun, 19 Jan 2003 13:08:18 +0000 (13:08 +0000)]
SF patch #634866:  Alex Martelli's corrections to the ref manual.

Backport candidate.  All but one or two of these changes
are applicable to 2.2.2.

22 years agoSF patch #670367: Micro-optimizations for ceval.c
Raymond Hettinger [Sun, 19 Jan 2003 05:08:13 +0000 (05:08 +0000)]
SF patch #670367: Micro-optimizations for ceval.c

Make the code slightly shorter, faster, and easier to
read.

* Eliminate unused DUP_TOPX code for x==1.
compile.c always generates DUP_TOP instead.

* Since only two cases remain for DUP_TOPX, replace
the switch-case with if-elseif.

* The in-lined integer compare does a CheckExact on
both arguments. Since the second is a little more
likely to fail, test it first.

* The switch-case for IS/IS_NOT and IN/NOT_IN can
separate the regular and inverted cases with no
additional work. For all four paths, saves a test and
jump.

22 years agoWindows flavor of floatsleep(): folded long lines, introduced a temp
Tim Peters [Sun, 19 Jan 2003 04:54:58 +0000 (04:54 +0000)]
Windows flavor of floatsleep():  folded long lines, introduced a temp
var for clarity.

22 years agoSF patch 670194: Performance enhancement for _strptime.py.
Tim Peters [Sun, 19 Jan 2003 04:40:44 +0000 (04:40 +0000)]
SF patch 670194: Performance enhancement for _strptime.py.
From Brett Cannon.  Mostly speedups via caching format string ->
compiled regexp.

22 years agoSF bug #668906: class browser raises AttributeError
Raymond Hettinger [Sun, 19 Jan 2003 02:37:41 +0000 (02:37 +0000)]
SF bug #668906: class browser raises AttributeError

The Py2.3 updates to the pyclbr module return both Class and Function
objects.  The IDLE ClassBrowser module only knew about Class and could
not handle objects which did not define "super".

Fixed by adding a guard.

22 years agoSF bug #670229: doc improvement for cStringIO.h
Raymond Hettinger [Sun, 19 Jan 2003 00:45:01 +0000 (00:45 +0000)]
SF bug #670229: doc improvement for cStringIO.h

Gernot Hillier added more detail to the internal API documentation.

22 years agoSF patch #670423: Add missing identity tests to operator.c
Raymond Hettinger [Sat, 18 Jan 2003 23:22:20 +0000 (23:22 +0000)]
SF patch #670423: Add missing identity tests to operator.c

22 years agoSF bug #668906: class browser raises AttributeError
Raymond Hettinger [Sat, 18 Jan 2003 22:53:36 +0000 (22:53 +0000)]
SF bug #668906: class browser raises AttributeError

The Py2.3 updates to the pyclbr module return both Class and Function
objects.  The IDLE ClassBrowser module only knew about Class and could
not handle objects which did not define "super".

Fixed by adding a guard.

22 years agoSF patch 670012: Compatibility changes for _strptime.py.
Tim Peters [Sat, 18 Jan 2003 03:53:49 +0000 (03:53 +0000)]
SF patch 670012:  Compatibility changes for _strptime.py.
Patch from Brett Cannon:

    First, the 'y' directive now handles [00, 68] as a suffix for the
    21st century while [69, 99] is treated as the suffix for the 20th
    century (this is for Open Group compatibility).

    strptime now returns default values that make it a valid date ...

    the ability to pass in a regex object to use instead of a format
    string (and the inverse ability to have strptime return a regex object)
    has been removed. This is in preparation for a future patch that will
    add some caching internally to get a speed boost.

22 years agoFixed the first two bugs in the new file dialogs (found by Just):
Jack Jansen [Fri, 17 Jan 2003 23:13:03 +0000 (23:13 +0000)]
Fixed the first two bugs in the new file dialogs (found by Just):
- AskFileForSave didn't work for string return values
- filterProc didn't work.

22 years agoIt turns out that some calls return AEDesc records that are "borrowed",
Jack Jansen [Fri, 17 Jan 2003 23:11:17 +0000 (23:11 +0000)]
It turns out that some calls return AEDesc records that are "borrowed",
the AEDesc data shouldn't be disposed when the Python object is.

Added a C call AEDesc_NewBorrowed() to create these objects and a Python
method old=AEDesc.AutoDispose(onoff) to change auto-dispose state.

22 years agoVarious markup changes.
Fred Drake [Fri, 17 Jan 2003 22:50:10 +0000 (22:50 +0000)]
Various markup changes.

22 years agoFix a couple of markup errors.
Fred Drake [Fri, 17 Jan 2003 22:47:33 +0000 (22:47 +0000)]
Fix a couple of markup errors.

22 years agoCVS patch 669645: wininst.exe missing in Windows installer.
Tim Peters [Fri, 17 Jan 2003 21:50:32 +0000 (21:50 +0000)]
CVS patch 669645:  wininst.exe missing in Windows installer.
Not anymore it ain't.

22 years agoClean up some files that LaTeX2HTML drops in the HTML output directory
Fred Drake [Fri, 17 Jan 2003 21:25:04 +0000 (21:25 +0000)]
Clean up some files that LaTeX2HTML drops in the HTML output directory
sometimes.

22 years agoWhen time.localtime() is passed a tick count the platform C localtime()
Tim Peters [Fri, 17 Jan 2003 20:08:54 +0000 (20:08 +0000)]
When time.localtime() is passed a tick count the platform C localtime()
function can't handle, don't raise IOError -- that doesn't make sense.
Raise ValueError instead.

Bugfix candidate.

22 years agomake sure src exists before creating a symlink
Just van Rossum [Fri, 17 Jan 2003 20:02:06 +0000 (20:02 +0000)]
make sure src exists before creating a symlink

22 years ago* Migrate sample distribution test from random.py to test_random.py.
Raymond Hettinger [Fri, 17 Jan 2003 17:23:23 +0000 (17:23 +0000)]
* Migrate sample distribution test from random.py to test_random.py.
* Use Sets module to more clearly articulate a couple of tests.

22 years agoCorrect typos in example code.
Raymond Hettinger [Fri, 17 Jan 2003 16:20:23 +0000 (16:20 +0000)]
Correct typos in example code.

22 years agoFor reasons unknown previewProc and filterProc were disabled. Enabled them.
Jack Jansen [Fri, 17 Jan 2003 16:14:31 +0000 (16:14 +0000)]
For reasons unknown previewProc and filterProc were disabled. Enabled them.

22 years agoAdded methods AskFileForOpen(), AskFileForSave() and AskFolder(). These
Jack Jansen [Fri, 17 Jan 2003 16:04:39 +0000 (16:04 +0000)]
Added methods AskFileForOpen(), AskFileForSave() and AskFolder(). These
are going to replace StandardGetFile() and friends. Main differences are
that these allow you to ask for specific datatypes to be returned (FSSpec,
FSRef, string, unicode or subtypes thereof) and that they provide access
to underlying features of Navigation Services through keyword arguments.

22 years agobugfix: do not double-close DB cursor during deallocation when the
Gregory P. Smith [Fri, 17 Jan 2003 08:42:50 +0000 (08:42 +0000)]
bugfix: do not double-close DB cursor during deallocation when the
        underlying DB has already been closed (and thus all of its cursors).
        This fixes a potential segfault.
        SF pybsddb bug id 667343
bugfix: close the DB object when raising an exception due to an error
        during DB.open.  This prevents an exception when closing the
        environment about not all databases being closed.
        SF pybsddb bug id 667340

22 years agobugfix: allow the module to work with python compiled without thread support.
Gregory P. Smith [Fri, 17 Jan 2003 07:56:16 +0000 (07:56 +0000)]
bugfix: allow the module to work with python compiled without thread support.
closes sourceforge pybsddb bug id 669533.

22 years agobugfix: disallow use of DB_TXN after commit() or abort(), prevents a
Gregory P. Smith [Fri, 17 Jan 2003 07:52:59 +0000 (07:52 +0000)]
bugfix: disallow use of DB_TXN after commit() or abort(), prevents a
        coredump or segmentation violation.

Sourceforge patch ID 664896:
http://sourceforge.net/tracker/index.php?func=detail&aid=664896&group_id=13900&atid=313900

The bug was reported on the pybsddb-users mailing list.

22 years agoPatch 611069 (Christos Georgiou) IDLE TODO:left/right when selected text
Kurt B. Kaiser [Fri, 17 Jan 2003 04:04:06 +0000 (04:04 +0000)]
Patch 611069 (Christos Georgiou) IDLE TODO:left/right when selected text
M EditorWindow.py
M NEWS.txt
M TODO.txt

22 years agoSF Bug 667812: Some Linux distros have Alt and Meta reversed.
Kurt B. Kaiser [Thu, 16 Jan 2003 21:40:21 +0000 (21:40 +0000)]
SF Bug 667812: Some Linux distros have Alt and Meta reversed.

22 years agoA. Lloyd Flanagan pointed out a spelling error on c.l.py.
Michael W. Hudson [Thu, 16 Jan 2003 15:39:07 +0000 (15:39 +0000)]
A. Lloyd Flanagan pointed out a spelling error on c.l.py.

22 years agoLet test_random cover the endpoints.
Raymond Hettinger [Thu, 16 Jan 2003 14:00:15 +0000 (14:00 +0000)]
Let test_random cover the endpoints.
Strengthen slicing tests.
Improved variable names.

22 years agoTest optional slice arguments.
Raymond Hettinger [Thu, 16 Jan 2003 13:02:25 +0000 (13:02 +0000)]
Test optional slice arguments.
Add backwards compatibility test.

22 years agoAdded doctest for examples in the library reference.
Raymond Hettinger [Thu, 16 Jan 2003 12:31:36 +0000 (12:31 +0000)]
Added doctest for examples in the library reference.
Added random test from bisect to augment the finite precomputed checks.

22 years agoConvert to unittest format so that more tests can be added cleanly.
Raymond Hettinger [Thu, 16 Jan 2003 12:02:35 +0000 (12:02 +0000)]
Convert to unittest format so that more tests can be added cleanly.

22 years agoPatch #662454: import a.b as c is ok, fixes #660811.
Martin v. Löwis [Thu, 16 Jan 2003 11:30:08 +0000 (11:30 +0000)]
Patch #662454: import a.b as c is ok, fixes #660811.

22 years agoProperly find and install icons even if calling setup.py from the build dir.
Martin v. Löwis [Thu, 16 Jan 2003 11:03:33 +0000 (11:03 +0000)]
Properly find and install icons even if calling setup.py from the build dir.

22 years agoCatch IOErrors.
Martin v. Löwis [Thu, 16 Jan 2003 11:02:43 +0000 (11:02 +0000)]
Catch IOErrors.

22 years agoSupport copying booleans. Fixes #668925.
Martin v. Löwis [Thu, 16 Jan 2003 10:40:00 +0000 (10:40 +0000)]
Support copying booleans. Fixes #668925.

22 years agoThis test previously failed when run from the 'test' directory. In that
Mark Hammond [Thu, 16 Jan 2003 04:56:52 +0000 (04:56 +0000)]
This test previously failed when run from the 'test' directory.  In that
case, the test module created is actually a sub-package of 'test', thus
the module is named 'test.areallylongpackage...' - this caused failure.

Replace the hard-coded module names with __name__ attributes, which
correctly reflects any hierarchy.

22 years agoOn Mac OS X calling setlocale will raise locale.Error. This isn't fatal,
Jack Jansen [Wed, 15 Jan 2003 23:43:02 +0000 (23:43 +0000)]
On Mac OS X calling setlocale will raise locale.Error. This isn't fatal,
so just continue testing. Fixes #668787.

22 years agoCorrect docstring for SetValueEx()
Mark Hammond [Wed, 15 Jan 2003 23:38:15 +0000 (23:38 +0000)]
Correct docstring for SetValueEx()

22 years agoChecking in Brett Cannon's patch #662053, which fixes bug #661354.
Jack Jansen [Wed, 15 Jan 2003 22:59:39 +0000 (22:59 +0000)]
Checking in Brett Cannon's patch #662053, which fixes bug #661354.
_strptime can now handle getting two empty strings as the timezone information.

22 years agoAdded ismount().
Jack Jansen [Wed, 15 Jan 2003 22:45:48 +0000 (22:45 +0000)]
Added ismount().

Fixes #661762, bugfix candidate.

22 years agoImplemented FSCatalogInfo structure support, and used this to implement
Jack Jansen [Wed, 15 Jan 2003 22:36:16 +0000 (22:36 +0000)]
Implemented FSCatalogInfo structure support, and used this to implement
FSSpec.SetDates() and GetDates(). Closes #662836.

22 years agoreference the os module and the lock flags in the os.open() function.
Skip Montanaro [Wed, 15 Jan 2003 21:08:19 +0000 (21:08 +0000)]
reference the os module and the lock flags in the os.open() function.
(Someone please review what I wrote for accuracy.)

22 years ago* Add test for __cmp__()
Raymond Hettinger [Wed, 15 Jan 2003 16:15:38 +0000 (16:15 +0000)]
* Add test for __cmp__()
* Add doctest for example in the library reference manual

22 years agoRemove misleading advice. VERSION was not intended to be used that way.
Neil Schemenauer [Wed, 15 Jan 2003 16:04:43 +0000 (16:04 +0000)]
Remove misleading advice.  VERSION was not intended to be used that way.

22 years agoDocument that __cmp__() is not defined for sets.
Raymond Hettinger [Wed, 15 Jan 2003 15:46:05 +0000 (15:46 +0000)]
Document that __cmp__() is not defined for sets.
Note, that list.sort() is undefined for lists of sets.
Add the ... prompt to the example so it runs in doctest.

22 years agoGyro Func for patch #661719.
Martin v. Löwis [Wed, 15 Jan 2003 11:53:13 +0000 (11:53 +0000)]
Gyro Func for patch #661719.

22 years agoPatch #661719: Expose compilation errors as exceptions on request.
Martin v. Löwis [Wed, 15 Jan 2003 11:51:06 +0000 (11:51 +0000)]
Patch #661719: Expose compilation errors as exceptions on request.

22 years agoPatch #473586: Implement CGIXMLRPCRequestHandler.
Martin v. Löwis [Wed, 15 Jan 2003 11:37:23 +0000 (11:37 +0000)]
Patch #473586: Implement CGIXMLRPCRequestHandler.

22 years agoSF patch #664192 bug #661913: inconsistent error messages between string
Raymond Hettinger [Wed, 15 Jan 2003 05:32:57 +0000 (05:32 +0000)]
SF patch #664192 bug #661913: inconsistent error messages between string
                              and unicode

Patch by Christopher Blunck.

22 years agoFix [ 665014 ] files with long lines and an encoding crash.
Mark Hammond [Tue, 14 Jan 2003 23:15:22 +0000 (23:15 +0000)]
Fix [ 665014 ] files with long lines and an encoding crash.

Ensure that the 'size' arg is correctly passed to the encoding reader to
prevent buffer overflows.

22 years agoUpdated IDLE Help to reflect changes in Additional Help Source
Kurt B. Kaiser [Tue, 14 Jan 2003 22:06:11 +0000 (22:06 +0000)]
Updated IDLE Help to reflect changes in Additional Help Source
Configuration implementation.

22 years agoM Bindings.py
Kurt B. Kaiser [Tue, 14 Jan 2003 22:03:31 +0000 (22:03 +0000)]
M Bindings.py
M EditorWindow.py
M NEWS.txt
M config-main.def
M configDialog.py
M configHandler.py
M configHelpSourceEdit.py
M configSectionNameDialog.py

- Change default: IDLE now starts with Python Shell.

- Removed the File Path from the Additional Help Sources scrolled list.

- Add capability to access Additional Help Sources on the web if the
  Help File Path begins with //http or www.  (Otherwise local path is
  validated, as before.)

- Additional Help Sources were not being posted on the Help menu in the
  order entered.  Implement sorting the list by [HelpFiles] 'option'
  number.

- Add Browse button to New Help Source dialog.  Arrange to start in
  Python/Doc if platform is Windows, otherwise start in current directory.

- Put the Additional Help Sources directly on the Help menu instead of in
  an Extra Help cascade menu.  Rearrange the Help menu so the Additional
  Help Sources come last.  Update help.txt appropriately.

- Fix Tk root pop-ups in configSectionNameDialog.py  and configDialog.py

22 years agoExplicitly raise an exception in __cmp__ -- this clarifies that cmp()
Guido van Rossum [Tue, 14 Jan 2003 16:45:04 +0000 (16:45 +0000)]
Explicitly raise an exception in __cmp__ -- this clarifies that cmp()
is not supported on sets.  (Unfortunately, sorting a list of sets may
still return random results because it uses < exclusively, but for
sets that inly implements a partial ordering.  Oh well.)

22 years agoReplaced POP() with STACKADJ(-1) on lines where the result wasn't used.
Raymond Hettinger [Tue, 14 Jan 2003 12:43:10 +0000 (12:43 +0000)]
Replaced POP() with STACKADJ(-1) on lines where the result wasn't used.

The two are semantically equivalent, but the first triggered a compiler
warning about an unused variable.  Note, the preceding steps had already
accessed and decreffed the variable so the reference counts were fine.

22 years agoSF bug #661184: inspect.getsource bug
Raymond Hettinger [Tue, 14 Jan 2003 02:19:36 +0000 (02:19 +0000)]
SF bug #661184: inspect.getsource bug

inspect.getsource would crash with one line definitions like:
   def f(x): return x
or
   f = lambda x: x

22 years agomake sure Info.plist has a CFBundleIdentifier entry
Just van Rossum [Mon, 13 Jan 2003 23:30:04 +0000 (23:30 +0000)]
make sure Info.plist has a CFBundleIdentifier entry

22 years agoA new test here was failing on Windows, because the test before it never
Tim Peters [Mon, 13 Jan 2003 21:38:45 +0000 (21:38 +0000)]
A new test here was failing on Windows, because the test before it never
managed to delete the @test file it intended to delete.  Also, I don't
see a reason to create a 4MB file in the new test, so cut it back to 16K.

22 years agoDuh. cmdqueue should be an instance variable, not a class variable.
Guido van Rossum [Mon, 13 Jan 2003 21:18:54 +0000 (21:18 +0000)]
Duh.  cmdqueue should be an instance variable, not a class variable.
This was introduced in 1998 in rev. 1.13, where I imported extensive
patches that, I am sad to say, I didn't review as carefully as I
should have.

22 years agoDuh. The do_EOF() implementation was bogus. Make it more like
Guido van Rossum [Mon, 13 Jan 2003 21:13:55 +0000 (21:13 +0000)]
Duh.  The do_EOF() implementation was bogus.  Make it more like
do_quit() -- but print a blank line first.

22 years agoFix SF bug #667147, Segmentation fault printing str subclass
Neal Norwitz [Mon, 13 Jan 2003 20:13:12 +0000 (20:13 +0000)]
Fix SF bug #667147, Segmentation fault printing str subclass

Fix infinite recursion which occurred when printing an object
whose __str__() returned self.

Will backport

22 years agoMove the date/time section into the modules section; it was in the
Andrew M. Kuchling [Mon, 13 Jan 2003 19:09:03 +0000 (19:09 +0000)]
Move the date/time section into the modules section; it was in the
   C API section by mistake

22 years agoUpdate comment, QnewFlag will go away in 3.0, not 2.3
Neal Norwitz [Mon, 13 Jan 2003 16:08:56 +0000 (16:08 +0000)]
Update comment, QnewFlag will go away in 3.0, not 2.3

22 years agoFix NameError in getquotaroot(), sanctioned by Piers.
Guido van Rossum [Mon, 13 Jan 2003 15:04:26 +0000 (15:04 +0000)]
Fix NameError in getquotaroot(), sanctioned by Piers.

22 years agoLink to MRO article
Andrew M. Kuchling [Mon, 13 Jan 2003 13:59:22 +0000 (13:59 +0000)]
Link to MRO article
Mention deprecation of string exceptions

22 years agoSF patch 664183 and SF bug 664044: Note that both u'%s' % 'x' and
Raymond Hettinger [Mon, 13 Jan 2003 04:29:19 +0000 (04:29 +0000)]
SF patch 664183 and SF bug 664044:  Note that both  u'%s' % 'x'  and
'%s' % u'x'  return a unicode object.

22 years agoImplemented FSCatalogInfo.
Jack Jansen [Sun, 12 Jan 2003 23:01:46 +0000 (23:01 +0000)]
Implemented FSCatalogInfo.

22 years agoTry to make a sentance more readable.
Neal Norwitz [Sun, 12 Jan 2003 15:04:54 +0000 (15:04 +0000)]
Try to make a sentance more readable.

22 years agoSF #665570, curses causes interpreter crash
Neal Norwitz [Sun, 12 Jan 2003 14:56:19 +0000 (14:56 +0000)]
SF #665570, curses causes interpreter crash

The interpreter doesn't crash, but it does call exit() in libncurses.
Add a note to this effect.

Will backport

22 years agoMinor correction and clarification.
Fred Drake [Sat, 11 Jan 2003 23:15:47 +0000 (23:15 +0000)]
Minor correction and clarification.

22 years agoGot rid of the internal datetimetz type.
Tim Peters [Sat, 11 Jan 2003 03:39:11 +0000 (03:39 +0000)]
Got rid of the internal datetimetz type.

22 years agoMinor fiddling to make the next part easier. Introduced an internal
Tim Peters [Sat, 11 Jan 2003 00:15:54 +0000 (00:15 +0000)]
Minor fiddling to make the next part easier.  Introduced an internal
HASTZINFO() macro.

22 years agoSF #639945 was fixed in alpha 1
Neal Norwitz [Fri, 10 Jan 2003 23:29:48 +0000 (23:29 +0000)]
SF #639945 was fixed in alpha 1

22 years agoFix SF bug # 602259, 3rd parameter for Tkinter.scan_dragto
Neal Norwitz [Fri, 10 Jan 2003 23:24:32 +0000 (23:24 +0000)]
Fix SF bug # 602259, 3rd parameter for Tkinter.scan_dragto

Add the optional gain parameter and pass it to Tk.

22 years agoGet build working on Redhat 7.2 linux 2.4.7
Neal Norwitz [Fri, 10 Jan 2003 21:27:54 +0000 (21:27 +0000)]
Get build working on Redhat 7.2 linux 2.4.7

22 years agoUpdate documentation.
Kurt B. Kaiser [Fri, 10 Jan 2003 21:27:23 +0000 (21:27 +0000)]
Update documentation.

22 years agoSF bug #652933 (for IdleFork): Open Module "math" Fails (Hettinger)
Kurt B. Kaiser [Fri, 10 Jan 2003 21:25:20 +0000 (21:25 +0000)]
SF bug #652933 (for IdleFork): Open Module "math" Fails (Hettinger)

When a module doesn't have a __path__ attribute, trigger a dialog box
rather than dumping a traceback to the console.

Synch to Python IDLE.