summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* More whitespace cleanup, to satisfy tabnanny.py. Don't trust -tt!Guido van Rossum2000-09-221-15/+15
|
* Get rid of the one tab in the file.Guido van Rossum2000-09-221-1/+1
| | | | Closes Bug #115054.
* Fix for SF bug 115051: Dodgy use of PyTuple_SET_ITEM in pyexpat.cTim Peters2000-09-221-2/+1
|
* White space cleanup, including one item that was an error under -tt.Fred Drake2000-09-221-5/+5
|
* Remove debugging print. ;(Fred Drake2000-09-221-2/+0
|
* Correct some bitrot; some things have become inaccurate in the tutorial.Fred Drake2000-09-221-5/+9
| | | | | | | | | | <file>.readlines() does not call <file>.readline() internally anymore, and the sizehint parameter should be mentioned briefly. Some displays of floating point numbers needed to be updated due to the change in the repr() of floats (from 1.6). Both issues were noted by Aahz <aahz@panix.com>.
* Tweak what happens when run on non-Windows platforms: set install prefixGreg Ward2000-09-221-10/+5
| | | | | as well as scheme, and don't convert all installation paths (that's now done by the "install" command for us).
* Changed all paths in the INSTALL_SCHEMES dict to Unix syntax, and addedGreg Ward2000-09-221-43/+56
| | | | | | | | | | | | | | | | | | | | | | | 'convert_paths()' method to convert them all to the local syntax (backslash or colon or whatever) at the appropriate time. Added SCHEME_KEYS to get rid of one hard-coded list of attributes (in 'select_scheme()'). Default 'install_path_file' to true, and never set it false (it's just there in case some outsider somewhere wants to disable installation of the .pth file for whatever reason). Toned down the warning emitted when 'install_path_file' is false, since we no longer know why it might be false. Added 'warn_dir' flag to suppress warning when installing to a directory not in sys.path (again, we never set this false -- it's there for outsiders to use, specifically the "bdist_*" commands). Pulled the loop of 'change_root()' calls out to new method 'change_roots()'. Comment updates/deletions/additions.
* Fix 'convert_path()' so it returns immediately under Unix -- prevents blowingGreg Ward2000-09-221-5/+5
| | | | | up when the pathname starts with '/', which is needed when converting installation directories in the "install" command.
* Denis S. Otkidach <ods@users.sourceforge.net>:Fred Drake2000-09-211-0/+42
| | | | | | | | | | Show how code can be written to handle __getslice__ & friends in a way that is compatible with pre-2.0 versions of Python while still working with the "new" way of handling slicing. Additional explanation added by Fred Drake. This closes SourceForge patch #101388.
* Untested patch by Ty Sarna to make TELL64 work on older NetBSD systems.Guido van Rossum2000-09-211-2/+6
| | | | | According to Justin Pettit, this also works on OpenBSD, so I've added that symbol as well.
* Indent _connection_class so that it becomes HTTPS._connection_class.Martin v. Löwis2000-09-211-1/+1
|
* Lots of minor fixes, many suggested by Detlef LannertFred Drake2000-09-211-7/+8
| | | | <lannert@uni-duesseldorf.de>.
* Various tweaks and bugfixes to GetArgv. It now appears good enough for ↵Jack Jansen2000-09-211-10/+10
| | | | Distutils.
* Added dependencies on the bug-reporting text.Fred Drake2000-09-211-2/+5
|
* Include the new text on reporting bugs in a few useful places.Fred Drake2000-09-213-0/+12
| | | | This closes SourceForge bug #114792.
* New text about how to report bugs in Python and the documentation.Fred Drake2000-09-211-0/+65
|
* Updated according to the changes made to the "s#" parser markerMarc-André Lemburg2000-09-211-20/+27
| | | | and bumped the version number to 1.7.
* Added a true unicode_internal_encode function and fixed theMarc-André Lemburg2000-09-211-9/+43
| | | | | unicode_internal_decode function to support Unicode objects directly rather than by generating a copy of the object.
* Special case the "s#" PyArg_Parse() token for Unicode objects:Marc-André Lemburg2000-09-211-26/+53
| | | | | | | | | | | | "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(). The patch also adds an optimization for string objects which is based on the fact that string objects return the raw character data for getreadbuffer access and are always single-segment.
* 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
|