Commit graph

15673 commits

Author SHA1 Message Date
Martin v. Löwis
011ea47577 Merge with 1.8 of pulldom.py:
Use types.UnicodeType if available, not type(u"").
2000-12-28 18:43:02 +00:00
Martin v. Löwis
156c337f66 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).
2000-12-28 18:40:56 +00:00
Guido van Rossum
88b5ae0110 Fixed snake logo and minus image by Daniel Calvelo. 2000-12-27 22:26:08 +00:00
Guido van Rossum
7dd06966cb Make Traceback header conform to new traceback ("innermost last" ->
"most recent call last").
2000-12-27 19:12:58 +00:00
Barry Warsaw
e0c182fb5f (python-font-lock-keywords): Add highlighting of `as' as a keyword,
but only in "import foo as bar" statements (including optional
preceding `from' clause).
2000-12-27 17:41:47 +00:00
Tim Peters
dd699b62c5 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.
2000-12-27 08:05:05 +00:00
Tim Peters
da7bf4e236 Add test case for SF bug
https://sourceforge.net/bugs/?func=detailbug&bug_id=126863&group_id=5470
2000-12-27 08:03:20 +00:00
Andrew M. Kuchling
be0630282e Fix doubled word 2000-12-26 16:14:32 +00:00
Andrew M. Kuchling
8694cc42ab Remove redundant reference to tab (since it = 'horizontal tab') 2000-12-26 16:09:37 +00:00
Andrew M. Kuchling
0cc87f37b3 Make isspace(chr(32)) return true 2000-12-26 16:07:59 +00:00
Andrew M. Kuchling
e6bf85845f Document ERR and OK 2000-12-26 15:58:27 +00:00
Andrew M. Kuchling
caefb37ee1 Add the curses constants ERR and OK to the module at TG's suggestion 2000-12-26 15:57:01 +00:00
Fred Drake
1dea760ca1 Make sure subsections are formatted into HTML pages with reasonable names. 2000-12-25 06:19:08 +00:00
Fred Drake
f08cbb1771 Added information on the ExternalEntityParserCreate() method. 2000-12-23 22:19:05 +00:00
Fred Drake
1e0611b208 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.
2000-12-23 22:12:07 +00:00
Fred Drake
9a1a7dda8f The regression test for the regex module should not trip the deprecation
warning for that module, so suppress just that one warning.
2000-12-23 22:08:27 +00:00
Andrew M. Kuchling
994d8539f6 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
2000-12-23 14:50:18 +00:00
Andrew M. Kuchling
49d27c82e6 Remove superfluous semicolons 2000-12-23 14:20:24 +00:00
Andrew M. Kuchling
f07aad171a CHange error messages for ord(), using "string" instead of "string or Unicode" 2000-12-23 14:11:28 +00:00
Fred Drake
4e36d5885b Shortened / wrapped some long lines.
Removed warning on use of panel_userptr() in PyCursesPanel_userptr().
2000-12-23 05:46:23 +00:00
Andrew M. Kuchling
5caee408b8 Add 'see also' link to curses.panel 2000-12-22 22:06:43 +00:00
Andrew M. Kuchling
d7d2e19922 Add correction caught by Thomas Gellekum (and sitting in my e-mail) 2000-12-22 22:03:15 +00:00
Andrew M. Kuchling
9f5eeebb26 Wrapper for _curses_panel module; currently this adds nothing extra
beyond what's in _curses_panel
2000-12-22 21:58:29 +00:00
Andrew M. Kuchling
676634beda Added documentation for the panel wrapper module 2000-12-22 21:57:42 +00:00
Andrew M. Kuchling
1a86cbbc32 Add _curses_panel to Setup 2000-12-22 21:57:33 +00:00
Andrew M. Kuchling
7b59ed2ebd 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.
2000-12-22 21:54:12 +00:00
Andrew M. Kuchling
3255268777 Export C API from this module.
Remove several macros and #includes; py_curses.h contains them now.
2000-12-22 21:52:27 +00:00
Andrew M. Kuchling
0c7a0bdf4a Added header file for C API exported by _cursesmodule.c 2000-12-22 21:51:10 +00:00
Andrew M. Kuchling
72a18a6659 Update this demo to use curses.panel 2000-12-22 21:50:01 +00:00
Andrew M. Kuchling
48f224c877 Fix bug 126587: matchobject.groupdict() leaks memory because of a missing
DECREF
2000-12-22 14:39:10 +00:00
Fred Drake
738293d663 When using the latest & greatest version of Expat (currently in the Expat
CVS repository), provide the library version information.
2000-12-21 17:25:07 +00:00
Fred Drake
e412e7a3a0 Fix lots of small markup nits.
Wrapped some long lines.
2000-12-21 17:04:31 +00:00
Andrew M. Kuchling
23382f5047 Another demo from Thomas Gellekum (seasonally-themed, too) 2000-12-21 16:26:37 +00:00
Andrew M. Kuchling
68a6f5a0a2 Document the window.overlay() and .overwrite() methods 2000-12-21 16:25:44 +00:00
Andrew M. Kuchling
9de6ffa314 Another patch from Thomas Gellekum: add .overlay() and .overwrite()
window methods
2000-12-21 16:22:22 +00:00
Andrew M. Kuchling
9bcc68c183 Whoops! Two stray characters crept in to my last check-in 2000-12-20 15:07:34 +00:00
Andrew M. Kuchling
04a45e9bb1 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.
2000-12-20 14:47:24 +00:00
Andrew M. Kuchling
34c20cf705 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
2000-12-20 14:36:56 +00:00
Andrew M. Kuchling
c867f74a10 Change expected message for ValueError, fixing bug #126400 2000-12-20 00:55:46 +00:00
Fred Drake
e7e190ef97 Make the indentation consistently use tabs instead of using spaces just
in one place.
2000-12-20 00:55:07 +00:00
Andrew M. Kuchling
8fe2c12d49 Add forgotten initialization. Fixes bug #120994, "Traceback with
DISTUTILS_DEBUG set"
2000-12-20 00:48:12 +00:00
Andrew M. Kuchling
f947ffe951 Patch #102940: use only printable Unicode chars in reporting
incorrect % characters; characters outside the printable range are
 replaced with '?'
2000-12-19 22:49:06 +00:00
Jack Jansen
7ff3133a7f Regenerated so that NewGWorld is included. 2000-12-19 22:28:14 +00:00
Jack Jansen
32248655ee Emulate a few more non-carbon calls in carbon and the other way around. 2000-12-19 22:23:06 +00:00
Jack Jansen
87a30924d0 Added hash() and compare() functions. Needed because multiple WinObj's can now refer to the same underlying WindowRef. 2000-12-19 21:34:55 +00:00
Jack Jansen
620e914266 Blacklisted a few constants with funny definitions (and they're not important anyway: backward compatible error numbers). 2000-12-19 21:33:51 +00:00
Andrew M. Kuchling
932af110d3 Patch #102868 from cgw: fix memory leak when an EOF is encountered
using GNU libc's getline()
2000-12-19 20:59:04 +00:00
Guido van Rossum
7292e921fc 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 :-).
2000-12-19 18:25:58 +00:00
Guido van Rossum
b1d136174a 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.
2000-12-19 18:21:39 +00:00
Guido van Rossum
fad81f0838 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".)
2000-12-19 16:48:13 +00:00