]> granicus.if.org Git - python/log
python
22 years agoRemove 'x_' prefix from oss_t and oss_mixer_t struct members.
Greg Ward [Mon, 30 Dec 2002 02:29:28 +0000 (02:29 +0000)]
Remove 'x_' prefix from oss_t and oss_mixer_t struct members.
(It added nothing, and served no obvious purpose.)

Export SOUND_MIXER_NRDEVICES constant.

22 years agoThis test depends on the exact ordering produced by the WichmannHill
Raymond Hettinger [Mon, 30 Dec 2002 00:46:09 +0000 (00:46 +0000)]
This test depends on the exact ordering produced by the WichmannHill
random number generator.  Altered it a bit to use the old generator
and restore the test.

22 years agoRevert the last change. Tim was faster and chose a different route.
Raymond Hettinger [Mon, 30 Dec 2002 00:40:40 +0000 (00:40 +0000)]
Revert the last change.  Tim was faster and chose a different route.

22 years agoDocument the _randommodule project for the Windows build.
Raymond Hettinger [Mon, 30 Dec 2002 00:03:27 +0000 (00:03 +0000)]
Document the _randommodule project for the Windows build.

22 years agoTaught the Windows build about _randommodule.c. This is compiled
Tim Peters [Sun, 29 Dec 2002 23:46:40 +0000 (23:46 +0000)]
Taught the Windows build about _randommodule.c.  This is compiled
into the core DLL, since it's not much code and lots of stuff uses
it (e.g., try getting a tempfile name without it).

22 years agoA start at non-trivial (== DST-aware) tests of timezone conversion.
Tim Peters [Sun, 29 Dec 2002 23:44:49 +0000 (23:44 +0000)]
A start at non-trivial (== DST-aware) tests of timezone conversion.
Guido has in mind an easier way for users to code this stuff, but the
only tests we have now are for fixed-offset tzinfo classes, and this
stuff is extremely delicate in the endcases (read the new test code
for why:  there are holes in time <wink>).

22 years agoSF patch 658251: Install a C implementation of the Mersenne Twister as the
Raymond Hettinger [Sun, 29 Dec 2002 23:03:38 +0000 (23:03 +0000)]
SF patch 658251: Install a C implementation of the Mersenne Twister as the
core generator for random.py.

22 years agoRemove some old debugging print statements.
Kurt B. Kaiser [Sun, 29 Dec 2002 22:48:52 +0000 (22:48 +0000)]
Remove some old debugging print statements.

22 years agoM EditorWindow.py
Kurt B. Kaiser [Sun, 29 Dec 2002 22:03:38 +0000 (22:03 +0000)]
M EditorWindow.py
M PyShell.py

1. PyShell Rev 1.39, EditorWindow Rev 1.37 fix was not handling a
   multiline prompt.
2. The same fix introduced a bug where hitting <enter> at a previous
   prompt-only line would copy the prompt to the iomark.
3. Move the setting of sys.ps1 earlier, into PyShell.main(), to allow
   this code to work before a shell is started up.
4. If cursor is on the input line in the prompt, and you hit <enter>,
   process the line instead of complaining.
5. If line has no stdin range (this includes the last line before shell
   restart) strip any prompt before recalling.

22 years agoAdd newsitem for the two new unittest methods.
Raymond Hettinger [Sun, 29 Dec 2002 20:14:11 +0000 (20:14 +0000)]
Add newsitem for the two new unittest methods.
Also, made some whitespace cleanup.

22 years agoPatch for bug #659709: bogus computation of float length
Marc-André Lemburg [Sun, 29 Dec 2002 19:44:06 +0000 (19:44 +0000)]
Patch for bug #659709: bogus computation of float length

Python 2.2.x backport candidate. (This bug has been around since
Python 1.6.)

22 years agoMake error message more specific for min() and max().
Raymond Hettinger [Sun, 29 Dec 2002 18:31:19 +0000 (18:31 +0000)]
Make error message more specific for min() and max().
Suggested by MvL.

22 years agoIncorporate Skip's suggestion to use SciPy's validation test near
Raymond Hettinger [Sun, 29 Dec 2002 17:59:24 +0000 (17:59 +0000)]
Incorporate Skip's suggestion to use SciPy's validation test near
equality.  Note, there is another flavor that compares to a given
number of significant digits rather than decimal places.  If there
is a demand, that could be added at a later date.

22 years agoDemonstrate use of PyType_Ready() in the example.
Raymond Hettinger [Sun, 29 Dec 2002 17:16:49 +0000 (17:16 +0000)]
Demonstrate use of PyType_Ready() in the example.

22 years agoBug #599248: strip directories when building Python. Out-of-tree builds should work...
Andrew M. Kuchling [Sun, 29 Dec 2002 17:00:57 +0000 (17:00 +0000)]
Bug #599248: strip directories when building Python.  Out-of-tree builds should work again.

22 years agoSuppress unsafe *Cookie class warnings
Andrew M. Kuchling [Sun, 29 Dec 2002 16:45:06 +0000 (16:45 +0000)]
Suppress unsafe *Cookie class warnings

22 years agoPatch #655760: add warnings when the unsafe *Cookie classes are instantiated
Andrew M. Kuchling [Sun, 29 Dec 2002 16:44:31 +0000 (16:44 +0000)]
Patch #655760: add warnings when the unsafe *Cookie classes are instantiated

22 years agoSF patch #659536: Use PyArg_UnpackTuple where possible.
Raymond Hettinger [Sun, 29 Dec 2002 16:33:45 +0000 (16:33 +0000)]
SF patch #659536: Use PyArg_UnpackTuple where possible.

Obtain cleaner coding and a system wide
performance boost by using the fast, pre-parsed
PyArg_Unpack function instead of PyArg_ParseTuple
function which is driven by a format string.

22 years agoSF Bug 645777: list.extend() works with any iterable and is no longer
Raymond Hettinger [Sun, 29 Dec 2002 05:49:09 +0000 (05:49 +0000)]
SF Bug 645777:  list.extend() works with any iterable and is no longer
experimental.

22 years agoApparently FreeBSD enables some HW floating-point exceptions by default.
Tim Peters [Sat, 28 Dec 2002 21:56:08 +0000 (21:56 +0000)]
Apparently FreeBSD enables some HW floating-point exceptions by default.
This can cause core dumps when Python runs.  Python relies on the 754-
(and C99-) mandated default "non-stop" mode for FP exceptions.  This
patch from Ben Laurie disables at least one FP exception on FreeBSD at
Python startup time.

22 years agoGracefully delay runtime error up to 1s. Add .willdispatch().
Martin v. Löwis [Sat, 28 Dec 2002 09:23:09 +0000 (09:23 +0000)]
Gracefully delay runtime error up to 1s. Add .willdispatch().

22 years agoastimezone(): document that None is an OK argument.
Tim Peters [Fri, 27 Dec 2002 21:41:32 +0000 (21:41 +0000)]
astimezone():  document that None is an OK argument.

22 years agoAdded a useful warning to the documentation.
Eric S. Raymond [Fri, 27 Dec 2002 20:05:36 +0000 (20:05 +0000)]
Added a useful warning to the documentation.

22 years agoDocument killpg.
Martin v. Löwis [Fri, 27 Dec 2002 10:21:19 +0000 (10:21 +0000)]
Document killpg.

22 years agoPatch #657889: Implement posix.getloadavg.
Martin v. Löwis [Fri, 27 Dec 2002 10:16:42 +0000 (10:16 +0000)]
Patch #657889: Implement posix.getloadavg.

22 years agoAnd put back a little code duplication, in the form of asserts.
Tim Peters [Fri, 27 Dec 2002 02:26:16 +0000 (02:26 +0000)]
And put back a little code duplication, in the form of asserts.

22 years agoSquash recently-introduced code duplication.
Tim Peters [Fri, 27 Dec 2002 02:21:51 +0000 (02:21 +0000)]
Squash recently-introduced code duplication.

22 years agoMake comparison and subtraction of aware objects ignore tzinfo if the
Tim Peters [Fri, 27 Dec 2002 00:41:11 +0000 (00:41 +0000)]
Make comparison and subtraction of aware objects ignore tzinfo if the
operands have identical tzinfo members (meaning object identity -- "is").
I misunderstood the intent here, reading wrong conclusion into
conflicting clues.

22 years agoChanged the input field for the interpreter to use (in the preferences
Jack Jansen [Thu, 26 Dec 2002 22:10:53 +0000 (22:10 +0000)]
Changed the input field for the interpreter to use (in the preferences
window) to a combobox listing the known interpreters.

22 years agomacfsn is gone.
Jack Jansen [Thu, 26 Dec 2002 21:17:42 +0000 (21:17 +0000)]
macfsn is gone.

22 years agoIntegrated macfsn into macfs, and made the Standard File calls return the
Jack Jansen [Thu, 26 Dec 2002 21:09:39 +0000 (21:09 +0000)]
Integrated macfsn into macfs, and made the Standard File calls return the
correct FSSpec implementations.

22 years agoReturn the macfs variation for FSSpec and Alias, not the underlying
Jack Jansen [Thu, 26 Dec 2002 20:46:54 +0000 (20:46 +0000)]
Return the macfs variation for FSSpec and Alias, not the underlying
Carbon.File version, so the old method names work.

22 years agoSecond-argument alias methods were generated with a variation on
Jack Jansen [Thu, 26 Dec 2002 20:45:43 +0000 (20:45 +0000)]
Second-argument alias methods were generated with a variation on
MethodGenerator, this should be OSErrMethodGenerator.

22 years agoAdd XXX about Winsock error values
Guido van Rossum [Thu, 26 Dec 2002 18:22:54 +0000 (18:22 +0000)]
Add XXX about Winsock error values

22 years agoAlso skip testHostnameRes() if gethostbyaddr() raises an exception.
Guido van Rossum [Thu, 26 Dec 2002 17:04:45 +0000 (17:04 +0000)]
Also skip testHostnameRes() if gethostbyaddr() raises an exception.

22 years agoSkip testHostnameRes() if gethostbyname() raises an exception.
Guido van Rossum [Thu, 26 Dec 2002 16:55:15 +0000 (16:55 +0000)]
Skip testHostnameRes() if gethostbyname() raises an exception.

22 years agoFix julian day problem with strptime. Note: XXX about using 0, suggestions?
Neal Norwitz [Thu, 26 Dec 2002 16:19:52 +0000 (16:19 +0000)]
Fix julian day problem with strptime.  Note: XXX about using 0, suggestions?

22 years agoAdded tests to ensure that timetz comparison, and datetimetz
Tim Peters [Thu, 26 Dec 2002 05:01:19 +0000 (05:01 +0000)]
Added tests to ensure that timetz comparison, and datetimetz
subtraction, work as documented.  In the Python implementation,
they weren't calling utcoffset() if both operands had the same
tzinfo object.  That's fine if it so happens that the shared
tzinfo object returns a fixed offset (independent of operand),
but can give wrong results if that's not so, and the latter
obtains in a tzinfo subclass instance trying to model both
standard and daylight times.  The C implementation was already
doing this "correctly", so we're just adding tests to verify it.

22 years agoBacking out patch #642578 in anticipation of final acceptance of PEP 302.
Just van Rossum [Wed, 25 Dec 2002 23:13:34 +0000 (23:13 +0000)]
Backing out patch #642578 in anticipation of final acceptance of PEP 302.

22 years agoIf you entered a pathname for a nonexisting file to a FSSpec constructor
Jack Jansen [Wed, 25 Dec 2002 22:45:28 +0000 (22:45 +0000)]
If you entered a pathname for a nonexisting file to a FSSpec constructor
on OSX then the actual error (file not found) was obscured by the
error message that tried to be helpful about the allowed arguments. Fixed.

22 years agoChanged folder name for apps from Python to MacPython-$(VERSION) (for a
Jack Jansen [Wed, 25 Dec 2002 22:31:28 +0000 (22:31 +0000)]
Changed folder name for apps from Python to MacPython-$(VERSION) (for a
normal 2.3 framework install) and MacPython-OSX-$(VERSION) (for the
experimental Jaguar addon install).

22 years agoSF 658405: calendar.py to rely on the datetime module instead of the time
Raymond Hettinger [Wed, 25 Dec 2002 16:37:19 +0000 (16:37 +0000)]
SF 658405:  calendar.py to rely on the datetime module instead of the time
module.

The code is shorter, more readable, faster, and dramatically increases the
range of acceptable dates.

Also, used the floor division operator in leapdays().

22 years agoImplemented datetime.astimezone() and datetimetz.astimezone().
Tim Peters [Wed, 25 Dec 2002 07:40:55 +0000 (07:40 +0000)]
Implemented datetime.astimezone() and datetimetz.astimezone().

22 years agoWhitespace normalization.
Tim Peters [Tue, 24 Dec 2002 18:31:27 +0000 (18:31 +0000)]
Whitespace normalization.

22 years agoAdd an XXX comment about relative imports.
Guido van Rossum [Tue, 24 Dec 2002 18:10:07 +0000 (18:10 +0000)]
Add an XXX comment about relative imports.

22 years agoboolcheck cannot be deleted here.
Tony Lownds [Tue, 24 Dec 2002 17:22:53 +0000 (17:22 +0000)]
boolcheck cannot be deleted here.

22 years agoMove boolcheck before import of other IDLE modules
Tony Lownds [Tue, 24 Dec 2002 17:21:43 +0000 (17:21 +0000)]
Move boolcheck before import of other IDLE modules

22 years agoRemoved blurb admonishing users to raise an exception if the datetime
Tim Peters [Tue, 24 Dec 2002 16:34:13 +0000 (16:34 +0000)]
Removed blurb admonishing users to raise an exception if the datetime
argument to a tzinfo method doesn't have a matching tzinfo member.

22 years agoAdded note about technical pickle limitation on tzinfo instances.
Tim Peters [Tue, 24 Dec 2002 16:30:58 +0000 (16:30 +0000)]
Added note about technical pickle limitation on tzinfo instances.

22 years agotzinfo.{utcoffset,dst} can return timedelta (or integer or None).
Tim Peters [Tue, 24 Dec 2002 16:25:29 +0000 (16:25 +0000)]
tzinfo.{utcoffset,dst} can return timedelta (or integer or None).
{timetz,datetimetz}.{uctcoffset,dst} do return timedelta (or None).

22 years agoAdd test for SF #658106. Will backport.
Neal Norwitz [Tue, 24 Dec 2002 15:26:42 +0000 (15:26 +0000)]
Add test for SF #658106.  Will backport.

22 years agoFix SF #658023, "What's New in 2.3", s12, verbatim error
Neal Norwitz [Tue, 24 Dec 2002 14:51:43 +0000 (14:51 +0000)]
Fix SF #658023, "What's New in 2.3", s12, verbatim error

Remove space between \end {verbatim}

22 years agoAdded File and Folder, removed macfs.
Jack Jansen [Tue, 24 Dec 2002 13:11:19 +0000 (13:11 +0000)]
Added File and Folder, removed macfs.

22 years agoFixed typo.
Jack Jansen [Tue, 24 Dec 2002 13:09:28 +0000 (13:09 +0000)]
Fixed typo.

22 years agoRemoved macfs, added File and Folder.
Jack Jansen [Tue, 24 Dec 2002 13:08:52 +0000 (13:08 +0000)]
Removed macfs, added File and Folder.

22 years agoUpdated for demise of macfs.
Jack Jansen [Tue, 24 Dec 2002 13:07:58 +0000 (13:07 +0000)]
Updated for demise of macfs.

22 years agoM PyShell.py
Kurt B. Kaiser [Tue, 24 Dec 2002 06:36:19 +0000 (06:36 +0000)]
M PyShell.py
M idle
M idle.py
M idle.pyw
M setup.py

Switch back to installing IDLE as a package.  The IDLE GUI and the
subprocess will both attempt to start up via the package mechanism, but if
IDLE is not yet installed it is possible to run by calling python idle.py
in the IDLE source directory, or to add the source directory to sys.path.

One advantage of doing it this way is IDLE stays off sys.path.

Developed in collaboration with Tony Lownds.

22 years agoImplemented .replace() methods for date, datetime, datetimetz, time and
Tim Peters [Tue, 24 Dec 2002 05:41:27 +0000 (05:41 +0000)]
Implemented .replace() methods for date, datetime, datetimetz, time and
timetz.

22 years agoIDLE should exit if it fails to connect with the execution server
Kurt B. Kaiser [Tue, 24 Dec 2002 03:33:12 +0000 (03:33 +0000)]
IDLE should exit if it fails to connect with the execution server
subprocess.  Currently it opens a dead shell window.

22 years ago1. RPC stack levels were not pruned from traceback unless IDLE was started
Kurt B. Kaiser [Tue, 24 Dec 2002 00:57:22 +0000 (00:57 +0000)]
1. RPC stack levels were not pruned from traceback unless IDLE was started
   from its source directory.
2. Replace final traceback '?' with '-toplevel-'
3. Remove duplicated import boolcheck

22 years agoUniform Capitalization in Menus
Kurt B. Kaiser [Tue, 24 Dec 2002 00:51:05 +0000 (00:51 +0000)]
Uniform Capitalization in Menus

22 years ago- Various tweaks to shut up compiler warnings.
Jack Jansen [Mon, 23 Dec 2002 23:16:25 +0000 (23:16 +0000)]
- Various tweaks to shut up compiler warnings.
- Regenerated with the correct calls to PyType_Ready and the correct
  deallocator calls.

22 years agoRemove debugging connection message
Kurt B. Kaiser [Mon, 23 Dec 2002 22:51:03 +0000 (22:51 +0000)]
Remove debugging connection message

22 years ago- Various tweaks to forestall compiler warnings.
Jack Jansen [Mon, 23 Dec 2002 22:35:38 +0000 (22:35 +0000)]
- Various tweaks to forestall compiler warnings.

22 years agoOops, old-style types don't have a tp_free slot. Call PyObject_Free
Jack Jansen [Mon, 23 Dec 2002 22:33:49 +0000 (22:33 +0000)]
Oops, old-style types don't have a tp_free slot. Call PyObject_Free
directly in that case.

22 years agoBrought the strftime explanation into synch with the plain-text sandbox
Tim Peters [Mon, 23 Dec 2002 22:21:52 +0000 (22:21 +0000)]
Brought the strftime explanation into synch with the plain-text sandbox
docs, and moved its section to the end (before the "C API" section,
which latter doesn't really belong in the Library manual).

22 years agoSquashed compiler warnings by adding casts, making sure prototypes are in
Jack Jansen [Mon, 23 Dec 2002 21:03:36 +0000 (21:03 +0000)]
Squashed compiler warnings by adding casts, making sure prototypes are in
scope and looking at types.

22 years agoAdd in the datetime docs now that they pass LaTeX. Still ugly, but that can
Fred Drake [Mon, 23 Dec 2002 19:03:00 +0000 (19:03 +0000)]
Add in the datetime docs now that they pass LaTeX.  Still ugly, but that can
be fixed.

22 years agoLots of markup changes. This is still pretty sad, but passes LaTeX
Fred Drake [Mon, 23 Dec 2002 18:58:06 +0000 (18:58 +0000)]
Lots of markup changes.  This is still pretty sad, but passes LaTeX
and is mostly readable.

22 years agoMove the examples of concrete tzinfo classes to a separate file, so the
Fred Drake [Mon, 23 Dec 2002 18:52:19 +0000 (18:52 +0000)]
Move the examples of concrete tzinfo classes to a separate file, so the
verbatim environment does not bollux page breaking.

22 years agoMake this script execute using pythonw
Tony Lownds [Mon, 23 Dec 2002 18:36:14 +0000 (18:36 +0000)]
Make this script execute using pythonw

22 years agoRevert to revision 1.3; Mac OS X has a platform specific startup script, macosx_main.py
Tony Lownds [Mon, 23 Dec 2002 18:12:41 +0000 (18:12 +0000)]
Revert to revision 1.3; Mac OS X has a platform specific startup script, macosx_main.py

22 years agoMove boolcheck to PyShell
Tony Lownds [Mon, 23 Dec 2002 18:11:28 +0000 (18:11 +0000)]
Move boolcheck to PyShell

22 years agoAdded docs for (draft) pkgutil module.
Fred Drake [Mon, 23 Dec 2002 16:53:59 +0000 (16:53 +0000)]
Added docs for (draft) pkgutil module.

22 years agoOops. Roll back that last change. It wasn't ready for release. :-(
Guido van Rossum [Mon, 23 Dec 2002 16:51:42 +0000 (16:51 +0000)]
Oops. Roll back that last change.  It wasn't ready for release. :-(

22 years agoDon't rebind True and False.
Tim Peters [Mon, 23 Dec 2002 16:50:58 +0000 (16:50 +0000)]
Don't rebind True and False.

22 years agoAdd warning for assignment to None, True and False. This is patch
Guido van Rossum [Mon, 23 Dec 2002 16:35:23 +0000 (16:35 +0000)]
Add warning for assignment to None, True and False.  This is patch
549213 by Jeremy (checking in for him since he's away and busy).

22 years agoLast week we discussed adding this module to the standard library.
Guido van Rossum [Mon, 23 Dec 2002 16:30:00 +0000 (16:30 +0000)]
Last week we discussed adding this module to the standard library.
Here's a draft.  I have no immediate use for it, but I'd like this to
be available for experimentation.  I may withdraw it or change it
radically up to and including the release of Python 2.3b1.

22 years agocall_utc_tzinfo_method(): Got rid of the label and the gotos.
Tim Peters [Mon, 23 Dec 2002 16:17:39 +0000 (16:17 +0000)]
call_utc_tzinfo_method():  Got rid of the label and the gotos.

22 years agoBump version number
Andrew M. Kuchling [Mon, 23 Dec 2002 12:50:50 +0000 (12:50 +0000)]
Bump version number

22 years agoGot rid of Mac/Relnotes, and started on mac-specific release notes in NEWS.
Jack Jansen [Mon, 23 Dec 2002 11:25:49 +0000 (11:25 +0000)]
Got rid of Mac/Relnotes, and started on mac-specific release notes in NEWS.

22 years agoAlt-H was conflicting with the Help menu on Windows.
Kurt B. Kaiser [Mon, 23 Dec 2002 03:35:27 +0000 (03:35 +0000)]
Alt-H was conflicting with the Help menu on Windows.

Let's try Alt-2....

22 years agoM MANIFEST.in
Kurt B. Kaiser [Mon, 23 Dec 2002 03:31:49 +0000 (03:31 +0000)]
M MANIFEST.in
M PyShell.py
M idlever.py
M setup.py

1. Update MANIFEST.in to include all non-pure Python files
2. PyShell and idlever reflect Rev 0.9a0
3. setup.py modified to install IDLE as a collection of modules with
   a .pth file living at the idlelib level in site-packages.  This was
   done to make it easier to run from the source directory prior to
   installing IDLE.  This approach may change back to the package
   technique depending on what happens with the Mac installation
   development.

22 years agoI give up: unless I write my own strftime by hand, datetime just can't
Tim Peters [Sun, 22 Dec 2002 20:58:42 +0000 (20:58 +0000)]
I give up:  unless I write my own strftime by hand, datetime just can't
be trusted with years before 1900, so now we raise ValueError if a date or
datetime or datetimetz .strftime() method is called with a year before
1900.

22 years agoPython's strftime implementation does strange things with the year,
Tim Peters [Sun, 22 Dec 2002 20:34:46 +0000 (20:34 +0000)]
Python's strftime implementation does strange things with the year,
such that the datetime tests failed if the envar PYTHON2K was set.
This is an utter mess, and the datetime module's strftime functions
inherit it.  I suspect that, regardless of the PYTHON2K setting, and
regardless of platform limitations, the datetime strftime wrappers
will end up delivering nonsense results (or bogus exceptions) for
any year before 1900.  I should probably just refuse to accept years
earlier than that -- else we'll have to implement strftime() by hand.

22 years agoclassify_object(): Renamed more meaningfully, to classify_utcoffset().
Tim Peters [Sun, 22 Dec 2002 18:10:22 +0000 (18:10 +0000)]
classify_object():  Renamed more meaningfully, to classify_utcoffset().
Also changed logic so that instances of user-defined subclasses of date,
time, and datetime are called OFFSET_NAIVE instead of OFFSET_UNKNOWN.

22 years agoImplemented a Wiki suggestion:
Tim Peters [Sun, 22 Dec 2002 03:43:39 +0000 (03:43 +0000)]
Implemented a Wiki suggestion:

{timetz,datetimetz}.{utcoffset,dst}() now return a timedelta (or None)
instead of an int (or None).

tzinfo.{utcoffset,dst)() can now return a timedelta (or an int, or None).

Curiously, this was much easier to do in the C implementation than in the
Python implementation (which lives in the Zope3 code tree) -- the C code
already had lots of hair to extract C ints from offset objects, and used
C ints internally.

22 years agoAdd configuration for packaging.
Kurt B. Kaiser [Sun, 22 Dec 2002 01:48:28 +0000 (01:48 +0000)]
Add configuration for packaging.

22 years agoWhen IDLE is installed and run from a startup script, the script's
Kurt B. Kaiser [Sat, 21 Dec 2002 21:39:11 +0000 (21:39 +0000)]
When IDLE is installed and run from a startup script, the script's
directory becomes sys.path[0].  What is wanted is the directory from which
IDLE was called.

Insert the current working directory in the path if it isn't there
already.

22 years agoM PyShell.py
Kurt B. Kaiser [Sat, 21 Dec 2002 21:03:06 +0000 (21:03 +0000)]
M PyShell.py
M idle
M setup.py

To be able to run from the source directory or from an installed version
of IDLE, and also to allow the subprocess to find run(), Python needs to
have the idlelib package on its path.

1. Modify setup.py to supply a .pth file living at same level as idlelib
2. Move boolcheck to PyShell.py
3. Remove boolcheck and path setting code from the "idle" script

22 years agoUse wcscoll for _locale.strcoll if available.
Martin v. Löwis [Sat, 21 Dec 2002 18:34:06 +0000 (18:34 +0000)]
Use wcscoll for _locale.strcoll if available.

22 years agoAdded test to ensure that non-string result from dst() raises TypeError.
Tim Peters [Sat, 21 Dec 2002 17:44:07 +0000 (17:44 +0000)]
Added test to ensure that non-string result from dst() raises TypeError.

22 years agoChanges sufficient so that pickles written by the Python implementation
Tim Peters [Sat, 21 Dec 2002 05:04:42 +0000 (05:04 +0000)]
Changes sufficient so that pickles written by the Python implementation
can be read by the C implementation.  I don't really understand this.

22 years agoUpdate the setup file:
Kurt B. Kaiser [Fri, 20 Dec 2002 22:40:30 +0000 (22:40 +0000)]
Update the setup file:
1. Make it easier to change the package and script installation names.
2. Update the text files transferred to include the .def and new .txt
   files.
3. Update the description and long description, change email to
   python-dev, update the url to point at sourceforge.
4. Rename the build and install classes for clarity.

22 years agoFix an error message in the _winreg module. The error message referred
Thomas Heller [Fri, 20 Dec 2002 20:13:35 +0000 (20:13 +0000)]
Fix an error message in the _winreg module. The error message referred
to a constant in the 'win32con' module, but this constant is also
defined in the _winreg module itself.

Bugfix candidate.

22 years agoRemove debugging statement checked in by accident, ah, carelessness.
Kurt B. Kaiser [Fri, 20 Dec 2002 19:37:09 +0000 (19:37 +0000)]
Remove debugging statement checked in by accident, ah, carelessness.

22 years ago"'foo' in str" not implemented in Python 2.2, only single character lookup
Kurt B. Kaiser [Fri, 20 Dec 2002 17:18:03 +0000 (17:18 +0000)]
"'foo' in str" not implemented in Python 2.2, only single character lookup

22 years agoFixed longstanding bug in the description of strftime's %W code.
Tim Peters [Fri, 20 Dec 2002 17:15:39 +0000 (17:15 +0000)]
Fixed longstanding bug in the description of strftime's %W code.

22 years ago*** empty log message ***
Tony Lownds [Fri, 20 Dec 2002 04:26:00 +0000 (04:26 +0000)]
*** empty log message ***

22 years agoUpdate way a subprocess is launched for Mac OS X.
Tony Lownds [Fri, 20 Dec 2002 04:24:43 +0000 (04:24 +0000)]
Update way a subprocess is launched for Mac OS X.

Another applet mechanism has been developed for Python on Mac OS X and
trying to use the -c "__import__('run').main()" trick is just not working.

macosx_main.py is a new file which should be used as the startup file for
Mac OS X applet bundles. This startup file understands a -p option, which
when seen will start run.main(). When running as an applet, this seems like
the best approach.