summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* New version of xmllib from Sjoerd.Guido van Rossum1998-01-294-81/+283
| | | | | | | | | | | | | The main incompatibility is that the error reporting method is now called as parser.syntax_error(msg) instead of parser.syntax_error(lineno, msg) This new version also has some code to deal with the <?xml?> and <!DOCTYPE> tags at the start of an XML document. The documentation has been updated, and a small test module has been created.
* Add Piet van Oostrum's name to the comments.Guido van Rossum1998-01-291-1/+2
|
* Add simple Unix socket example by Piet van Oostrum.Guido van Rossum1998-01-283-1/+27
|
* Fixed typo reported by Grzegorz Makarewicz <mak@mikroplan.com.pl>.Fred Drake1998-01-281-1/+1
|
* (This fix is really by Jeremy)Guido van Rossum1998-01-271-22/+29
| | | | | | | | | | | Here's my suggested replacement for gzip.py for 1.5.1. I've re-implemeted methods readline and readlines, added an _unread, and tweaked read and _read. I tried a more complicated buffer scheme for unread (using a list of strings and string.join), but it was more complicated and slower. This version is a lot faster than the current version and is still pretty simple.
* Add a note explaining that multiplying a sequence with a negativeGuido van Rossum1998-01-272-2/+10
| | | | | number is the same as multiplying it with zero, and yields an empty sequence.
* Initial revisionBarry Warsaw1998-01-271-0/+23
|
* Unpickler.load_inst(), Unpickler.load_obj(), Unpickler.load_build():Barry Warsaw1998-01-261-7/+28
| | | | | | | | | | | | Fixed problems when unpickling in restricted execution environments. These methods try to assign to an instance's __class__ attribute, or access the instances __dict__, which are prohibited in REE. For the first two methods, I re-implemented the old behavior when assignment to value.__class__ fails. For the load_build() I also re-implemented the old behavior when inst.__dict__.update() fails but this means that unpickling in REE is semantically different than unpickling in unrestricted mode.
* get(): Fixed a bug in the merge order of the dictionaries. This makesBarry Warsaw1998-01-261-3/+4
| | | | | a copy of the defaults dictionary and merges the section's dictionary into it so that sections can override the defaults.
* Py_AtExit(): Added brief note about the constraint on cleanup functions notFred Drake1998-01-262-12/+18
| | | | calling the Python API.
* Paint demo by Dave Mitchell. There's clearly a demand for such aGuido van Rossum1998-01-261-0/+60
| | | | demo, so here it is.
* Use \url{} to mark a URL.Fred Drake1998-01-224-10/+10
|
* Use \url{} to mark URLs, \email{} to mark an email address.Fred Drake1998-01-222-4/+4
|
* Use \url{} to mark URLs.Fred Drake1998-01-224-20/+20
|
* Fixed indexing of {datadesc} environments.Fred Drake1998-01-221-21/+5
| | | | | | | | | Removed " (byte code instruction)" from the output of the {opcodedesc} environment; this should only appear in the index (which it now does). Removed some really old cruft related to otherwise removed debugging code. (I *think* assignments to $* set & clear auto-flush of <STDOUT>, but don't really remember. Removing them seems to not change anything!)
* \seemodule{}: Use logical markup for the module name, to ensure it picks upFred Drake1998-01-221-1/+1
| | | | | any changes introduced there. Also ensure a little more space between the module name and the parenthesized comment.
* Added descriptions for log() and log10().Fred Drake1998-01-222-16/+34
| | | | | | | Clarified that floor() and ceil() return reals. Same for the integer part returned by modf(). Some markup consistency changes.
* Add support for the new macros, including hyperlink generation for \url{}.Fred Drake1998-01-221-5/+28
|
* Converted to use new macros. This example demonstrate \method{} and, moreFred Drake1998-01-222-32/+34
| | | | importantly, \url{}.
* Converted to use semantic markup. This is an example of how many of the newFred Drake1998-01-222-72/+78
| | | | constructs should be used.
* Revised new macros after discussion with Guido: Always use full names ofFred Drake1998-01-221-6/+10
| | | | | | | | | | | | semantic concepts. Added two new ones (not discussed with Guido: \constant{}: Markup for constants defined in Python modules. \cfunction{}: Markup for C functions; these should probably be distinguished by font, but are not at this time (since they're typically \code{} at this point).
* (py-outdent-p): When looking at the previous line, watch out forBarry Warsaw1998-01-211-1/+3
| | | | | | | | | | | | | | | continuation lines. This fixes this bug report, reported by Frank Stajano. # But if I split the "raise" line and reindent, the else WRONGLY goes up a # level (?!?) while condition1: if condition2: raise error3, \ moreInfo4 else: # meant to close "if condition2" action5()
* (py-goto-initial-line): Shut up the byte compiler.Barry Warsaw1998-01-211-1/+1
|
* (py-mode-map): Add a binding of C-m to py-newline-and-indent. This isBarry Warsaw1998-01-211-1/+2
| | | | | | | | | | | a religious issue: RMS decrees that the Enter (RET) key should just do a newline and a LFD (C-j) should do a newline and indent (i.e. the python-mode version of this). Almost everyone I know disagrees and finds that RET should do newline and indent. Almost everyone hacks their modes to do this, if they know how. Because it's hard for newbies to figure out how to do this, and because most DOS keyboards lack a LFD (leaving users to the more obscure C-j), I think it makes better sense to add this default binding.
* Add entry for copy_reg module.Fred Drake1998-01-212-0/+6
|
* Removed entry for copy_reg module.Fred Drake1998-01-212-4/+0
|
* $(LIBFILES): Added libcopyreg.tex.Fred Drake1998-01-211-1/+1
|
* Add entry for copy_reg module.Fred Drake1998-01-212-0/+2
|
* Simple documentation of the copy_reg module.Fred Drake1998-01-212-0/+56
| | | | | | Guido, you should probably look at this. The pickle documentation is out of date; I don't see anything about the __reduce__() stuff or the __safe_for_unpickling__ attribute.
* Update comment about relative URL internet draft to reflect current RFC status;Fred Drake1998-01-212-10/+14
| | | | | | index references the appropriate RFCs. Consistency: Always use trailing "()" on function names in running text.
* (py-compute-indentation): In the most common case, where indentationBarry Warsaw1998-01-201-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | is based on the line above, watch out for landing inside a triple quoted string. In this case, use iterative search + parse-partial-sexp backwards to find the beginning of the string. Note this does affect performance, but very little in the common cases (I hope). It could be made *much* faster by adding Emacs and XEmacs dependent code -- different code naturally. :-( Fixes the following reported bug: if len(sys.argv) >= 6: # More lines here fptr = open('/etc/hosts', 'w') fptr.write("""# /etc/hosts -- autocreated by /etc/ppp/ip-up # # Address from pppd %-15s %s # For loopbacking 127.0.0.1 localhost 255.255.255.255 broadcast """ % (ipaddr, ipname) ) os.chmod('/etc/hosts', 0644)
* (py-master-file): New buffer-local variable which can be set in theBarry Warsaw1998-01-201-0/+24
| | | | | | | | | file local variable section of a file. When set, and the user hits C-c C-c, this file gets executed instead of the buffer's file. Idea given by Roy Dragseth <royd@math.uit.no>, but implemented differently. (py-execute-buffer): Support py-master-file variable. If this names a relative path, default-directory is prepended via expand-file-name.
* Added a bunch of "concept" index entries.Fred Drake1998-01-202-8/+22
| | | | Use trailing "()" on function names in running text.
* Added index entry and \label{} for exceptions module. This isn't in theFred Drake1998-01-202-0/+4
| | | | | normal modules portion of the manual, but that's the basic effect of this section with the 1.5 change in exception support.
* Always mark variables in the "Notes" following a table the same way as in theFred Drake1998-01-202-2/+6
| | | | | | tables: \var{} Add a couple of index entries to the File Objects section.
* Removed bogus index entry for the type() built-in.Fred Drake1998-01-202-4/+2
| | | | | Marked title of the Python Reference Manual as \emph{}, like other Python manual titles.
* Proposed new macros: see comments. These are not yet used.Fred Drake1998-01-201-0/+20
| | | | | | | | | These are intended to support semantic markup. There are a number of places in the documentation where the exact meaning of an indentifier marked \code{} in the running text is ambiguous (could be a module or a class, a function or a method, etc.). These are intended to clarify the intent of the identifier for processing applications and more intelligent style processing.
* Consistency: "{\tt ...}" ==> "\code{...}"Fred Drake1998-01-202-2/+2
|
* Consistency: "{\it ...}" ==> "\emph{...}"Fred Drake1998-01-202-4/+4
|
* The soundex module is built-in, not standard.Fred Drake1998-01-202-6/+6
| | | | "--" ==> "---"
* Consistency: {\it ...} ==> \emph{...}Fred Drake1998-01-202-2/+2
|
* ni is a standard module, not a built-in module. The only other reference toFred Drake1998-01-202-4/+4
| | | | it already got it right.
* Consistency: (Yes, I know this section is not formatted by default, andFred Drake1998-01-202-16/+20
| | | | | | | | | | isn't likely to be of much interest these days....) {\tt ...} ==> \code{...} Added \label{module-blat} for the two supporting modules. Added index entries for referred-to modules.
* Renamed Jim's PyErr_[JF]Format() to cPickle_ErrFormat(). It's not aGuido van Rossum1998-01-191-11/+10
| | | | standard Python API function so it should not have a Py prefix.
* Removed a confusing note about coercions and __r*__ operators.Guido van Rossum1998-01-194-153/+148
|
* Various updates to the effect that the group argument is always optional.Guido van Rossum1998-01-192-22/+30
| | | | Also documented that groups() now always returns a tuple.
* Add note about dropping latex 2.09 compatibility.Guido van Rossum1998-01-191-0/+1
|
* Revamped, to match py_compile.py:Guido van Rossum1998-01-191-58/+97
| | | | | | - added docstrings - support option to specify a different purported directory name - reindented with 4 spaces
* Add Gopher to list of protocols that support query strings.Guido van Rossum1998-01-191-0/+1
|
* Fix bad new bug in ftp code -- the test for existing file using NLSTGuido van Rossum1998-01-191-0/+4
| | | | would set the transfer to text mode instead of the specified mode.