summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Special case the "s#" PyArg_Parse() token for Unicode objects:Marc-André Lemburg2000-09-211-4/+4
| | | | | | | | "s#" will now return a pointer to the default encoded string data of the Unicode object instead of a pointer to the raw UTF-16 data. The latter is still available via PyObject_AsReadBuffer().
* Revise the test case for pyexpat to avoid using asserts. Conform betterFred Drake2000-09-212-28/+36
| | | | to the Python style guide, and remove unneeded imports.
* The minidom.Node class has a debug attribute which, when its _debugGuido van Rossum2000-09-211-0/+2
| | | | | | | | | | flag is true, is set to a StringIO object that silently collects all debug messages. This is triggered by the Node._debug=1 statement at the top of test_minidom.py. After the tests, we better delete that StringIO object to avoid wasting memory. We also reset the _debug flag. (Note that this is an undetectable memory leak, and the memory doesn't get collected by the cycle-gc either, because it's all reachable -- it's just useless.)
* Remove memory leaks of strings/Unicode objects passed into the characterFred Drake2000-09-211-58/+21
| | | | | | | | | | data and default handlers -- a new reference was being passed to Py_BuildValue() for the "O" format character; using "N" plugs the leak. Fixed two other (minor) leaks that occurred on various error conditions. Removed uses of the UNLESS macro, which makes code hard to read, and is Evil.
* Paul Prescod <paul@prescod.net>:Fred Drake2000-09-211-17/+27
| | | | | | | | | Add support for parsing already-opened files. Make sure the parse() method closes exactly those files that it opens. Modified by FLD for better conformance to the Python style guide. This closes SourceForge patch #101512.
* - fixed yet another gcc -pedantic warningFredrik Lundh2000-09-212-16/+52
| | | | | - added experimental "expand" method to match objects - don't use the buffer interface on unicode strings
* SAXException.__getitem__(): Raise AttributeError instead of NameError.Fred Drake2000-09-211-1/+1
|
* As suggested by Toby Dickenson, setting ob_type to NULL inGuido van Rossum2000-09-211-4/+0
| | | | _Py_Dealloc(), is a bad idea (and always was!). So let's drop it.
* Convert the longest two tables from tableii to longtableii so they do notFred Drake2000-09-211-4/+4
| | | | make too big a mess. One actually did not fit on a single page at all!
* Add new environments: longtableii, longtableiii, and longtableiv, toFred Drake2000-09-213-6/+80
| | | | | support long tables which might break across page boundaries. Otherwise identical to tableii, tableiii, and tableiv.
* Allow the LaTeX markup descriptions to use the \moreargs and \unspecifiedFred Drake2000-09-211-1/+5
| | | | macros in the argument list position.
* fix bogus references to imp; makes test_minidom succeedJeremy Hylton2000-09-211-2/+2
|
* Use PyOS_setsig() instead of signal(). Also remove redundant spacesGuido van Rossum2000-09-211-15/+15
| | | | from the FreeBSD code.
* Now uses make_parser to create its parser (patch 101573).Lars Gustäbel2000-09-211-2/+2
|
* Added the make_parser function (patch 101571).Lars Gustäbel2000-09-211-2/+67
|
* Updated XMLGenerator to new DocumentHandler interface (patch 101572).Lars Gustäbel2000-09-211-11/+30
|
* Updated to correct DocumentHandler signatures. (patch 101570)Lars Gustäbel2000-09-211-6/+23
|
* Windows installer:Tim Peters2000-09-211-9/+159
| | | | | Don't ship debug .dll, .pyd or .lib files. Saves space. Bumped the title to beta 2.
* Derived from Martin's SF patch 110609: support unbounded ints in ↵Tim Peters2000-09-214-75/+409
| | | | | | | | | | | | | | | | %d,i,u,x,X,o formats. Note a curious extension to the std C rules: x, X and o formatting can never produce a sign character in C, so the '+' and ' ' flags are meaningless for them. But unbounded ints *can* produce a sign character under these conversions (no fixed- width bitstring is wide enough to hold all negative values in 2's-comp form). So these flags become meaningful in Python when formatting a Python long which is too big to fit in a C long. This required shuffling around existing code, which hacked x and X conversions to death when both the '#' and '0' flags were specified: the hacks weren't strong enough to deal with the simultaneous possibility of the ' ' or '+' flags too, since signs were always meaningless before for x and X conversions. Isomorphic shuffling was required in unicodeobject.c. Also added dozens of non-trivial new unbounded-int test cases to test_format.py.
* Note that __getitem__() may receive a slice object as the index;Fred Drake2000-09-211-2/+3
| | | | reported by Detlef Lannert <lannert@uni-duesseldorf.de>.
* Document directories are not always named with three characters any more;Fred Drake2000-09-211-7/+7
| | | | reported by Detlef Lannert <lannert@uni-duesseldorf.de>.
* Fixed a number of small problems reported by Detlef LannertFred Drake2000-09-213-9/+8
| | | | <lannert@uni-duesseldorf.de>.
* Corran Webster: fix 'change_root()' to handle Mac OS paths.Greg Ward2000-09-211-1/+7
|
* On Unix, use O_EXCL when creating the .pyc/.pyo files, to avoid a race conditionGuido van Rossum2000-09-201-1/+31
|
* Add a definition of rl_library_version. Reported by jpettit@sourceforge.Guido van Rossum2000-09-201-0/+1
|
* .use_latex(): Make this a little smarter so that it only runs pdflatexFred Drake2000-09-201-31/+24
| | | | | once if all the temporary files are available from building a DVI file. This can avoid two runs of pdflatex.
* Clarify that the softspace attribute is used by print for state management,Fred Drake2000-09-201-0/+3
| | | | not as a user-controlled parameter.
* Add entries for the xml.sax documentation.Fred Drake2000-09-202-0/+2
|
* First cut at documentation for the xml.sax package (not including anyFred Drake2000-09-201-0/+108
| | | | sub-modules).
* change 2-space indent to 4-space indentJeremy Hylton2000-09-202-2162/+2158
|
* distutils setup scriptJeremy Hylton2000-09-201-0/+9
|
* Fix typo (newtabwith).Guido van Rossum2000-09-201-1/+1
|
* *Very* belated application of Thomas Heller's patch to handleGreg Ward2000-09-191-3/+86
| | | | | | | resource files. The gist of the patch is to treat ".rc" and ".mc" files as source files; ".mc" files are compiled to ".rc" and then ".res", and ".rc" files are compiled to ".res". Wish I knew what all these things stood for...
* Treat trailing colon in os.path.join("a:", "b") same way for DOS as inTim Peters2000-09-191-1/+1
| | | | | recent changes to ntpath.py and posixmodule.c. Thanks to Guido for pointing out the inconsistency!
* Added GetArgs dialog to EasyDialogs, a very nifty (if I may say so:-) way to ↵Jack Jansen2000-09-192-4/+236
| | | | create a unix-style sys.argv.
* This patch adds a new Python C API called PyString_AsStringAndSize()Marc-André Lemburg2000-09-198-19/+126
| | | | | | | | | | | | | which implements the automatic conversion from Unicode to a string object using the default encoding. The new API is then put to use to have eval() and exec accept Unicode objects as code parameter. This closes bugs #110924 and #113890. As side-effect, the traditional C APIs PyString_Size() and PyString_AsString() will also accept Unicode objects as parameters.
* Temporary fix for Bug #114821.Guido van Rossum2000-09-191-2/+18
| | | | | | | | | | | | | | The cause was that the replace code necessarily used a PCRE internal function to to template expansion. The fix changes the code to use an SRE internal if SRE is used, and a PCRE internal if SRE is used; in a way that should work with 1.5.2. The solution can be sped up tremendously under the assumption that the choice between sre and pre is not changed during the execution of the program; especially replace-all will be slow. But I'll leave that to someone else.
* Part of SF patch 101481: on Windows, os.path.join("a:", "b") should yieldTim Peters2000-09-191-1/+1
| | | | "a:b", not "a:/b". Similar change was made to posixmodule.c earlier.
* test_userlist.py:Tim Peters2000-09-191-39/+52
| | | | | Added new test for new __contains__ method. Extensive editing to get rid of asserts.
* SF patch 101391: implemented UserList.__contains__.Tim Peters2000-09-191-0/+1
|
* Fix test errors.Paul Prescod2000-09-192-2/+1
|
* Moshe Zadka <mzadka@geocities.com>:Fred Drake2000-09-191-0/+10
| | | | | | | Document the __contains__() method. (Patch slightly modified by FLD.) This closes SourceForge patch #101387.
* Many small clarifications, including many suggested by email.Fred Drake2000-09-191-17/+18
|
* New test cases for the StringIO moduleMartin v. Löwis2000-09-192-0/+24
|
* Don't print specific Node instances unless running verbosely.Martin v. Löwis2000-09-192-4/+10
| | | | Closes Bug #114775.
* make_nav_sectref(): Create more minimal HTML, hanging the class attributeFred Drake2000-09-191-2/+7
| | | | | off an existing anchor tag if available (I think it always is, but am not completely sure).
* Clarify a number of issues about the file-like object API based onFred Drake2000-09-191-20/+36
| | | | discussion on python-dev.
* Fixed the error reporting (raise of TestFailed) for the zip() andBarry Warsaw2000-09-191-2/+2
| | | | zip(None) tests. Found by Finn Bock a while ago.
* Randall Hopper: Add fpectl functionality patch for FreeBSD.Guido van Rossum2000-09-191-0/+15
|
* Support sizehint in _fileobject.readlines, as documented.Martin v. Löwis2000-09-191-1/+5
|