]> granicus.if.org Git - python/log
python
23 years agoExperimental feature: allow \n as well as \r as newline for text files, by breaking...
Jack Jansen [Mon, 27 Aug 2001 23:16:34 +0000 (23:16 +0000)]
Experimental feature: allow \n as well as \r as newline for text files, by breaking in to the lowlevel I/O system. Can be disabled by defining WITHOUT_UNIX_NEWLINES.

23 years agoHandle private names
Jeremy Hylton [Mon, 27 Aug 2001 22:56:16 +0000 (22:56 +0000)]
Handle private names

(Hard to believe these were never handled before)

Add misc.mangle() that mangles based on the rules in compile.c.
XXX Need to test the corner cases

Update CodeGenerator with a class_name attribute bound to None.  If a
particular instance is created within a class scope, the instance's
class_name is bound to that class's name.

Add mangle() method to CodeGenerator that mangles if the class_name
has a class_name in it.

Modify the FunctionCodeGenerator family to handle an extra argument--
the class_name.

Wrap all name ops and attrnames in calls to self.mangle()

23 years agoexceptions was missing from the module list. Added.
Jack Jansen [Mon, 27 Aug 2001 22:50:41 +0000 (22:50 +0000)]
exceptions was missing from the module list. Added.

23 years agoA quick hack to make the test pass on the Mac (similar to the quick hack
Jack Jansen [Mon, 27 Aug 2001 22:31:58 +0000 (22:31 +0000)]
A quick hack to make the test pass on the Mac (similar to the quick hack
to make it pass on Windows:-).

23 years agoemit SET_LINENO for augmented assignments
Jeremy Hylton [Mon, 27 Aug 2001 21:58:09 +0000 (21:58 +0000)]
emit SET_LINENO for augmented assignments

23 years agoMany changes -- bug fixes and sundry improvements
Jeremy Hylton [Mon, 27 Aug 2001 21:51:52 +0000 (21:51 +0000)]
Many changes -- bug fixes and sundry improvements

Make nested scopes enabled by default

Add is_constant_false() helper so that compiled code and symbols are
consistent with builtin compiler's handling of "if 0:"

Fix doc string handling to be consistent with recent change that
eliminates the doc string from the Module's node attribute.

Add fix to print handling from Evan & Shane.

Track change to visitor api by making "verbose" explicit.

Comment out setting CO_NESTED flag (it's unnecessary in 2.2).

23 years agoFix another test still expecting overflow on big int literals.
Tim Peters [Mon, 27 Aug 2001 21:50:42 +0000 (21:50 +0000)]
Fix another test still expecting overflow on big int literals.

23 years agoChange test_overflow to test_no_overflow; looks like big int literals
Tim Peters [Mon, 27 Aug 2001 21:45:32 +0000 (21:45 +0000)]
Change test_overflow to test_no_overflow; looks like big int literals
are auto-coerced to longs now, but this test still expected OverflowError.
I can't imagine this test failure was unique to Windows.

23 years agoUse the new macresource module to open the accompanying resource file (if needed).
Jack Jansen [Mon, 27 Aug 2001 21:41:23 +0000 (21:41 +0000)]
Use the new macresource module to open the accompanying resource file (if needed).

23 years agoneed() now returns the refno of the resource file opened, or None if the
Jack Jansen [Mon, 27 Aug 2001 21:37:45 +0000 (21:37 +0000)]
need() now returns the refno of the resource file opened, or None if the
specified resource was already available and no file was opened.

23 years agoModule to help other modules locate their resources. It currently knows about
Jack Jansen [Mon, 27 Aug 2001 21:21:07 +0000 (21:21 +0000)]
Module to help other modules locate their resources. It currently knows about
resources in applets and separate OS9 style resource files, but it will
eventually also be thought the hoops to jump through on OSX/MachO.

23 years agoThese have long outlived there usefulness, in my opinion. Moved to Unsupported.
Jack Jansen [Mon, 27 Aug 2001 21:17:44 +0000 (21:17 +0000)]
These have long outlived there usefulness, in my opinion. Moved to Unsupported.

23 years agoFix for sibling nodes that define the same free variable
Jeremy Hylton [Mon, 27 Aug 2001 21:06:35 +0000 (21:06 +0000)]
Fix for sibling nodes that define the same free variable

Evan Simpson's fix.  And his explanation:

    If you defined two nested functions in a row that refer to the
    same non-global variable, the second one will be generated as
    though the variable were global.

23 years agoAdd lookup_name() to optimize use of stack frames
Jeremy Hylton [Mon, 27 Aug 2001 21:02:51 +0000 (21:02 +0000)]
Add lookup_name() to optimize use of stack frames

The use of com_node() introduces a lot of extra stack frames, enough
to cause a stack overflow compiling test.test_parser with the standard
interpreter recursionlimit.  The com_node() is a convenience function
that hides the dispatch details, but comes at a very high cost.  It is
more efficient to dispatch directly in the callers.  In these cases,
use lookup_node() and call the dispatched node directly.

Also handle yield_stmt in a way that will work with Python 2.1
(suggested by Shane Hathaway)

23 years agoTwo changes to visitor API:
Jeremy Hylton [Mon, 27 Aug 2001 20:47:08 +0000 (20:47 +0000)]
Two changes to visitor API:
    Remove _preorder as alias for dispatch and call dispatch directly.
    Add an extra optional argument to walk()

XXX Also comment out some code that does debugging prints.

23 years agoWhy didn't I think of Fred off the top of my head?
Jeremy Hylton [Mon, 27 Aug 2001 20:44:20 +0000 (20:44 +0000)]
Why didn't I think of Fred off the top of my head?

23 years agoAdd everyone I can think of off the top of my head
Jeremy Hylton [Mon, 27 Aug 2001 20:43:16 +0000 (20:43 +0000)]
Add everyone I can think of off the top of my head

23 years agoRevise regrtest to compile entire standard library.
Jeremy Hylton [Mon, 27 Aug 2001 20:40:43 +0000 (20:40 +0000)]
Revise regrtest to compile entire standard library.

The tests are run from a copy of the library directory, where
everything has been compiled by the compiler package.

Add a raw_input() call at the end of the script, so that I can check
the output before the temp directory with the compiled code is
removed.

23 years agoAdd -c option to continue if one file has a SyntaxError
Jeremy Hylton [Mon, 27 Aug 2001 20:39:21 +0000 (20:39 +0000)]
Add -c option to continue if one file has a SyntaxError

23 years agoAdd content-type header to ftp URLs (SF patch #454553)
Jeremy Hylton [Mon, 27 Aug 2001 20:16:53 +0000 (20:16 +0000)]
Add content-type header to ftp URLs (SF patch #454553)

Modify rfc822.formatdate() to always generate English names,
regardless of locale.  This is required by RFC 1123.

In open_local_file() of urllib and urllib2, use new formatdate() from
rfc822.

23 years agoDocs for the PEP 264 changes.
Michael W. Hudson [Mon, 27 Aug 2001 20:02:17 +0000 (20:02 +0000)]
Docs for the PEP 264 changes.

23 years agoIf an integer constant can't be generated from an integer literal
Jeremy Hylton [Mon, 27 Aug 2001 19:45:25 +0000 (19:45 +0000)]
If an integer constant can't be generated from an integer literal
because of overflow, generate a long instead.

23 years agoSF bug [#455775] float parsing discrepancy.
Tim Peters [Mon, 27 Aug 2001 19:19:28 +0000 (19:19 +0000)]
SF bug [#455775] float parsing discrepancy.
PyTokenizer_Get:  error if exponent contains no digits (3e, 2.0e+, ...).

23 years agoAdded Dean Draayer to the thank you list.
Jack Jansen [Mon, 27 Aug 2001 15:30:48 +0000 (15:30 +0000)]
Added Dean Draayer to the thank you list.

23 years agoPatch by Dean Draayer: support for indeterminate progress bars. You
Jack Jansen [Mon, 27 Aug 2001 15:24:07 +0000 (15:24 +0000)]
Patch by Dean Draayer: support for indeterminate progress bars. You
get these by specifying maxval=0, which is now also the default.

Untested.

23 years agoPatch by Bill Noon: added 'dylib' as a library type along with
Jack Jansen [Mon, 27 Aug 2001 15:08:16 +0000 (15:08 +0000)]
Patch by Bill Noon: added 'dylib' as a library type along with
'static' and 'shared'. This fixes extension building for dynamic
Pythons on MacOSX.

23 years agoFixes by Thomas Heller:
Jack Jansen [Mon, 27 Aug 2001 14:30:55 +0000 (14:30 +0000)]
Fixes by Thomas Heller:
- make the selftests work again (they were apparently not used since
  very early in bgen's development), with some minor cleanup by me
- make emacs python mode happier

23 years agoRefer to the toolbox modules by their official name (Carbon.AE), not the internal...
Jack Jansen [Mon, 27 Aug 2001 14:01:05 +0000 (14:01 +0000)]
Refer to the toolbox modules by their official name (Carbon.AE), not the internal name (_AE). This can slow things down (once) but it's the only way I can get things to work on OSX, OS9 dynamically loaded and OS9 frozen.

23 years agoWhen we're freezing to sourcecode and one of the modules is a dynamic module that...
Jack Jansen [Mon, 27 Aug 2001 13:59:35 +0000 (13:59 +0000)]
When we're freezing to sourcecode and one of the modules is a dynamic module that is in a package we freeze that module at toplevel (outside any package). Not optimal, but there is little more we can do as config.c has no way to specify a builtin module has to be dumped into a package.

23 years agoUpdated to the current state of affairs.
Jack Jansen [Mon, 27 Aug 2001 13:58:21 +0000 (13:58 +0000)]
Updated to the current state of affairs.

23 years agoAdded targets for building the Carbon and Classic interpreter if you don't want to...
Jack Jansen [Mon, 27 Aug 2001 13:57:43 +0000 (13:57 +0000)]
Added targets for building the Carbon and Classic interpreter if you don't want to go through fullbuild.py.

23 years ago- A forgotten "from Carbon".
Jack Jansen [Mon, 27 Aug 2001 10:55:41 +0000 (10:55 +0000)]
- A forgotten "from Carbon".
- Made the "killed unknown window" code dependent on a global var,
  so you can easily turn the behaviour off for IDE debugging.

23 years agoA few forgotten "from Carbon"s.
Jack Jansen [Mon, 27 Aug 2001 10:54:55 +0000 (10:54 +0000)]
A few forgotten "from Carbon"s.

23 years agoSF patch [ #455137 ] Makes popen work with COMMAND.COM on WNT, from
Tim Peters [Mon, 27 Aug 2001 06:37:48 +0000 (06:37 +0000)]
SF patch [ #455137 ] Makes popen work with COMMAND.COM on WNT, from
Brian Quinlan.

23 years agoTwo improvements suggested by Greg Stein:
Barry Warsaw [Mon, 27 Aug 2001 03:11:09 +0000 (03:11 +0000)]
Two improvements suggested by Greg Stein:

PyString_FromFormatV(): In the final resize at the end, we can use
    PyString_AS_STRING() since we know the object is a string and can
    avoid the typechecking.

PyString_FromFormat(): GS sez: "For safety/propriety, you should call
    va_end() on the vargs variable."

23 years agoImport the MacOS toolbox modules from the Carbon package.
Jack Jansen [Sat, 25 Aug 2001 12:15:04 +0000 (12:15 +0000)]
Import the MacOS toolbox modules from the Carbon package.

23 years agoStep 2 in putting the MacOS toolbox modules in a package: issue a DepracationWarning...
Jack Jansen [Sat, 25 Aug 2001 11:53:43 +0000 (11:53 +0000)]
Step 2 in putting the MacOS toolbox modules in a package: issue a DepracationWarning in the compatibility modules.

23 years agoPyString_FromFormatV: Massage platform %p output to match what gcc does,
Tim Peters [Sat, 25 Aug 2001 03:02:28 +0000 (03:02 +0000)]
PyString_FromFormatV:  Massage platform %p output to match what gcc does,
at least in the first two characters.  %p is ill-defined, and people will
forever commit bad tests otherwise ("bad" in the sense that they fall
over (at least on Windows) for lack of a leading '0x'; 5 of the 7 tests
in test_repr.py failed on Windows for that reason this time around).

23 years agoUndo previous checkin -- Barry fixed it better.
Guido van Rossum [Fri, 24 Aug 2001 19:46:21 +0000 (19:46 +0000)]
Undo previous checkin -- Barry fixed it better.

23 years agoUpdate test output to match new (more informative) error message about
Guido van Rossum [Fri, 24 Aug 2001 19:31:43 +0000 (19:31 +0000)]
Update test output to match new (more informative) error message about
calling unbound method with wrong first argument.

23 years agoQuick and dirty fix for test_extcall failures trigged by Guido's
Barry Warsaw [Fri, 24 Aug 2001 19:11:57 +0000 (19:11 +0000)]
Quick and dirty fix for test_extcall failures trigged by Guido's
recent classobject.c change.  When calling an unbound method with no
instances as first argument, the error message has changed.  The
message now contains the class name, but the output text being
compared to is too generic, so skip printing it.

23 years agoRemove the local 'getset' class -- this is now a built-in type with
Guido van Rossum [Fri, 24 Aug 2001 18:52:50 +0000 (18:52 +0000)]
Remove the local 'getset' class -- this is now a built-in type with
the same signature.

23 years agogetset_init(): the function name in the PyArg_ParseTuple() format
Guido van Rossum [Fri, 24 Aug 2001 18:49:10 +0000 (18:49 +0000)]
getset_init(): the function name in the PyArg_ParseTuple() format
should just be "getset", not "getset.__init__".

23 years agoImprove the error message issued when an unbound method is called with
Guido van Rossum [Fri, 24 Aug 2001 18:48:27 +0000 (18:48 +0000)]
Improve the error message issued when an unbound method is called with
an inappropriate first argument.  Now that there are more ways for
this to fail, make sure to report the name of the class of the
expected instance and of the actual instance.

23 years agoRip the import repr truncation test out of here and put it in test_repr.py
Barry Warsaw [Fri, 24 Aug 2001 18:38:02 +0000 (18:38 +0000)]
Rip the import repr truncation test out of here and put it in test_repr.py

23 years agoAdded lots of tests for reprs of "simple" objects, such as file,
Barry Warsaw [Fri, 24 Aug 2001 18:37:32 +0000 (18:37 +0000)]
Added lots of tests for reprs of "simple" objects, such as file,
lambda (anonymous functions?), function, xrange, buffer, cell (need to
fill in), and (some) descriptor types.

Also added a new test case for testing repr truncation fixes.

23 years agoPyErr_Format(): Factor out most of this code into
Barry Warsaw [Fri, 24 Aug 2001 18:35:23 +0000 (18:35 +0000)]
PyErr_Format(): Factor out most of this code into
    PyString_FromFormat() since it's much more generally useful than
    just for exceptions.

23 years agorepr's converted to using PyString_FromFormat() instead of sprintf'ing
Barry Warsaw [Fri, 24 Aug 2001 18:34:26 +0000 (18:34 +0000)]
repr's converted to using PyString_FromFormat() instead of sprintf'ing
into a hardcoded char* buffer.

Closes patch #454743.

23 years agoPyString_FromFormat() and PyString_FromFormatV(): Largely ripped from
Barry Warsaw [Fri, 24 Aug 2001 18:32:06 +0000 (18:32 +0000)]
PyString_FromFormat() and PyString_FromFormatV(): Largely ripped from
    PyErr_Format() these new C API methods can be used instead of
    sprintf()'s into hardcoded char* buffers.  This allows us to fix
    many situation where long package, module, or class names get
    truncated in reprs.

    PyString_FromFormat() is the varargs variety.
    PyString_FromFormatV() is the va_list variety

    Original PyErr_Format() code was modified to allow %p and %ld
    expansions.

    Many reprs were converted to this, checkins coming soo.  Not
    changed: complex_repr(), float_repr(), float_print(), float_str(),
    int_repr().  There may be other candidates not yet converted.

    Closes patch #454743.

23 years agoRepair repr of future-features (wasn't updated to include the new
Tim Peters [Fri, 24 Aug 2001 17:13:54 +0000 (17:13 +0000)]
Repair repr of future-features (wasn't updated to include the new
compiler-flag argument).

23 years agosupers(): typo -- "if verify" should be "if verbose".
Guido van Rossum [Fri, 24 Aug 2001 17:07:20 +0000 (17:07 +0000)]
supers(): typo -- "if verify" should be "if verbose".

23 years agoAdd test suite for super().
Guido van Rossum [Fri, 24 Aug 2001 16:55:27 +0000 (16:55 +0000)]
Add test suite for super().

23 years agoAdd 'super' builtin type.
Guido van Rossum [Fri, 24 Aug 2001 16:52:18 +0000 (16:52 +0000)]
Add 'super' builtin type.

23 years agoAdd decl of PySuper_Type; fixup comments for the two other types.
Guido van Rossum [Fri, 24 Aug 2001 16:51:42 +0000 (16:51 +0000)]
Add decl of PySuper_Type; fixup comments for the two other types.

23 years agoAdd 'super', another new object type with magical properties.
Guido van Rossum [Fri, 24 Aug 2001 16:47:00 +0000 (16:47 +0000)]
Add 'super', another new object type with magical properties.

super(type) -> unbound super object
super(type, obj) -> bound super object; requires isinstance(obj, type)

Typical use to call a cooperative superclass method:

class C(B):
    def meth(self, arg):
        super(C, self).meth(arg);

23 years agoAdd a test for the new getset type.
Guido van Rossum [Fri, 24 Aug 2001 15:24:24 +0000 (15:24 +0000)]
Add a test for the new getset type.

23 years agoChange the getset type to take an optional third function argument:
Guido van Rossum [Fri, 24 Aug 2001 15:23:20 +0000 (15:23 +0000)]
Change the getset type to take an optional third function argument:
the delete function.  (Question: should the attribute name also be
recorded in the getset object?  That makes the protocol more work, but
may give us better error messages.)

23 years agoSF patch #454553 by Walter Dörwald: add content-type to FTP URLs, like
Guido van Rossum [Fri, 24 Aug 2001 13:10:13 +0000 (13:10 +0000)]
SF patch #454553 by Walter Dörwald: add content-type to FTP URLs, like
for urllib.

23 years agogetset_descr_set(): guard against deletion (indicated by a set call
Guido van Rossum [Fri, 24 Aug 2001 10:17:36 +0000 (10:17 +0000)]
getset_descr_set(): guard against deletion (indicated by a set call
with a NULL value), in a somewhat lame way: call the set() function
with one argument.  Should I add a 3rd function, 'del', instead?

23 years agoslot_tp_descr_get(): guard against NULL obj or type (bug reported by
Guido van Rossum [Fri, 24 Aug 2001 10:13:31 +0000 (10:13 +0000)]
slot_tp_descr_get(): guard against NULL obj or type (bug reported by
Thomas Hellor on python-dev).

slot_tp_descr_set(): if value is NULL, call __del__ instead of
__set__.

23 years agogetset_init(): make the arguments optional.
Guido van Rossum [Fri, 24 Aug 2001 09:55:51 +0000 (09:55 +0000)]
getset_init(): make the arguments optional.

getset_doc: add docstring.

23 years agoLast renamed module that wasn't removed yet.
Jack Jansen [Fri, 24 Aug 2001 09:17:15 +0000 (09:17 +0000)]
Last renamed module that wasn't removed yet.

23 years agoBack out trying to use the C values for CO_xxx.
Tim Peters [Fri, 24 Aug 2001 06:29:12 +0000 (06:29 +0000)]
Back out trying to use the C values for CO_xxx.
__future__.py reverted to 1.9.
newmodule.c reverted to 2.32.

23 years agoLooks like someone forgot the change the expected output file.
Tim Peters [Fri, 24 Aug 2001 04:33:10 +0000 (04:33 +0000)]
Looks like someone forgot the change the expected output file.

23 years agoAdd a test for the new // operator too.
Tim Peters [Thu, 23 Aug 2001 23:02:57 +0000 (23:02 +0000)]
Add a test for the new // operator too.

23 years agoSF bug [#454456] int overflow code needs tests.
Tim Peters [Thu, 23 Aug 2001 22:56:21 +0000 (22:56 +0000)]
SF bug [#454456] int overflow code needs tests.
Added tests for boundary cases in magical PEP 237 int->long auto-overflow,
but nothing here addresses the rest of the bug report so left it open.

23 years agofloat_pow: Put *all* of the burden on the libm pow in normal
Tim Peters [Thu, 23 Aug 2001 22:31:37 +0000 (22:31 +0000)]
float_pow:  Put *all* of the burden on the libm pow in normal
cases.
powu:  Deleted.

This started with a nonsensical error msg:

>>> x = -1.
>>> import sys
>>> x**(-sys.maxint-1L)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ValueError: negative number cannot be raised to a fractional power
>>>

The special-casing in float_pow was simply wrong in this case (there's
not even anything peculiar about these inputs), and I don't see any point
to it in *any* case:  a decent libm pow should have worst-case error under
1 ULP, so in particular should deliver the exact result whenever the exact
result is representable (else its error is at least 1 ULP).  Thus our
special fiddling for integral values "shouldn't" buy anything in accuracy,
and, to the contrary, repeated multiplication is less accurate than a
decent pow when the true result isn't exactly representable.  So just
letting pow() do its job here (we may not be able to trust libm x-platform
in exceptional cases, but these are normal cases).

23 years agoAdd new built-in type 'getset' (PyGetSet_Type).
Guido van Rossum [Thu, 23 Aug 2001 21:40:38 +0000 (21:40 +0000)]
Add new built-in type 'getset' (PyGetSet_Type).
This implements the 'getset' class from test_binop.py.

23 years agoerr_ovf(): only raise OverflowError when OverflowWarning was raised.
Guido van Rossum [Thu, 23 Aug 2001 21:32:40 +0000 (21:32 +0000)]
err_ovf(): only raise OverflowError when OverflowWarning was raised.

23 years agoint_pow(): Repair typo when passing on to float pow (the 2nd argument was
Tim Peters [Thu, 23 Aug 2001 21:28:33 +0000 (21:28 +0000)]
int_pow():  Repair typo when passing on to float pow (the 2nd argument was
being passed as both the 2nd and 3rd args).  Regression test will follow.

23 years agoPatch #449054 to implement PEP 250. The standard install directory for
Greg Ward [Thu, 23 Aug 2001 20:53:27 +0000 (20:53 +0000)]
Patch #449054 to implement PEP 250.  The standard install directory for
modules and extensions on Windows is now $PREFIX/Lib/site-packages.
Includes backwards compatibility code for pre-2.2 Pythons.  Contributed
by Paul Moore.

23 years agoRemove test_long's expected-output file.
Tim Peters [Thu, 23 Aug 2001 20:34:01 +0000 (20:34 +0000)]
Remove test_long's expected-output file.

23 years agountabification
Fredrik Lundh [Thu, 23 Aug 2001 20:13:08 +0000 (20:13 +0000)]
untabification

23 years agoupdated to current PythonWare version (1.0b3). fixed type checks in
Fredrik Lundh [Thu, 23 Aug 2001 20:04:33 +0000 (20:04 +0000)]
updated to current PythonWare version (1.0b3).  fixed type checks in
DateTime constructor.  use ServerProxy instead of Server in sample
code.

23 years agoCommitting and closing SF patch #441348 to help Jython to pass this test.
Finn Bock [Thu, 23 Aug 2001 18:57:01 +0000 (18:57 +0000)]
Committing and closing SF patch #441348 to help Jython to pass this test.

23 years agoBump to version 1.3. Also document the new behavior of the chip widgets.
Barry Warsaw [Thu, 23 Aug 2001 16:15:21 +0000 (16:15 +0000)]
Bump to version 1.3.  Also document the new behavior of the chip widgets.

23 years agoBump to version 1.3
Barry Warsaw [Thu, 23 Aug 2001 16:15:02 +0000 (16:15 +0000)]
Bump to version 1.3

23 years agoImplement some suggestions by Laura Creighton.
Barry Warsaw [Thu, 23 Aug 2001 16:14:45 +0000 (16:14 +0000)]
Implement some suggestions by Laura Creighton.

ChipWidget.__init__(): Added a message area just below the color
    name.  Both the message and name widgets are now FLAT, DISABLED
    Entry widgets instead of Labels.  This allows users to
    copy-n-paste the color names or color specs.  Also, the contents
    of both widgets are now driven by StringVars.

set_color(): This only sets the chip color; it does not set the name
    widgets.

set_name(): New method which only sets the name widget contents.

set_message(): New method which only sets the message widget contents.

ChipViewer.update_yourself(): Set the color, name, and message for
    each chip as follows: the first line always contains the color
    spec in #rrggbb format.  The second line will contain the color
    name, but slightly differently for each widget.  For the Selected
    widget, if the color exactly matches the Nearest color, the name
    is shown, otherwise the message field will be empty.  The name
    field of the Nearest widget will always contain the color name.

23 years agoWrapper modules underound the toolbox modules, which now have an _ prepended.
Jack Jansen [Thu, 23 Aug 2001 14:13:06 +0000 (14:13 +0000)]
Wrapper modules underound the toolbox modules, which now have an _ prepended.

23 years agoRenamed.
Jack Jansen [Thu, 23 Aug 2001 14:11:10 +0000 (14:11 +0000)]
Renamed.

23 years agoRenamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen [Thu, 23 Aug 2001 14:02:09 +0000 (14:02 +0000)]
Renamed the Mac toolbox modules to have an initial _ in their name.

23 years agoMac toolbox modules have gotten an _ prepended to their name.
Jack Jansen [Thu, 23 Aug 2001 13:53:34 +0000 (13:53 +0000)]
Mac toolbox modules have gotten an _ prepended to their name.

23 years agoThe MacOS toolbox modules have acquired an _ in front of their name. Normal usage...
Jack Jansen [Thu, 23 Aug 2001 13:51:46 +0000 (13:51 +0000)]
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.

23 years agoSF patch #454553 by Walter Dörwald: auto-guess content-type header for
Guido van Rossum [Thu, 23 Aug 2001 13:38:15 +0000 (13:38 +0000)]
SF patch #454553 by Walter Dörwald: auto-guess content-type header for
ftp urls.

23 years agoDon't make even the _slightest_ modification between test and checkin,
Jack Jansen [Thu, 23 Aug 2001 13:25:59 +0000 (13:25 +0000)]
Don't make even the _slightest_ modification between test and checkin,
or you will break something:-)

23 years agoThe MacOS module may be available on Mac OS X, but it doesn't have a SchedParams...
Jack Jansen [Thu, 23 Aug 2001 13:18:10 +0000 (13:18 +0000)]
The MacOS module may be available on Mac OS X, but it doesn't have a SchedParams() method, and there's no need to call it anyway.

23 years agoTurn OverflowWarning into an error locally, in order to make the
Guido van Rossum [Thu, 23 Aug 2001 03:23:03 +0000 (03:23 +0000)]
Turn OverflowWarning into an error locally, in order to make the
OverflowError test succeed.

23 years agoIgnore OverflowWarning by default. To enable the warning, use
Guido van Rossum [Thu, 23 Aug 2001 03:07:42 +0000 (03:07 +0000)]
Ignore OverflowWarning by default.  To enable the warning, use

python -Wdefault

or

python -Wdefault::OverflowWarning

23 years agoChange all case where we used to raise OverflowError to issue a
Guido van Rossum [Thu, 23 Aug 2001 02:59:04 +0000 (02:59 +0000)]
Change all case where we used to raise OverflowError to issue a
warning and then redo the operation using long ints.

23 years agoWhen an inlined operation on two small ints causes overflow, don't
Guido van Rossum [Thu, 23 Aug 2001 02:58:07 +0000 (02:58 +0000)]
When an inlined operation on two small ints causes overflow, don't
raise the exception here -- call the generic function (which may
convert the arguments to long and try again).

23 years agoIntroduce OverflowWarning -- to be issued when short int operations
Guido van Rossum [Thu, 23 Aug 2001 02:56:07 +0000 (02:56 +0000)]
Introduce OverflowWarning -- to be issued when short int operations
are overflowing and a long int operation is substituted.

23 years agoAdd pynche's top-level txt files to Windows installer -- I don't believe
Tim Peters [Wed, 22 Aug 2001 22:18:31 +0000 (22:18 +0000)]
Add pynche's top-level txt files to Windows installer -- I don't believe
we've *ever* installed them!

23 years ago"The usual" post-release fiddling.
Tim Peters [Wed, 22 Aug 2001 21:36:50 +0000 (21:36 +0000)]
"The usual" post-release fiddling.

23 years agoAdd an item about Tim's new installer. This didn't make it into the
Barry Warsaw [Wed, 22 Aug 2001 20:26:56 +0000 (20:26 +0000)]
Add an item about Tim's new installer.  This didn't make it into the
2.2a2 release, but it's still worth mentioning.

23 years agoMerge changes from r22a2-branch back into trunk. Also, change patch
Barry Warsaw [Wed, 22 Aug 2001 19:24:42 +0000 (19:24 +0000)]
Merge changes from r22a2-branch back into trunk.  Also, change patch
level to 2.2a2+

23 years agoindicate that mktime is platform-dependent. See SF bug 434143.
Skip Montanaro [Wed, 22 Aug 2001 12:44:27 +0000 (12:44 +0000)]
indicate that mktime is platform-dependent.  See SF bug 434143.

23 years agoindicate that the years for which the calendar function will work are
Skip Montanaro [Wed, 22 Aug 2001 12:43:38 +0000 (12:43 +0000)]
indicate that the years for which the calendar function will work are
platform dependent.  See SF bug 434143.

23 years agomake the gettmarg error message more correct by making it more vague ;-)
Skip Montanaro [Wed, 22 Aug 2001 12:39:16 +0000 (12:39 +0000)]
make the gettmarg error message more correct by making it more vague ;-)
see SF bug 434143, part of which this addresses

23 years agoMore NEWS for 2.2a2.
Barry Warsaw [Wed, 22 Aug 2001 04:08:41 +0000 (04:08 +0000)]
More NEWS for 2.2a2.

23 years agoAdded a note about --enable-framework on Mac OS X.
Jack Jansen [Tue, 21 Aug 2001 19:28:20 +0000 (19:28 +0000)]
Added a note about --enable-framework on Mac OS X.