]> granicus.if.org Git - python/log
python
24 years agoRevised implementation of CALL_FUNCTION and friends.
Jeremy Hylton [Wed, 3 Jan 2001 23:52:36 +0000 (23:52 +0000)]
Revised implementation of CALL_FUNCTION and friends.
More revision still needed.

Much of the code that was in the mainloop was moved to a series of
helper functions.  PyEval_CallObjectWithKeywords was split into two
parts.  The first part now only does argument handling.  The second
part is now named call_object and delegates the call to a
call_(function,method,etc.) helper.

XXX The call_XXX helper functions should be replaced with tp_call
functions for the respective types.

The CALL_FUNCTION implementation contains three kinds of optimization:
1. fast_cfunction and fast_function are called when the arguments on
   the stack can be passed directly to eval_code2() without copying
   them into a tuple.
2. PyCFunction objects are dispatched immediately, because they are
   presumed to occur more often than anything else.
3. Bound methods are dispatched inline.  The method object contains a
   pointer to the function object that will be called.  The function
   is called from within the mainloop, which may allow optimization #1
   to be used, too.

The extened call implementation -- f(*args) and f(**kw) -- are
implemented as a separate case in the mainloop.  This allows the
common case of normal function calls to execute without wasting time
on checks for extended calls, although it does introduce a small
amount of code duplication.

Also, the unused final argument of eval_code2() was removed.  This is
probably the last trace of the access statement :-).

24 years agoTwo new names.
Guido van Rossum [Wed, 3 Jan 2001 23:51:26 +0000 (23:51 +0000)]
Two new names.

24 years agoNew, improved README from Mike Clarkson. Wow!
Guido van Rossum [Wed, 3 Jan 2001 23:50:59 +0000 (23:50 +0000)]
New, improved README from Mike Clarkson.  Wow!

24 years agodict_update has two boundary conditions: a.update(a) and a.update({})
Jeremy Hylton [Wed, 3 Jan 2001 22:34:59 +0000 (22:34 +0000)]
dict_update has two boundary conditions: a.update(a) and a.update({})
Added test for second one.

24 years agofix leak
Jeremy Hylton [Wed, 3 Jan 2001 22:32:16 +0000 (22:32 +0000)]
fix leak

24 years agoThis patch changes the default behaviour of the builtin charmap
Marc-André Lemburg [Wed, 3 Jan 2001 21:29:14 +0000 (21:29 +0000)]
This patch changes the default behaviour of the builtin charmap
codec to not apply Latin-1 mappings for keys which are not found
in the mapping dictionaries, but instead treat them as undefined
mappings.

The patch was originally written by Martin v. Loewis with some
additional (cosmetic) changes and an updated test script
by Marc-Andre Lemburg.

The standard codecs were recreated from the most current files
available at the Unicode.org site using the Tools/scripts/gencodec.py
tool.

This patch closes the bugs #116285 and #119960.

24 years agoUse relative path for outputdir.
Jack Jansen [Wed, 3 Jan 2001 16:44:56 +0000 (16:44 +0000)]
Use relative path for outputdir.

24 years agoFixed a few declarations.
Jack Jansen [Wed, 3 Jan 2001 16:44:27 +0000 (16:44 +0000)]
Fixed a few declarations.

24 years agoMark the "encoding" parameter to ExternalEntityParserCreate() as optional
Fred Drake [Wed, 3 Jan 2001 15:36:25 +0000 (15:36 +0000)]
Mark the "encoding" parameter to ExternalEntityParserCreate() as optional
in the docstring.

24 years agostruct.pack wants H for unsigned shorts, not h.
Jack Jansen [Wed, 3 Jan 2001 11:14:12 +0000 (11:14 +0000)]
struct.pack wants H for unsigned shorts, not h.

24 years agoGot rid of 68K support.
Jack Jansen [Wed, 3 Jan 2001 11:12:21 +0000 (11:12 +0000)]
Got rid of 68K support.
Added optional generation of project files.
Redesigned dialog.

24 years agoUse == rather than cmp(). The return value of cmp() is not well defined when
Neil Schemenauer [Wed, 3 Jan 2001 02:13:26 +0000 (02:13 +0000)]
Use == rather than cmp().  The return value of cmp() is not well defined when
comparing different types.

24 years agoUse numbers that can be accurately represented on binary machines. I hope
Neil Schemenauer [Wed, 3 Jan 2001 01:52:11 +0000 (01:52 +0000)]
Use numbers that can be accurately represented on binary machines.  I hope
this works on all platforms.

24 years agoDo not cache <img> tags for navigation icons as agressively; this fixes
Fred Drake [Tue, 2 Jan 2001 22:08:48 +0000 (22:08 +0000)]
Do not cache <img> tags for navigation icons as agressively; this fixes
bug #127151.

24 years agoRemove (unused) regex imports.
Jack Jansen [Tue, 2 Jan 2001 22:02:45 +0000 (22:02 +0000)]
Remove (unused) regex imports.

24 years agoUse re in stead of regex.
Jack Jansen [Tue, 2 Jan 2001 22:02:02 +0000 (22:02 +0000)]
Use re in stead of regex.

24 years agoMake the test program work outside IDLE.
Guido van Rossum [Tue, 2 Jan 2001 21:22:03 +0000 (21:22 +0000)]
Make the test program work outside IDLE.

24 years agoAdd forgotten import
Andrew M. Kuchling [Tue, 2 Jan 2001 20:56:42 +0000 (20:56 +0000)]
Add forgotten import

24 years agoDuh. Instead of string.whitespace and string.digits, use isspace()
Guido van Rossum [Tue, 2 Jan 2001 20:36:32 +0000 (20:36 +0000)]
Duh.  Instead of string.whitespace and string.digits, use isspace()
and isdigit() methods.

24 years agoImprove description of else clause of the try/except/else statement.
Fred Drake [Tue, 2 Jan 2001 19:22:48 +0000 (19:22 +0000)]
Improve description of else clause of the try/except/else statement.
This closes (again!) bug #127098.

24 years agoAdd Alt-slash to Unix keydefs (I somehow need it on RH 6.2).
Guido van Rossum [Tue, 2 Jan 2001 18:28:52 +0000 (18:28 +0000)]
Add Alt-slash to Unix keydefs (I somehow need it on RH 6.2).
Get rid of assignment to unused self.text.wordlist.

24 years agoAdd more tests for compare and coercion in preparation for the coercion
Neil Schemenauer [Tue, 2 Jan 2001 16:30:31 +0000 (16:30 +0000)]
Add more tests for compare and coercion in preparation for the coercion
overhaul.  Closes SF patch #102878.

24 years agoAdd garbage collection for module objects. Closes patch #102939 and
Neil Schemenauer [Tue, 2 Jan 2001 15:58:27 +0000 (15:58 +0000)]
Add garbage collection for module objects.  Closes patch #102939 and
fixes bug #126345.

24 years agoUpdated for new universal headers (oops... this was loooong due).
Jack Jansen [Mon, 1 Jan 2001 22:58:20 +0000 (22:58 +0000)]
Updated for new universal headers (oops... this was loooong due).

24 years agoMinor clarficiations in the dialogs about which errno file is wanted when (I had...
Jack Jansen [Mon, 1 Jan 2001 22:57:59 +0000 (22:57 +0000)]
Minor clarficiations in the dialogs about which errno file is wanted when (I had also forgotten:-).

24 years agoNew .mcp names for tkinter and imgmodules projects.
Jack Jansen [Mon, 1 Jan 2001 21:51:33 +0000 (21:51 +0000)]
New .mcp names for tkinter and imgmodules projects.

24 years agoFix up an awkward sentence, pointed out by Chris Ryland <cpr@emsoftware.com>.
Fred Drake [Mon, 1 Jan 2001 20:33:06 +0000 (20:33 +0000)]
Fix up an awkward sentence, pointed out by Chris Ryland <cpr@emsoftware.com>.

24 years agoPatch by kragen@pobox.com: When tracing is turned on, lines shorter
Guido van Rossum [Mon, 1 Jan 2001 19:11:07 +0000 (19:11 +0000)]
Patch by kragen@pobox.com: When tracing is turned on, lines shorter
than a pixel don't get drawn at all. If you're building long curves
made of such lines, this is a bad thing.

24 years agoChange documentation of 'else' clause of 'try/except' to make clear that it
Thomas Wouters [Sun, 31 Dec 2000 22:52:59 +0000 (22:52 +0000)]
Change documentation of 'else' clause of 'try/except' to make clear that it
doesn't get triggered by 'return', 'break' or 'continue'. If the
'try-inside-continue' patch does not get accepted before next release, the
'or continue' should be removed ;P

Closes SF patch #103045 and SF bug #127098.

24 years agoReplaced with .mcp projects in Extensions/Imaging
Jack Jansen [Sun, 31 Dec 2000 13:04:21 +0000 (13:04 +0000)]
Replaced with .mcp projects in Extensions/Imaging

24 years agoAdded test case for legal DOM children
Andrew M. Kuchling [Sun, 31 Dec 2000 04:03:27 +0000 (04:03 +0000)]
Added test case for legal DOM children

24 years agoPatch #102485 ] Check for legal children when adding children to a DOM node
Andrew M. Kuchling [Sun, 31 Dec 2000 03:50:23 +0000 (03:50 +0000)]
Patch #102485 ] Check for legal children when adding children to a DOM node

24 years agoChristmas present to myself: changed regrtest in two ways:
Tim Peters [Sat, 30 Dec 2000 22:21:22 +0000 (22:21 +0000)]
Christmas present to myself:  changed regrtest in two ways:
1. When running in verbose mode, if any test happens to pass, print
   a warning that the apparent success may be bogus (stdout isn't
   compared in verbose mode).  Been fooled by that too often.
2. When a test fails because the expected stdout doesn't match the
   actual stdout, print as much of stdout as did match before the
   first failing write.  Else we get failures of the form "expected
   'a', got 'b'" and a glance at the expected output file shows
   500 instances of 'a' -- no idea where it failed, and, as in #1,
   trying to run in verbose mode instead doesn't help because
   stdout isn't compared then.

24 years agoChanged the search path for pyexpat to include all of the expat folder.
Jack Jansen [Fri, 29 Dec 2000 16:07:30 +0000 (16:07 +0000)]
Changed the search path for pyexpat to include all of the expat folder.

24 years agogetopt used to sort the long option names, in an attempt to simplify
Tim Peters [Fri, 29 Dec 2000 02:17:56 +0000 (02:17 +0000)]
getopt used to sort the long option names, in an attempt to simplify
the logic.  That resulted in a bug.  My previous getopt checkin repaired
the bug but left the sorting.  The solution is significantly simpler if
we don't bother sorting at all, so this checkin gets rid of the sort and
the code that relied on it.

24 years agoFred, THIS NEEDS DOCS! The function docstrings tell the tale.
Tim Peters [Fri, 29 Dec 2000 02:06:45 +0000 (02:06 +0000)]
Fred, THIS NEEDS DOCS!  The function docstrings tell the tale.
Christmas present to myself:  the bisect module didn't define what
happened if the new element was already in the list.  It so happens
that it inserted the new element "to the right" of all equal elements.
Since it wasn't defined, among other bad implications it was a mystery
how to use bisect to determine whether an element was already in the
list (I've seen code that *assumed* "to the right" without justification).
Added new methods bisect_left and insort_left that insert "to the left"
instead; made the old names bisect and insort aliases for the new names
bisect_right and insort_right; beefed up docstrings to explain what
these actually do; and added a std test for the bisect module.

24 years agoMerge with 1.8 of pulldom.py:
Martin v. Löwis [Thu, 28 Dec 2000 18:43:02 +0000 (18:43 +0000)]
Merge with 1.8 of pulldom.py:
Use types.UnicodeType if available, not type(u"").

24 years agoMerge changes up to 1.10 from PyXML:
Martin v. Löwis [Thu, 28 Dec 2000 18:40:56 +0000 (18:40 +0000)]
Merge changes up to 1.10 from PyXML:
- implement hasAttribute and hasAttributeNS (1.7)
- Node.replaceChild():  Update the sibling nodes to point to newChild.  Set
  the .nextSibling attribute on oldChild instead of adding a .newChild
  attribute (1.9).

24 years agoFixed snake logo and minus image by Daniel Calvelo.
Guido van Rossum [Wed, 27 Dec 2000 22:26:08 +0000 (22:26 +0000)]
Fixed snake logo and minus image by Daniel Calvelo.

24 years agoMake Traceback header conform to new traceback ("innermost last" ->
Guido van Rossum [Wed, 27 Dec 2000 19:12:58 +0000 (19:12 +0000)]
Make Traceback header conform to new traceback ("innermost last" ->
"most recent call last").

24 years ago(python-font-lock-keywords): Add highlighting of `as' as a keyword,
Barry Warsaw [Wed, 27 Dec 2000 17:41:47 +0000 (17:41 +0000)]
(python-font-lock-keywords): Add highlighting of `as' as a keyword,
but only in "import foo as bar" statements (including optional
preceding `from' clause).

24 years agoFix for SF bug
Tim Peters [Wed, 27 Dec 2000 08:05:05 +0000 (08:05 +0000)]
Fix for SF bug
https://sourceforge.net/bugs/?func=detailbug&bug_id=126863&group_id=5470
"getopt long option handling broken".  Tossed the excruciating logic in
long_has_args in favor of something obviously correct.

24 years agoAdd test case for SF bug
Tim Peters [Wed, 27 Dec 2000 08:03:20 +0000 (08:03 +0000)]
Add test case for SF bug
https://sourceforge.net/bugs/?func=detailbug&bug_id=126863&group_id=5470

24 years agoFix doubled word
Andrew M. Kuchling [Tue, 26 Dec 2000 16:14:32 +0000 (16:14 +0000)]
Fix doubled word

24 years agoRemove redundant reference to tab (since it = 'horizontal tab')
Andrew M. Kuchling [Tue, 26 Dec 2000 16:09:37 +0000 (16:09 +0000)]
Remove redundant reference to tab (since it = 'horizontal tab')

24 years agoMake isspace(chr(32)) return true
Andrew M. Kuchling [Tue, 26 Dec 2000 16:07:59 +0000 (16:07 +0000)]
Make isspace(chr(32)) return true

24 years agoDocument ERR and OK
Andrew M. Kuchling [Tue, 26 Dec 2000 15:58:27 +0000 (15:58 +0000)]
Document ERR and OK

24 years agoAdd the curses constants ERR and OK to the module at TG's suggestion
Andrew M. Kuchling [Tue, 26 Dec 2000 15:57:01 +0000 (15:57 +0000)]
Add the curses constants ERR and OK to the module at TG's suggestion

24 years agoMake sure subsections are formatted into HTML pages with reasonable names.
Fred Drake [Mon, 25 Dec 2000 06:19:08 +0000 (06:19 +0000)]
Make sure subsections are formatted into HTML pages with reasonable names.

24 years agoAdded information on the ExternalEntityParserCreate() method.
Fred Drake [Sat, 23 Dec 2000 22:19:05 +0000 (22:19 +0000)]
Added information on the ExternalEntityParserCreate() method.

24 years agoThe "context" parameter to the ExternalEntityRefParameter exposes internal
Fred Drake [Sat, 23 Dec 2000 22:12:07 +0000 (22:12 +0000)]
The "context" parameter to the ExternalEntityRefParameter exposes internal
information from the Expat library that is not part of its public API.
Do not print this information as the format of the string may (and will)
change as Expat evolves.

Add additional tests to make sure the ParserCreate() function raises the
right exceptions on illegal parameters.

24 years agoThe regression test for the regex module should not trip the deprecation
Fred Drake [Sat, 23 Dec 2000 22:08:27 +0000 (22:08 +0000)]
The regression test for the regex module should not trip the deprecation
warning for that module, so suppress just that one warning.

24 years agoChoose the smallest value of x,y for the clock's radius (instead of just taking the
Andrew M. Kuchling [Sat, 23 Dec 2000 14:50:18 +0000 (14:50 +0000)]
Choose the smallest value of x,y for the clock's radius (instead of just taking the
    y coordinate), and change radius of second indicator to compensate
Remove redundant setting of sradius

24 years agoRemove superfluous semicolons
Andrew M. Kuchling [Sat, 23 Dec 2000 14:20:24 +0000 (14:20 +0000)]
Remove superfluous semicolons

24 years agoCHange error messages for ord(), using "string" instead of "string or Unicode"
Andrew M. Kuchling [Sat, 23 Dec 2000 14:11:28 +0000 (14:11 +0000)]
CHange error messages for ord(), using "string" instead of "string or Unicode"

24 years agoShortened / wrapped some long lines.
Fred Drake [Sat, 23 Dec 2000 05:46:23 +0000 (05:46 +0000)]
Shortened / wrapped some long lines.
Removed warning on use of panel_userptr() in PyCursesPanel_userptr().

24 years agoAdd 'see also' link to curses.panel
Andrew M. Kuchling [Fri, 22 Dec 2000 22:06:43 +0000 (22:06 +0000)]
Add 'see also' link to curses.panel

24 years agoAdd correction caught by Thomas Gellekum (and sitting in my e-mail)
Andrew M. Kuchling [Fri, 22 Dec 2000 22:03:15 +0000 (22:03 +0000)]
Add correction caught by Thomas Gellekum (and sitting in my e-mail)

24 years agoWrapper for _curses_panel module; currently this adds nothing extra
Andrew M. Kuchling [Fri, 22 Dec 2000 21:58:29 +0000 (21:58 +0000)]
Wrapper for _curses_panel module; currently this adds nothing extra
    beyond what's in _curses_panel

24 years agoAdded documentation for the panel wrapper module
Andrew M. Kuchling [Fri, 22 Dec 2000 21:57:42 +0000 (21:57 +0000)]
Added documentation for the panel wrapper module

24 years agoAdd _curses_panel to Setup
Andrew M. Kuchling [Fri, 22 Dec 2000 21:57:33 +0000 (21:57 +0000)]
Add _curses_panel to Setup

24 years agoPatch #102813: add a wrapper for the panel library included with ncurses.
Andrew M. Kuchling [Fri, 22 Dec 2000 21:54:12 +0000 (21:54 +0000)]
Patch #102813:  add a wrapper for the panel library included with ncurses.
    Original version written by Thomas Gellekum, reshaped into a separate
    module by AMK.

24 years agoExport C API from this module.
Andrew M. Kuchling [Fri, 22 Dec 2000 21:52:27 +0000 (21:52 +0000)]
Export C API from this module.
Remove several macros and #includes; py_curses.h contains them now.

24 years agoAdded header file for C API exported by _cursesmodule.c
Andrew M. Kuchling [Fri, 22 Dec 2000 21:51:10 +0000 (21:51 +0000)]
Added header file for C API exported by _cursesmodule.c

24 years agoUpdate this demo to use curses.panel
Andrew M. Kuchling [Fri, 22 Dec 2000 21:50:01 +0000 (21:50 +0000)]
Update this demo to use curses.panel

24 years agoFix bug 126587: matchobject.groupdict() leaks memory because of a missing
Andrew M. Kuchling [Fri, 22 Dec 2000 14:39:10 +0000 (14:39 +0000)]
Fix bug 126587: matchobject.groupdict() leaks memory because of a missing
    DECREF

24 years agoWhen using the latest & greatest version of Expat (currently in the Expat
Fred Drake [Thu, 21 Dec 2000 17:25:07 +0000 (17:25 +0000)]
When using the latest & greatest version of Expat (currently in the Expat
CVS repository), provide the library version information.

24 years agoFix lots of small markup nits.
Fred Drake [Thu, 21 Dec 2000 17:04:31 +0000 (17:04 +0000)]
Fix lots of small markup nits.
Wrapped some long lines.

24 years agoAnother demo from Thomas Gellekum (seasonally-themed, too)
Andrew M. Kuchling [Thu, 21 Dec 2000 16:26:37 +0000 (16:26 +0000)]
Another demo from Thomas Gellekum (seasonally-themed, too)

24 years agoDocument the window.overlay() and .overwrite() methods
Andrew M. Kuchling [Thu, 21 Dec 2000 16:25:44 +0000 (16:25 +0000)]
Document the window.overlay() and .overwrite() methods

24 years agoAnother patch from Thomas Gellekum: add .overlay() and .overwrite()
Andrew M. Kuchling [Thu, 21 Dec 2000 16:22:22 +0000 (16:22 +0000)]
Another patch from Thomas Gellekum: add .overlay() and .overwrite()
    window methods

24 years agoWhoops! Two stray characters crept in to my last check-in
Andrew M. Kuchling [Wed, 20 Dec 2000 15:07:34 +0000 (15:07 +0000)]
Whoops!  Two stray characters crept in to my last check-in

24 years agoPatch #102492, fixing bug #116677:
Andrew M. Kuchling [Wed, 20 Dec 2000 14:47:24 +0000 (14:47 +0000)]
Patch #102492, fixing bug #116677:
    give minidom.py behaviour that complies with the DOM Level 1 REC,
    which says that when a node newChild is added to the tree, "if the
    newChild is already in the tree, it is first removed."

    pulldom.py is patched to use the public minidom interface instead
    of setting .parentNode itself.  Possibly this reduces pulldom's
    efficiency; someone else will have to pronounce on that.

24 years agoPatch #102955, fixing one of the warnings in bug #121479:
Andrew M. Kuchling [Wed, 20 Dec 2000 14:36:56 +0000 (14:36 +0000)]
Patch #102955, fixing one of the warnings in bug #121479:
Simplifies ord()'s logic at the cost of some code duplication, removing a
    " `ord' might be used uninitialized in this function" warning

24 years agoChange expected message for ValueError, fixing bug #126400
Andrew M. Kuchling [Wed, 20 Dec 2000 00:55:46 +0000 (00:55 +0000)]
Change expected message for ValueError, fixing bug #126400

24 years agoMake the indentation consistently use tabs instead of using spaces just
Fred Drake [Wed, 20 Dec 2000 00:55:07 +0000 (00:55 +0000)]
Make the indentation consistently use tabs instead of using spaces just
in one place.

24 years agoAdd forgotten initialization. Fixes bug #120994, "Traceback with
Andrew M. Kuchling [Wed, 20 Dec 2000 00:48:12 +0000 (00:48 +0000)]
Add forgotten initialization.  Fixes bug #120994, "Traceback with
    DISTUTILS_DEBUG set"

24 years agoPatch #102940: use only printable Unicode chars in reporting
Andrew M. Kuchling [Tue, 19 Dec 2000 22:49:06 +0000 (22:49 +0000)]
Patch #102940: use only printable Unicode chars in reporting
 incorrect % characters; characters outside the printable range are
 replaced with '?'

24 years agoRegenerated so that NewGWorld is included.
Jack Jansen [Tue, 19 Dec 2000 22:28:14 +0000 (22:28 +0000)]
Regenerated so that NewGWorld is included.

24 years agoEmulate a few more non-carbon calls in carbon and the other way around.
Jack Jansen [Tue, 19 Dec 2000 22:23:06 +0000 (22:23 +0000)]
Emulate a few more non-carbon calls in carbon and the other way around.

24 years agoAdded hash() and compare() functions. Needed because multiple WinObj's can now refer...
Jack Jansen [Tue, 19 Dec 2000 21:34:55 +0000 (21:34 +0000)]
Added hash() and compare() functions. Needed because multiple WinObj's can now refer to the same underlying WindowRef.

24 years agoBlacklisted a few constants with funny definitions (and they're not important anyway...
Jack Jansen [Tue, 19 Dec 2000 21:33:51 +0000 (21:33 +0000)]
Blacklisted a few constants with funny definitions (and they're not important anyway: backward compatible error numbers).

24 years agoPatch #102868 from cgw: fix memory leak when an EOF is encountered
Andrew M. Kuchling [Tue, 19 Dec 2000 20:59:04 +0000 (20:59 +0000)]
Patch #102868 from cgw: fix memory leak when an EOF is encountered
    using GNU libc's getline()

24 years agoAdding a warning about the regsub module. This also disables further
Guido van Rossum [Tue, 19 Dec 2000 18:25:58 +0000 (18:25 +0000)]
Adding a warning about the regsub module.  This also disables further
warnings in this same module, to prevent getting a warning about
importing regex (we *know* that it's obsolete :-).

24 years agoAdding a warning about the regex module. This is the first official
Guido van Rossum [Tue, 19 Dec 2000 18:21:39 +0000 (18:21 +0000)]
Adding a warning about the regex module.  This is the first official
use of PyErr_Warn()!  This module is a good guinea pig because it's
been obsolete since 1.5.0 was released.

24 years agoBe explicit about scheme_chars -- string.letters is locale dependent
Guido van Rossum [Tue, 19 Dec 2000 16:48:13 +0000 (16:48 +0000)]
Be explicit about scheme_chars -- string.letters is locale dependent
so we can't use it.

While I'm at it, got rid of string module use.  (Found several new
hard special cases for a hypothetical conversion tool: from string
import join, find, rfind; and a local assignment "find=string.find".)

24 years agoFix typo
Andrew M. Kuchling [Tue, 19 Dec 2000 14:09:21 +0000 (14:09 +0000)]
Fix typo

24 years agoUse binary mode to open "wave" files.
Guido van Rossum [Tue, 19 Dec 2000 06:32:57 +0000 (06:32 +0000)]
Use binary mode to open "wave" files.

24 years agoDocument the warnings module.
Guido van Rossum [Tue, 19 Dec 2000 06:01:23 +0000 (06:01 +0000)]
Document the warnings module.

24 years agoUpdated string literals description to encompass Unicode literals and the
Fred Drake [Tue, 19 Dec 2000 04:52:03 +0000 (04:52 +0000)]
Updated string literals description to encompass Unicode literals and the
additional escape sequences defined for Unicode.
This closes bug #117158.

24 years agoDocument warning categories.
Guido van Rossum [Tue, 19 Dec 2000 04:27:54 +0000 (04:27 +0000)]
Document warning categories.

24 years agoClarify __repr__ and __str__.
Guido van Rossum [Tue, 19 Dec 2000 04:18:13 +0000 (04:18 +0000)]
Clarify __repr__ and __str__.

24 years agoAdded documentation on the ErrorHandler interface.
Fred Drake [Tue, 19 Dec 2000 04:07:54 +0000 (04:07 +0000)]
Added documentation on the ErrorHandler interface.
This closes bug #126034.

24 years agoOops. The value "0 or +1" for the category argument of PyErr_Warn()
Guido van Rossum [Tue, 19 Dec 2000 03:58:11 +0000 (03:58 +0000)]
Oops.  The value "0 or +1" for the category argument of PyErr_Warn()
doesn't work.  Make it 0.  (Although it really *should* be 0 or +1 --
the refcount is incremented when it is raised as an exception, but not
otherwise.)

24 years agoDocument Pyerr_Warn().
Guido van Rossum [Tue, 19 Dec 2000 03:53:57 +0000 (03:53 +0000)]
Document Pyerr_Warn().

Add an XXX comment at the beginning expressing disappointment over the
confusing way refcount behavior of arguments is documented.

24 years agoDocument Pyerr_Warn().
Guido van Rossum [Tue, 19 Dec 2000 03:53:01 +0000 (03:53 +0000)]
Document Pyerr_Warn().

24 years agoDocument the -W option as best as I can.
Guido van Rossum [Tue, 19 Dec 2000 03:21:54 +0000 (03:21 +0000)]
Document the -W option as best as I can.

Get rid of BeOpen references.

24 years agoImprove error messages for invalid warning arguments; don't raise
Guido van Rossum [Tue, 19 Dec 2000 03:04:50 +0000 (03:04 +0000)]
Improve error messages for invalid warning arguments; don't raise
exceptions but always print a warning message.

24 years agoMake string.translate(s, table) work for Unicode s. Two things are
Guido van Rossum [Tue, 19 Dec 2000 02:39:08 +0000 (02:39 +0000)]
Make string.translate(s, table) work for Unicode s.  Two things are
required to work around restrictions on the arguments of
u.translate():

1) don't pass the deletions argument if it's empty;

2) convert table to Unicode if s is Unicode.

This fixes SF bug #124060.

24 years agoFix off-by-one error in split_substring(). Fixes SF bug #122162.
Guido van Rossum [Tue, 19 Dec 2000 02:23:19 +0000 (02:23 +0000)]
Fix off-by-one error in split_substring().  Fixes SF bug #122162.