]> granicus.if.org Git - python/log
python
22 years agoAdd a pychecker suppression.
Barry Warsaw [Sat, 28 Sep 2002 20:25:15 +0000 (20:25 +0000)]
Add a pychecker suppression.

22 years ago(py-pychecker-run): Fix calculation of last command to include the
Barry Warsaw [Sat, 28 Sep 2002 18:17:56 +0000 (18:17 +0000)]
(py-pychecker-run): Fix calculation of last command to include the
filename of the current buffer.

22 years agoUse True/False everywhere.
Barry Warsaw [Sat, 28 Sep 2002 18:04:55 +0000 (18:04 +0000)]
Use True/False everywhere.

22 years agoAdded a feature suggested by Martin v Loewis, where a new header
Barry Warsaw [Sat, 28 Sep 2002 17:47:56 +0000 (17:47 +0000)]
Added a feature suggested by Martin v Loewis, where a new header
encoding flag SHORTEST means to return the shortest encoding between
base64 and qp.  This is used for the header_enc for utf-8.  SHORTEST
isn't legal for body_enc.

Also some code cleanup:

- use True/False everywhere
- use == instead of `is' in a few places
- added _unicode() and make consistent the "is unicode" checks
- update docstrings

22 years agoAllow internal whitespace in keys.
Fred Drake [Fri, 27 Sep 2002 16:21:18 +0000 (16:21 +0000)]
Allow internal whitespace in keys.
Closes SF bug #583248; backporting to r22-maint branch.

22 years agoitems(): New method, provided by Gustavo Niemeyer in SF bug #545096.
Fred Drake [Fri, 27 Sep 2002 15:49:56 +0000 (15:49 +0000)]
items():  New method, provided by Gustavo Niemeyer in SF bug #545096.

22 years agoAdded regression test for SF bug #561822: has_option() case sensitive.
Fred Drake [Fri, 27 Sep 2002 15:35:23 +0000 (15:35 +0000)]
Added regression test for SF bug #561822: has_option() case sensitive.

22 years agohas_option(): Use the option name transform consistently.
Fred Drake [Fri, 27 Sep 2002 15:33:11 +0000 (15:33 +0000)]
has_option():  Use the option name transform consistently.
Closes SF bug #561822.

Integrate the "code cleanup and general bug fix patch" (SF bug #545096),
contributed by Gustavo Niemeyer.  This is the portion of that patch that
does not add new functionality.

22 years agoRevert Rev 1.6
Kurt B. Kaiser [Fri, 27 Sep 2002 00:34:31 +0000 (00:34 +0000)]
Revert Rev 1.6
"Merge Py Idle changes:
Rev 1.7 [Python-idle] loewis
Convert characters from the locale's encoding on output.
Reject characters outside the locale's encoding on input."

Not compatible with Python 2.2.1.  Forwardport as a SF patch.

22 years agoFix Bug 612886 copy/paste menu items fail
Kurt B. Kaiser [Thu, 26 Sep 2002 22:13:22 +0000 (22:13 +0000)]
Fix Bug 612886 copy/paste menu items fail
(cut vs. Cut etc.)
Fix Bug 613006 Ctrl-x Unix Binding Clears Selection
(do-nothing does something :)
Leave some debugging prints behind, commented out
M EditorWindow.py
M config-keys.def
M configHandler.py

22 years agotry executing 'less' in a parenthesized subshell - prevents systems like
Skip Montanaro [Thu, 26 Sep 2002 21:44:57 +0000 (21:44 +0000)]
try executing 'less' in a parenthesized subshell - prevents systems like
Solaris from squawking if less isn't available.  See
http://python.org/sf/612111 for details.

22 years agoOops, must convert hyphens to underscores in keys of aliases dict.
Guido van Rossum [Thu, 26 Sep 2002 20:08:23 +0000 (20:08 +0000)]
Oops, must convert hyphens to underscores in keys of aliases dict.

22 years agotest_unicode_error(): Comment this test out, since we still have
Barry Warsaw [Thu, 26 Sep 2002 17:21:53 +0000 (17:21 +0000)]
test_unicode_error(): Comment this test out, since we still have
controversy.

22 years agoFixing some RFC 2231 related issues as reported in the Spambayes
Barry Warsaw [Thu, 26 Sep 2002 17:21:02 +0000 (17:21 +0000)]
Fixing some RFC 2231 related issues as reported in the Spambayes
project, and with assistance from Oleg Broytmann.  Specifically,
added some new tests to make sure we handle RFC 2231 encoded
parameters correctly.  Two new data files were added which contain RFC
2231 encoded parameters.

22 years agoFixing some RFC 2231 related issues as reported in the Spambayes
Barry Warsaw [Thu, 26 Sep 2002 17:19:34 +0000 (17:19 +0000)]
Fixing some RFC 2231 related issues as reported in the Spambayes
project, and with assistance from Oleg Broytmann.  Specifically,

get_param(), get_params(): Document that these methods may return
parameter values that are either strings, or 3-tuples in the case of
RFC 2231 encoded parameters.  The application should be prepared to
deal with such return values.

get_boundary(): Be prepared to deal with RFC 2231 encoded boundary
parameters.  It makes little sense to have boundaries that are
anything but ascii, so if we get back a 3-tuple from get_param() we
will decode it into ascii and let any failures percolate up.

get_content_charset(): New method which treats the charset parameter
just like the boundary parameter in get_boundary().  Note that
"get_charset()" was already taken to return the default Charset
object.

get_charsets(): Rewrite to use get_content_charset().

22 years agoPatch for the DEC Alpha under Linux, by Lee Busby.
Guido van Rossum [Thu, 26 Sep 2002 16:52:02 +0000 (16:52 +0000)]
Patch for the DEC Alpha under Linux, by Lee Busby.

22 years agoDisable big charsets in UCS-4 builds. Works around #599377.
Martin v. Löwis [Thu, 26 Sep 2002 16:39:20 +0000 (16:39 +0000)]
Disable big charsets in UCS-4 builds. Works around #599377.
Will backport to 2.2

22 years agoAdd encoding name in LookupError. Fixes #615013. Will backport to 2.2.
Martin v. Löwis [Thu, 26 Sep 2002 16:01:24 +0000 (16:01 +0000)]
Add encoding name in LookupError. Fixes #615013. Will backport to 2.2.

22 years agoAgain, I did check in too many changes. Sorry.
Thomas Heller [Thu, 26 Sep 2002 13:19:48 +0000 (13:19 +0000)]
Again, I did check in too many changes. Sorry.

22 years agoAdd deprecation notices to the documentation to reflect recent additions to
Fred Drake [Wed, 25 Sep 2002 22:13:27 +0000 (22:13 +0000)]
Add deprecation notices to the documentation to reflect recent additions to
PEP 4.

22 years ago__version__: Bump to 2.4
Barry Warsaw [Wed, 25 Sep 2002 22:07:50 +0000 (22:07 +0000)]
__version__: Bump to 2.4

Move the imports of Parser and Message inside the
message_from_string() and message_from_file() functions.  This way
just "import email" won't suck in most of the submodules of the
package.

Note: this will break code that relied on "import email" giving you a
bunch of the submodules, but that was never documented and should not
have been relied on.

22 years agoUpdate some comments about what version of the documentation tools
Fred Drake [Wed, 25 Sep 2002 21:41:22 +0000 (21:41 +0000)]
Update some comments about what version of the documentation tools
code to use.

22 years agoBack out previous change.
Neal Norwitz [Wed, 25 Sep 2002 21:26:19 +0000 (21:26 +0000)]
Back out previous change.
Quotes aren't necessary in case statements.  Spotted by Neil Schemenauer.

22 years agoFix SF # 614587, configure.in patch from Tim Rice
Neal Norwitz [Wed, 25 Sep 2002 20:38:34 +0000 (20:38 +0000)]
Fix SF # 614587, configure.in patch from Tim Rice

Need to quote $GCC in case it isn't set.

22 years agoSF bug 613233: test_threadedtempfile hangs
Tim Peters [Wed, 25 Sep 2002 20:32:28 +0000 (20:32 +0000)]
SF bug 613233: test_threadedtempfile hangs

A possibility to deadlock (on the hidden import lock) was created here
in 2.3, seemingly when tempfile.py started to call functions in
random.py.  The cure is "the usual":  don't spawn threads as a side
effect of importing, when the spawned threads themselves do imports
(directly or indirectly), and the code that spawned the threads is
waiting for the threads to finish (they can't finish, because they're
waiting for the import lock the spawner still holds).  Worming around
this is why the "test_main" mechanism was introduced in regrest, so
it's a straightforward fix.

NOT a bugfix candidate; the problem was introduced in 2.3.

22 years agoFix SF # 591713, Fix "file:" URL to have right no. of /'s, by Bruce Atherton
Neal Norwitz [Wed, 25 Sep 2002 19:20:12 +0000 (19:20 +0000)]
Fix SF # 591713, Fix "file:" URL to have right no. of /'s, by Bruce Atherton

Add a test too.  urljoin() would make file:/tmp/foo instead of file:///tmp/foo

Bugfix candidate, I will backport.

22 years agoFinish & commit some docs for markup that's been in use for a while.
Fred Drake [Wed, 25 Sep 2002 18:44:21 +0000 (18:44 +0000)]
Finish & commit some docs for markup that's been in use for a while.

22 years agoAdd yet another alias for ASCII found in the field. Will backport to
Guido van Rossum [Wed, 25 Sep 2002 16:44:34 +0000 (16:44 +0000)]
Add yet another alias for ASCII found in the field.  Will backport to
2.2.2.

22 years agoAdd regression test for a bug found in the version of the markupbase
Fred Drake [Wed, 25 Sep 2002 16:29:17 +0000 (16:29 +0000)]
Add regression test for a bug found in the version of the markupbase
module used in the Zope TAL implementation.  The bug was already fixed
in the Python standard library, but the regression test would be good
to keep around.

22 years agoDisable building of the fpectl module -- it's dangerous or useless
Guido van Rossum [Wed, 25 Sep 2002 15:02:44 +0000 (15:02 +0000)]
Disable building of the fpectl module -- it's dangerous or useless
except in the hands of experts.  Will backport to 2.2.2.

22 years agoDisable building of the fpectl module -- it's dangerous or useless
Guido van Rossum [Wed, 25 Sep 2002 14:59:57 +0000 (14:59 +0000)]
Disable building of the fpectl module -- it's dangerous or useless
except in the hands of experts.  Will backport to 2.2.2.

22 years agoOk, read the source this time: PyErr_SetObject() does not steal a reference.
Fred Drake [Wed, 25 Sep 2002 02:34:27 +0000 (02:34 +0000)]
Ok, read the source this time: PyErr_SetObject() does not steal a reference.

22 years agoAnother try at clarifying what goes into and comes out of Unicode objects.
Fred Drake [Tue, 24 Sep 2002 21:09:13 +0000 (21:09 +0000)]
Another try at clarifying what goes into and comes out of Unicode objects.
Document the indices() method of slice objects.

22 years agoAnother try at clarifying what goes into and comes out of Unicode objects.
Fred Drake [Tue, 24 Sep 2002 21:08:37 +0000 (21:08 +0000)]
Another try at clarifying what goes into and comes out of Unicode objects.

22 years agoOn Windows, select() does not accept empty lists.
Thomas Heller [Tue, 24 Sep 2002 17:30:31 +0000 (17:30 +0000)]
On Windows, select() does not accept empty lists.
Patch suggested by Guido, fixes SF item 611464.

Bugfix candidate, will backport to release22-maint myself.

22 years agoI did fix too much - including winsock.h is sufficient.
Thomas Heller [Tue, 24 Sep 2002 17:03:26 +0000 (17:03 +0000)]
I did fix too much - including winsock.h is sufficient.

22 years agoOn Windows, call WSAGetLastError() to retrieve the error number.
Thomas Heller [Tue, 24 Sep 2002 16:51:00 +0000 (16:51 +0000)]
On Windows, call WSAGetLastError() to retrieve the error number.

Bugfix candidate, will backport to release22-maint myself.

22 years agoClarify documentation for PyErr_SetObject() to describe the reference
Fred Drake [Tue, 24 Sep 2002 16:45:16 +0000 (16:45 +0000)]
Clarify documentation for PyErr_SetObject() to describe the reference
count behavior.

22 years agoBe more careful with the type of the xmlhandlersetter; it takes an
Fred Drake [Tue, 24 Sep 2002 16:24:54 +0000 (16:24 +0000)]
Be more careful with the type of the xmlhandlersetter; it takes an
XML_Parser, which happens to be a pointer type, not an XML_Parser*.
This generated warnings when compiled with Expat 1.95.5, which no
longer defines XML_Parser to be void*.

22 years agoRemove spurious period.
Fred Drake [Tue, 24 Sep 2002 15:32:04 +0000 (15:32 +0000)]
Remove spurious period.

22 years agoClarify that len() of a Unicode string returns the number of storage units,
Fred Drake [Tue, 24 Sep 2002 13:57:21 +0000 (13:57 +0000)]
Clarify that len() of a Unicode string returns the number of storage units,
not abstract characters.

22 years agoAdd cast to avoid compiler warning.
Marc-André Lemburg [Tue, 24 Sep 2002 09:32:14 +0000 (09:32 +0000)]
Add cast to avoid compiler warning.

22 years agoBrett's fixes for various bugs and coding issues. Closes SF patch #
Barry Warsaw [Mon, 23 Sep 2002 22:46:49 +0000 (22:46 +0000)]
Brett's fixes for various bugs and coding issues.  Closes SF patch #
593560, with some minor cleanups, line folding and whitespace
normalization by Barry.

22 years agoTweak description of PortableUnixMailbox: "From " lines are actually
Greg Ward [Mon, 23 Sep 2002 19:32:42 +0000 (19:32 +0000)]
Tweak description of PortableUnixMailbox: "From " lines are actually
quoted (or mangled) *at* delivery-time, not "well before" it.  (At least
that's how Exim and qmail work.)

22 years agoAttila Babo (turtle.py).
Guido van Rossum [Mon, 23 Sep 2002 17:05:02 +0000 (17:05 +0000)]
Attila Babo (turtle.py).

22 years agoAdd the bulk of SF patch 595111 by Attila Babo.
Guido van Rossum [Mon, 23 Sep 2002 16:55:05 +0000 (16:55 +0000)]
Add the bulk of SF patch 595111 by Attila Babo.

This adds new methods heading(), setheading(), position(),
window_width(), window_height(), setx(), and sety(), to make this more
functionality-compatible with Logo turtle graphics (Attila's last
words, not mine :-).  I had to fix the sety() code which was broken in
Attila's patch.

I'm not adopting the functionality change that Attila claimed was a
bugfix (no output without tracing), because I disagree that it's a
bug.

22 years agoWarn about binutils 2.13 on Solaris.
Guido van Rossum [Mon, 23 Sep 2002 14:02:18 +0000 (14:02 +0000)]
Warn about binutils 2.13 on Solaris.

22 years agoFix bug I created during merge from Python-idle.
Kurt B. Kaiser [Mon, 23 Sep 2002 04:10:37 +0000 (04:10 +0000)]
Fix bug I created during merge from Python-idle.

Also, decided IDENTCHARS is better as global, after all.

22 years agoBlank line missing.
Tony Lownds [Mon, 23 Sep 2002 01:11:57 +0000 (01:11 +0000)]
Blank line missing.

22 years agoWork around Mac OS X transient window issues
Tony Lownds [Mon, 23 Sep 2002 01:04:05 +0000 (01:04 +0000)]
Work around Mac OS X transient window issues

22 years agoWork around Mac OS X platform encoding issues.
Tony Lownds [Mon, 23 Sep 2002 01:01:20 +0000 (01:01 +0000)]
Work around Mac OS X platform encoding issues.

22 years agoAdded new standard keybinding set for Macs.
Tony Lownds [Mon, 23 Sep 2002 00:57:10 +0000 (00:57 +0000)]
Added new standard keybinding set for Macs.

22 years agoUpdate Canvas before computing width. Draw turtle at end of drawing circle.
Martin v. Löwis [Sun, 22 Sep 2002 13:00:26 +0000 (13:00 +0000)]
Update Canvas before computing width. Draw turtle at end of drawing circle.
Fixes #612595. Will backport to 2.2.

22 years agoBack out multifile.py 1.19 and 1.20. Fixes #514676.
Martin v. Löwis [Sun, 22 Sep 2002 09:01:08 +0000 (09:01 +0000)]
Back out multifile.py 1.19 and 1.20. Fixes #514676.

22 years agoreference the new NEWS.help file
Skip Montanaro [Fri, 20 Sep 2002 17:08:52 +0000 (17:08 +0000)]
reference the new NEWS.help file

22 years agobrief help file for people editing Misc/NEWS
Skip Montanaro [Fri, 20 Sep 2002 17:08:37 +0000 (17:08 +0000)]
brief help file for people editing Misc/NEWS

22 years agoReST-ification of the NEWS file. While the total number of changes are
Skip Montanaro [Fri, 20 Sep 2002 14:16:59 +0000 (14:16 +0000)]
ReST-ification of the NEWS file.  While the total number of changes are
fairly large, most are caused by reformatting section and subsection
headings.  The changes fall into the following categories:

    * reformatted section and subsection headers.

    * escaped isolated asterisks which would be interpreted as starting bold
      or italic text (e.g. "void (*)(PyObject \*)").

    * quoted stuff that looks like internal references but isn't
      (e.g. ``PyCmp_``).

    * changed visually balanced quotes to just use apostrophes
      (e.g. "'string'" instead of "`string'").

    * introduced and indenting multiline chunks of code.

    * created one table (search for "New codecs").

22 years agoFiddle comments and variable names in whichmodule().
Jeremy Hylton [Thu, 19 Sep 2002 23:00:12 +0000 (23:00 +0000)]
Fiddle comments and variable names in whichmodule().

22 years agowhichmodule() should skip dummy package entries in sys.modules.
Jeremy Hylton [Thu, 19 Sep 2002 22:57:26 +0000 (22:57 +0000)]
whichmodule() should skip dummy package entries in sys.modules.

This fixes the charming, but unhelpful error message for
>>> pickle.dumps(type.__new__)
Can't pickle <built-in method __new__ of type object at 0x812a440>: it's not the same object as datetime.math.__new__

Bugfix candidate.

22 years agoSF Bug #611225.
Kurt B. Kaiser [Thu, 19 Sep 2002 19:54:55 +0000 (19:54 +0000)]
SF Bug #611225.
Bring idle.pyw into alignment with idle.py, eliminate calling deleted
module IdleConf.py

22 years agoFix a problem in site.py which triggers in case sys.path is empty.
Marc-André Lemburg [Thu, 19 Sep 2002 11:11:27 +0000 (11:11 +0000)]
Fix a problem in site.py which triggers in case sys.path is empty.

Bugfix candidate for 2.2.2.

22 years agoPatch #484994: Improve PanedWindow.
Martin v. Löwis [Thu, 19 Sep 2002 08:12:55 +0000 (08:12 +0000)]
Patch #484994: Improve PanedWindow.

22 years agoPatch #608999: Fix portability problems with MIPSPro 7.x
Martin v. Löwis [Thu, 19 Sep 2002 08:03:21 +0000 (08:03 +0000)]
Patch #608999: Fix portability problems with MIPSPro 7.x

22 years agoSuppress hex/oct constant warnings in <string> on 64-bit platforms,
Guido van Rossum [Thu, 19 Sep 2002 00:42:16 +0000 (00:42 +0000)]
Suppress hex/oct constant warnings in <string> on 64-bit platforms,
because there test_grammar.py pulls them out of strings there.

22 years agoTwo more cases of switch(PySequence_Size()) without checking for case -1.
Neal Norwitz [Wed, 18 Sep 2002 22:37:17 +0000 (22:37 +0000)]
Two more cases of switch(PySequence_Size()) without checking for case -1.
(Same problem as last checkin for SF bug 610610)
Need to clear the error and proceed.

Backport candidate

22 years agoOpen the test files in binary mode so the \r\n files won't cause
Barry Warsaw [Wed, 18 Sep 2002 22:17:57 +0000 (22:17 +0000)]
Open the test files in binary mode so the \r\n files won't cause
failures on Windows.  Closes SF bug # 609988.

22 years agoMerge Py Idle:
Kurt B. Kaiser [Wed, 18 Sep 2002 17:30:36 +0000 (17:30 +0000)]
Merge Py Idle:
Removing config-mac.txt, not used in Idlefork

22 years agoMerge Py Idle changes:
Kurt B. Kaiser [Wed, 18 Sep 2002 17:07:05 +0000 (17:07 +0000)]
Merge Py Idle changes:
Missed adding "import types" while merging PyShell by hand....

22 years agoAdd MJ.
Guido van Rossum [Wed, 18 Sep 2002 04:09:27 +0000 (04:09 +0000)]
Add MJ.

22 years agoFix SF bug 610610 (reported by Martijn Pieters, diagnosed by Neal Norwitz).
Guido van Rossum [Wed, 18 Sep 2002 04:06:32 +0000 (04:06 +0000)]
Fix SF bug 610610 (reported by Martijn Pieters, diagnosed by Neal Norwitz).

The switch in Exception__str__ didn't clear the error if
PySequence_Size() raised an exception.  Added a case -1 which clears
the error and falls through to the default case.

Definite backport candidate (this dates all the way to Python 2.0).

22 years agoMerge Py Idle changes:
Kurt B. Kaiser [Wed, 18 Sep 2002 03:30:12 +0000 (03:30 +0000)]
Merge Py Idle changes:

Rev 1.4 fdrake
Use string.ascii_letters instead of string.letters (SF bug #226706)

Rev 1.5 doerwalter
(string methods)

22 years agoMerge Py Idle changes:
Kurt B. Kaiser [Wed, 18 Sep 2002 03:26:47 +0000 (03:26 +0000)]
Merge Py Idle changes:

Rev 1.6 GvR
Finally fix SF bug #441172, using a variant of patch ##443626:
canceling an edit operation would not revert the value of the field.
The fix takes care to destroy the Entry object, as suggested in the
patch.

Rev 1.7 Geiger Ho / GvR
(previously applied - Idlefork Rev 1.3)

Rev 1.8 doerwalter
(string methods)

22 years agoMerge Py Idle changes:
Kurt B. Kaiser [Wed, 18 Sep 2002 03:17:38 +0000 (03:17 +0000)]
Merge Py Idle changes:

Rev 1.3 nnorwitz
Remove unnecessary imports

22 years agoMerge Py Idle changes:
Kurt B. Kaiser [Wed, 18 Sep 2002 03:15:56 +0000 (03:15 +0000)]
Merge Py Idle changes:

Rev 1.17 doerwalter
(string methods)

22 years agoMerge PyIdle changes:
Kurt B. Kaiser [Wed, 18 Sep 2002 03:14:11 +0000 (03:14 +0000)]
Merge PyIdle changes:
Rev 1.3 doerwalter
(string methods)

22 years agoMerge Py Idle changes:
Kurt B. Kaiser [Wed, 18 Sep 2002 03:12:18 +0000 (03:12 +0000)]
Merge Py Idle changes:

Rev 1.2 doerwalter
(string methods)

22 years agoMerge Py Idle changes:
Kurt B. Kaiser [Wed, 18 Sep 2002 03:10:10 +0000 (03:10 +0000)]
Merge Py Idle changes:

Rev 1.3 tim_one
Convert a pile of obvious "yes/no" functions to return bool.

22 years agoMerge Py Idle changes:
Kurt B. Kaiser [Wed, 18 Sep 2002 03:05:19 +0000 (03:05 +0000)]
Merge Py Idle changes:

Rev 1.11 GvR
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.

Rev 1.12 rhettinger
(skip, done differently in Idlefork)

Rev 1.13 time_one
(skip, NA)

22 years agoMerge Py Idle changes:
Kurt B. Kaiser [Wed, 18 Sep 2002 02:56:10 +0000 (02:56 +0000)]
Merge Py Idle changes:

Rev 1.5 tim_one
Convert a pile of obvious "yes/no" functions to return bool

Rev 1.6 GvR
Rev 1.7 Gvr
(Already merged Idlefork ReplaceDialog.py 1.3.2.1 and 1.4)

Rev 1.8 doerwalter
(string methods)

Rev 1.9 nnorwitz
Remove unnecessary imports

22 years agoMerge Py Idle changes:
Kurt B. Kaiser [Wed, 18 Sep 2002 02:29:59 +0000 (02:29 +0000)]
Merge Py Idle changes:

Rev 1.35 fdrake
Use string.ascii_letters instead of string.letters (SF bug #226706).
Move computation of sets of characters out of the body of the function
that uses them.

Rev 1.36 tim_one
Convert a pile of obvious "yes/no" functions to return bool

Rev 1.37
(skip, done differently in Idlefork)

Rev 1.38 loewis
Patch #590913: PEP 263 support.

Rev 1.39 loewis
Convert characters from the locale's encoding on output.
Reject characters outside the locale's encoding on input.

Rev 1.40 doerwalter
(string methods)

Rev 1.41
(skipped, done by GvR in rpc)

22 years agoThe SGI demos are gone.
Guido van Rossum [Tue, 17 Sep 2002 20:58:59 +0000 (20:58 +0000)]
The SGI demos are gone.

22 years agoRemove the SGI demos. These were all ancient and nobody cared enough.
Guido van Rossum [Tue, 17 Sep 2002 20:55:57 +0000 (20:55 +0000)]
Remove the SGI demos.  These were all ancient and nobody cared enough.

22 years agomigrate news about 2.1 and earlier releases from NEWS to HISTORY in
Skip Montanaro [Tue, 17 Sep 2002 20:55:31 +0000 (20:55 +0000)]
migrate news about 2.1 and earlier releases from NEWS to HISTORY in
preparation for ReST-ification of NEWS.  (Also tests checkin ability
from my new Powerbook.  woohoo!)

22 years agoRemove the SGI demos. These were all ancient and nobody cared enough.
Guido van Rossum [Tue, 17 Sep 2002 20:36:40 +0000 (20:36 +0000)]
Remove the SGI demos.  These were all ancient and nobody cared enough.

22 years agowrite(): Special case the common situation of a stream that's only
Fred Drake [Tue, 17 Sep 2002 18:10:34 +0000 (18:10 +0000)]
write():  Special case the common situation of a stream that's only
          being used to dump output (no seeks), so we can avoid a lot
          of extra checks being made.

22 years agoFix typos: despatcher -> dispatcher.
Thomas Heller [Tue, 17 Sep 2002 15:19:12 +0000 (15:19 +0000)]
Fix typos: despatcher -> dispatcher.

22 years agoDeal with NULL fields in mkpwent.
Martin v. Löwis [Tue, 17 Sep 2002 09:34:06 +0000 (09:34 +0000)]
Deal with NULL fields in mkpwent.

22 years agoDeal with a NULL gr_passwd. Reported by Anders Qvist.
Martin v. Löwis [Tue, 17 Sep 2002 07:05:25 +0000 (07:05 +0000)]
Deal with a NULL gr_passwd. Reported by Anders Qvist.

22 years agoMerge Py Idle changes:
Kurt B. Kaiser [Tue, 17 Sep 2002 03:55:13 +0000 (03:55 +0000)]
Merge Py Idle changes:
Rev 1.10 doerwalter
(string methods)

22 years agoMerge Py Idle changes:
Kurt B. Kaiser [Tue, 17 Sep 2002 03:43:38 +0000 (03:43 +0000)]
Merge Py Idle changes:
Rev 1.6 doerwalter
(string methods)

22 years agoMerge Py Idle changes:
Kurt B. Kaiser [Tue, 17 Sep 2002 03:40:47 +0000 (03:40 +0000)]
Merge Py Idle changes:
Rev 1.7 loewis
Convert characters from the locale's encoding on output.
Reject characters outside the locale's encoding on input.

22 years agoBack out the previous change. It doesn't save any space on 64-bit
Guido van Rossum [Tue, 17 Sep 2002 03:27:02 +0000 (03:27 +0000)]
Back out the previous change.  It doesn't save any space on 64-bit
platforms.

22 years agoRearrange the members of struct _node to put shorter fields towards
Guido van Rossum [Tue, 17 Sep 2002 03:24:09 +0000 (03:24 +0000)]
Rearrange the members of struct _node to put shorter fields towards
the end, in the hope of saving some bytes on 64-bit machines.  (Too
bad n_nchildren can't be made an unsigned short, but
test/test_longexp.py specifically tests for more than 2**16 subtrees
at one level.)

I don't expect any binary compatibility issues here, unless someone
has an old binary of parsermodule.so saved away.

22 years agoMerge Py Idle changes:
Kurt B. Kaiser [Mon, 16 Sep 2002 22:16:05 +0000 (22:16 +0000)]
Merge Py Idle changes:
Rev 1.4 tim_one
Convert a pile of obvious "yes/no" functions to return bool

22 years agoMerge Py Idle changes:
Kurt B. Kaiser [Mon, 16 Sep 2002 22:09:19 +0000 (22:09 +0000)]
Merge Py Idle changes:
Rev 1.5  doerwalter
string methods

22 years agoMerge Py Idle changes:
Kurt B. Kaiser [Mon, 16 Sep 2002 22:03:37 +0000 (22:03 +0000)]
Merge Py Idle changes:
Rev 1.5 tim_one
Convert a pile of obvious "yes/no" functions to return bool.

Rev 1.6 gvanrossum
(partially merged previously, move line outside try: block)

Provisional fix for writefile() [SF bug # 541730].

The problem was that an exception can occur in the text.get() call or
in the write() call, when the text buffer contains non-ASCII
characters.  This causes the previous contents of the file to be lost.

The provisional fix is to call str(self.text.get(...)) *before*
opening the file, so that if the exception occurs, we never open the
file.

Two orthogonal better solutions have to wait for policy decisions:

1. We could try to encode the data as Latin-1 or as UTF-8; but that
   would require IDLE to grow a notion of file encoding which requires
   more thought.

2. We could make backups before overwriting a file.  This requires
   more thought because it needs to be fast and cross-platform and
   configurable.

Rev 1.7 gvanrossum
(previously merged with modifications by Stephen M. Gava)

Add primitive printing support for Unix and Windows.

Rev 1.8 loewis
Patch #590913: PEP 263 support.

Rev 1.9 gvanrossum
(tempfile.py interface -- deferred)

Rev 1.10 tim_one
whitespace normalization

Rev 1.11 nnorwitz
(deferred pending 1.9 integration)

22 years agomake sure the object browser can't crash because when the list data gets bigger than...
Just van Rossum [Mon, 16 Sep 2002 21:18:49 +0000 (21:18 +0000)]
make sure the object browser can't crash because when the list data gets bigger than 32kB

22 years agoadd ./ to configure command so it actually works verbatim
Just van Rossum [Mon, 16 Sep 2002 20:18:27 +0000 (20:18 +0000)]
add ./ to configure command so it actually works verbatim

22 years agoPatch #609700: Use $(CC) to link on Linux.
Martin v. Löwis [Mon, 16 Sep 2002 17:50:59 +0000 (17:50 +0000)]
Patch #609700: Use $(CC) to link on Linux.

22 years agoMake BadPickleGet a class. Fixes #609164.
Martin v. Löwis [Mon, 16 Sep 2002 17:26:24 +0000 (17:26 +0000)]
Make BadPickleGet a class. Fixes #609164.