summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* (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.
* Fix to ismount(). Can't remember who told me this.Guido van Rossum1998-01-191-2/+3
|
* Patch by Tim O'Malley for servers that send a response looking just likeGuido van Rossum1998-01-191-2/+6
| | | | | | HTTP/1.x 200 instead of HTTP/1.x 200 OK
* Protect PyErr_Format format string argument from overflow.Guido van Rossum1998-01-191-1/+1
|
* Protect PyErr_Format format string argument from overflow (ironically,Guido van Rossum1998-01-191-1/+1
| | | | the error was about a bad format string :-).
* Instead of "attribute-less object", issue an error message thatGuido van Rossum1998-01-191-1/+4
| | | | contains the type of the object and name of the attribute.
* tok_nextc() should return unsigned characters, to avoid mistakingGuido van Rossum1998-01-191-2/+10
| | | | '\377' for EOF.
* Instead of a single exists(), differentiate between files, modules,Guido van Rossum1998-01-191-13/+70
| | | | | executable files, and directories. When expecting a module, we also look for the .pyc or .pyo file.
* Add unistd.h for isatty().Guido van Rossum1998-01-192-0/+8
|
* Add LOG_SYSLOG if defined.Guido van Rossum1998-01-191-0/+3
|
* Better #ifdefs for NetBSD, taking into account that at least on netBSDGuido van Rossum1998-01-191-3/+8
| | | | | 1.3, dlopen() etc. are fully implemented, including dlerror(). From Jaromir Dolecek and Ty Sarna.
* It seems obvious that when Py_Finalize() decides that there's nothingGuido van Rossum1998-01-191-2/+2
| | | | to do, it should not call sys.exitfunc either...
* Some patches by Lars Marius Garshol:Guido van Rossum1998-01-191-2/+17
| | | | | | - fix type_to_name(); it never worked - add path_to_selector() add path_to_datatype_name()
* Rewritten PyImport_Cleanup() and its helper, clear_carefully(). TheyGuido van Rossum1998-01-191-12/+98
| | | | | | | | | | | | | | | | | | now implement the following finalization strategy. 1. Whenever this code deletes a module, its directory is cleared carefully, as follows: - set all names to None that begin with exactly one underscore - set all names to None that don't begin with two underscores - clear the directory 2. Modules are deleted in the following order: - modules with a reference count of 1, except __builtin__ or __sys__ - repeat until no more are found with a reference count of 1 - __main__ if it's still there - all remaining modules except __builtin__ or sys - sys _ __builtin__
* Consistency: Replaced 4 {\it ...} with \emph{...}.Fred Drake1998-01-192-4/+4
|
* Added docstrings.Guido van Rossum1998-01-191-32/+63
| | | | | | | Added an optional third parameter giving the purported filename for error messages from the module. Append a newline to the code string if needed.
* Consistency: Replaced one {\tt ...} with \code{...}.Fred Drake1998-01-192-2/+2
|
* Consistency: In two places, change {\it ...} to \emph{...}.Fred Drake1998-01-192-4/+4
|
* Consistency: In two \section{} headers, change {\tt ...} to \sectcode{...}.Fred Drake1998-01-192-4/+4
|
* \funcitem{}, \dataitem{}, \excitem{}: Removed obsolete macros; there are noFred Drake1998-01-181-36/+23
| | | | | | | | | | | | | | longer used anywhere. Use the {*desc} environments instead. \var{}: Ensure that the argument is always set in roman italic, in case an alternate font is being used for code. These keeps the result of \var{} consistent. Some minor changes to allow easier exploration of alternate fonts for code in the running text. Haven't changed the selected font; I haven't found one that has everything required! (The best non-monospaced font so far was missing the <, >, and | characters, or at least had them at the wrong locations. It also allowed confusion between upper-case I and lower-case L.)
* Use \emph{} for all references to the other documents, not just some of them.Fred Drake1998-01-162-8/+8
|
* Mods by Bill BedfordJack Jansen1998-01-161-9/+50
| | | | | | | - Use internal version of finder class so we don't drag in finder tools - error -1704 also ignored during arg unpack - Use Scriptable Text Editor for example
* Addition by Bill Bedford: Ordinal and NOrdinal classes so we canJack Jansen1998-01-161-1/+26
| | | | implement "every", etc.
* SO_REUSEPORT should be SO_REUSEADDR.Guido van Rossum1998-01-151-1/+1
| | | | I found this in a mail of two and a half years ago from Yusuf Goolamabbas.
* Ouch: "accounces" ==> "announces"Fred Drake1998-01-152-2/+2
| | | | (In description of AbstractWriter class.)
* Add trace methods to class VariableGuido van Rossum1998-01-141-5/+15
|
* Added tests for qualified sub and splitGuido van Rossum1998-01-141-0/+15
|
* Seems I've found a way to fix this.Guido van Rossum1998-01-141-3/+9
|
* Consistency: "{\bf ...}" ==> "\strong{...}"Fred Drake1998-01-1434-60/+62
| | | | | | | "{\em ...}" ==> "\emph{...}" Not at all sure what to do with "{\rm ...}". Leaving it for now.
* Added the standard \label{module-*} for the two supporting modules.Fred Drake1998-01-142-0/+4
|
* Consistency: "Unix" ==> "\UNIX{}"Fred Drake1998-01-132-4/+4
| | | | Always include the comma *inside* the \optional{} markup!