summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Modified the encode interfaces of all builtin codecs to acceptMarc-André Lemburg2000-07-051-50/+105
| | | | | any object which can be converted to Unicode by means of PyUnicode_FromObject().
* check for Pth *after* the standard system threading libraries. Pth shouldGreg Stein2000-07-052-71/+71
| | | | | | not override those. Submitted by: flight@users.sourceforge.net
* Added new .isalpha() and .isalnum() methods which provide interfacesMarc-André Lemburg2000-07-051-0/+66
| | | | to the new alphabetic lookup APIs in unicodectype.c.
* Added new lookup API which matches all alphabetic Unicode characters,Marc-André Lemburg2000-07-051-0/+5295
| | | | i.e the ones with category 'Ll','Lu','Lt','Lo','Lm'.
* Added new .isalpha() and .isalnum() methods to match the sameMarc-André Lemburg2000-07-051-0/+68
| | | | | ones on the Unicode objects. Note that the string versions use the (locale aware) C lib APIs isalpha() and isalnum().
* Added tests for the new .isalpha() and .isalnum() methods.Marc-André Lemburg2000-07-052-0/+31
|
* Modified the ISALPHA and ISALNUM macros to use the new lookup APIsMarc-André Lemburg2000-07-051-5/+8
| | | | from unicodectype.c
* Added #defines to enable SUSv2 compatibility where available andMarc-André Lemburg2000-07-051-0/+10
| | | | | | | | to switch on support for BSD and SysV on platforms which use glibc such as Linux. These #defines are documented in e.g. the file /usr/include/features.h on Linux platforms and the SUSv2 docs.
* Fixed so the ZIP file (which is bundled into an executable) goes in theGreg Ward2000-07-051-4/+13
| | | | | temporary directory ('bdist_base'). Added --dist-dir option to control where the executable is put.
* Added --dist-dir option to control where output archive(s) go.Greg Ward2000-07-051-1/+7
|
* Added the --dist-dir option that the "bdist_*" will use to control whereGreg Ward2000-07-051-0/+7
| | | | they place their output files.
* Added the --dist-dir option to control where the archive(s) are put;Greg Ward2000-07-051-1/+11
| | | | defaults to 'dist' (ie. no longer in the distribution root).
* Created a new chapter on structured markup processing, including theFred Drake2000-07-053-4/+19
| | | | | existing SGML, HTML, & XML support, and providing a home for the new XML support as it becomes documented.
* Wrapped some long lines.Fred Drake2000-07-051-34/+48
| | | | | | | Cleaned up the table of error constants defined in pyexpat.errors; an extra pair of braces had pretty much destroyed the table! (Not sure why.) Moved the pyexpat.errors module documentation into a \section with the proper headers for a module.
* pyexpat.errors is a *strange* module!Fred Drake2000-07-041-14/+15
| | | | | | | | | It gets initialized when pyexpat is imported, and is only accessible as an attribute of pyexpat; it cannot be imported itself. This allows it to at least be importable after pyexpat itself has been imported by adding it to sys.modules, so it is not quite as strange. This arrangement needs to be better thought out.
* Evt moved to the core toolbox modules.Jack Jansen2000-07-042-1/+0
|
* Remove warning about local variable possibly being using uninitialized;Fred Drake2000-07-041-1/+1
| | | | noted by Marc-Andre Lemburg <mal@lemburg.com>.
* Removed Py_PROTO and switched to ANSI C declarations in the dictTim Peters2000-07-042-118/+48
| | | | | | | implementation. This was really to test whether my new CVS+SSH setup is more usable than the old one -- and turns out it is (for whatever reason, it was impossible to do a commit before that involved more than one directory).
* Fixes for compilation problems on Tru64 reported by Mark FavasAndrew M. Kuchling2000-07-041-16/+16
|
* 2 fixes plus one extension:Sjoerd Mullender2000-07-041-6/+6
| | | | | | | | | | - Actually count the linefeeds in a the CDATA content. - Don't call the endtag handler for an unmatched endtag (this makes the base class simpler since it doesn't have to deal with unopened endtags). - If the __init__ method is called with keyword argument translate_attribute_references=0, don't attempt to translate character and entity references in attribute values.
* Fixed symbol search for defining NSIG. It now also checks _NSIGMarc-André Lemburg2000-07-041-5/+9
| | | | | | | which some C libs define (e.g. glibc). Added a fallback default value for NSIG which hopefully provides enough room for signal slots.
* Bill Tutt:Marc-André Lemburg2000-07-041-6/+29
| | | | | Make unicode_compare a true UTF-16 compare function (includes support for surrogates).
* libinstall: For the first bytecode compilation pass, use -tt instead ofFred Drake2000-07-041-1/+1
| | | | | | | | -t. This ensures that each installation from source is checked for compliance. This is needed to make sure .py files in the various Lib/plat-foo/ directories are tested even if the core developers do not have access to the corresponding platforms.
* Used original SAX handling form.Paul Prescod2000-07-043-15/+14
|
* Removed some tabs.Paul Prescod2000-07-041-6/+6
|
* PyMac_FindModuleExtension now uses a size_t as its size parameter for ↵Jack Jansen2000-07-032-2/+2
| | | | compatibility.
* Squash signed-vs-unsigned warning. Also edits to bring into lineTim Peters2000-07-031-14/+33
| | | | with Python coding stds (max line length, C-style comments).
* Typo repair in docstring -- my fault.Tim Peters2000-07-031-1/+1
|
* Include limits.h if we have it.Jack Jansen2000-07-035-0/+15
|
* Mac only: two epoch problem workarounds are no longer needed for GUSIJack Jansen2000-07-031-2/+2
| | | | >= 2.0.5. One still is:-(
* - fixed grouping error bugFredrik Lundh2000-07-036-31/+55
| | | | - changed "group" operator to "groupref"
* - added lookbehind support (?<=pattern), (?<!pattern).Fredrik Lundh2000-07-035-103/+137
| | | | | | | | | | | | | | | | | the pattern must have a fixed width. - got rid of array-module dependencies; the match pro- gram is now stored inside the pattern object, rather than in an extra string buffer. - cleaned up a various of potential leaks, api abuses, and other minors in the engine module. - use mal's new isalnum macro, rather than my own work- around. - untabified test_sre.py. seems like I removed a couple of trailing spaces in the process...
* ANSI-fication, remove Py_PROTO, etc.Fred Drake2000-07-031-84/+74
| | | | | | | Revise math_1(), math_2(), stub-generating macros, and function tables to use PyArg_ParseTuple() and properly provide the function name for error message generation. Fix pow() docstring for MPW 3.1; had said "power" instead of "pow".
* Andrew Kuchling <akuchlin@mems-exchange.org>:Fred Drake2000-07-031-1/+1
| | | | Typo in string literal: execpt --> except
* Compute the name of the test file so that it can be found both when thisFred Drake2000-07-031-2/+12
| | | | | | | test is run as a script and when imported via the regression test framework. Problem reported by Phillip Porch <root@theporch.com>.
* get_starttag_text(): Document this method.Fred Drake2000-07-031-0/+8
|
* Fix bug #379, reported by Phillip Porch <root@theproch.com>:Fred Drake2000-07-031-1/+1
| | | | | | | | openpty(): Fallback code when os.openpty() does not exist attempted to call _slave_open(), which should have been slave_open(). This bug only showed on platforms which do not provide a working openpty() in the C library.
* Marc-Andre Lemburg <mal@lemburg.com>:Fred Drake2000-07-031-1/+9
| | | | | Update the API docs for the new macros Py_UNICODE_ISALPHA() and Py_UNICODE_ISALNUM().
* Added new Py_UNICODE_ISALPHA() and Py_UNICODE_ISALNUM() macrosMarc-André Lemburg2000-07-031-0/+11
| | | | | | | | which are true for alphabetic and alphanumeric characters resp. The macros are currently implemented using the existing is* tables but will have to be updated to meet the Unicode standard definitions (add tables for non-cased letters and letter modifiers).
* If auto-conversion fails, the Unicode codecs will return NULL.Marc-André Lemburg2000-07-031-11/+13
| | | | This is now checked and the error passed on to the caller.
* Eric S. Raymond <esr@thyrsus.com>:Fred Drake2000-07-032-45/+70
| | | | | | | | | This patch implements relative-path semantics for the "source" facility resembling those of cpp(1), documents the change, and improves the shlex test main to make it easier to test this feature. Along the way, it fixes a name error in the existing docs. [Additional documentation markup changes for consistency by FLD.]
* Moshe Zadka <moshez@math.huji.ac.il>:Fred Drake2000-07-031-8/+106
| | | | | | | Substantial updates to reflect Moshe's Gordon's enhancements to the module. Additional changes from Fred to reflect his changes to the module as well.
* cmpfiles(): Added shallow and use_statcache parameters, with same meaningsFred Drake2000-07-031-14/+13
| | | | | | and defaults as for filecmp.cmp(). Updated docstring accordingly, and formatted it more like others in the standard library.
* Martin von Löwis <martin@loewis.home.cs.tu-berlin.de>:Fred Drake2000-07-031-40/+9
| | | | | | | This patch delegates more string functions to string object methods, uses the varargs delegation syntax, and stops using stringold. Closes SourceForge patch #100712.
* Tim-blessed documentation for math.frexp().Fred Drake2000-07-031-6/+6
|
* Checked in a wrong version.Tim Peters2000-07-021-2/+2
|
* The example_nt directory was old enough to vote. Frank StajanoTim Peters2000-07-024-419/+152
| | | | | | | | | | | | | | | | pointed out some of the problems he had following the instructions, and I stumbled into the others: MSVC has changed in several respects, Python has changed the directories into which it builds its own Windows outputs, and we grew the unusual scheme of appending "_d" to the names of debug-mode output files. This should all work with VC6 + CVS Python now. Some other Windows geek please confirm! And the less you know, the better <0.5 wink>. Explanations and examples for versions of MSVC before 6, and versions of Python before 2.0b1, have been removed, because they're too different and so confuse life. This last step I OK'ed with Guido first (indeed, 'twas his idea!).
* - changed sre.Scanner to use lastindex instead of index.Fredrik Lundh2000-07-021-2/+2
|
* - experimental: added two new attributes to the match object:Fredrik Lundh2000-07-024-13/+38
| | | | | | | | "lastgroup" is the name of the last matched capturing group, "lastindex" is the index of the same group. if no group was matched, both attributes are set to None. the (?P#) feature will be removed in the next relase.
* Repair docs for math.frexp (they were wrong).Tim Peters2000-07-021-1/+3
| | | | Reported on c.l.py by Kirill Simonov.