summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Ignore the new ".syn" files used to handle module synopses.Fred Drake1998-07-232-0/+2
|
* Lots of changes copied from the FrameMaker version. Also documentedGuido van Rossum1998-07-231-231/+625
| | | | some previously undocumented features.
* Several changes to support inclusion of filename in releventBarry Warsaw1998-07-231-13/+21
| | | | | | | | | | | | | | | | | | | | | exceptions: posix_error_with_filename(): New function which calls PyErr_SetFromErrnoWithFilename() The following methods have been changed to call posix_error_with_filename(): posix_1str() posix_strint() posix_strintint() posix_do_stat() posix_mkdir() posix_utime() posix_readlink() posix_open() INITFUNC(): os.error (nee PosixError) is PyExc_OSError
* PyFile_FromString(): If an exception occurs, pass in the filename thatBarry Warsaw1998-07-231-1/+2
| | | | | was used so it's reflected in the IOError. Call PyErr_SetFromErrnoWithFilename().
* PyErr_SetFromErrnoWithFilename(): New function which supports settingBarry Warsaw1998-07-231-2/+14
| | | | | | | | | | | an exception from errno, with a supplied filename (primarily used by IOError and OSError). If class exceptions are used then the exception is instantiated with a 3-tuple: (errno, strerror, filename). For backwards compatibility reasons, if string exceptions are used, filename is ignored. PyErr_SetFromErrno(): Implement in terms of PyErr_SetFromErrnoWithFilename().
* Added support for including the filename in IOErrors and OSErrors thatBarry Warsaw1998-07-231-3/+32
| | | | | | | | | | | | | | | | involve a filesystem path. To that end: - Changed IOError to EnvironmentError and added a hack which checks for arg of len 3. When constructed with a 3-tuple, the third item is the filename and this is squirreled away in the `filename' attribute. However, for in-place unpacking backwards compatibility, self.args still only gets the first two items. Added a __str__() which prints the filename if it is given. - IOError now inherits from EnvironmentError - New class OSError which also inherits from EnvironmentError and is used by the posix module.
* Added support for two new standard errors: EnvironmentError andBarry Warsaw1998-07-231-5/+16
| | | | | | | | | OSError. The EnvironmentError serves primarily as the (common implementation) base class for IOError and OSError. OSError is used by posixmodule.c Also added tuple definition of EnvironmentError when using string based exceptions.
* New global variables: PyExc_EnvironmentError and PyExc_OSErrorBarry Warsaw1998-07-231-0/+3
| | | | New function: PyErr_SetFromErrnoWithFilename(PyObject* char*)
* # Oops, correct Latex errors.Guido van Rossum1998-07-221-2/+2
|
* Document how to make a POST request with urlopen().Guido van Rossum1998-07-221-6/+25
| | | | | | | Change the argument name for quote() and quote_plus() to safe (which matches the implementation). Add doc for the *new* function urlencode().
* Speed up the implementation of quote().Guido van Rossum1998-07-221-8/+17
| | | | | | | | Fix the implementation of quote_plus(). (It wouldn't treat '+' in the original data right.) Add urlencode(dict) which is handy to create the data for sending a POST request with urlopen().
* - Added a function MoviesTask, which is the same as the method butJack Jansen1998-07-222-3/+29
| | | | | with a null movie (giving time to all active movies) - Made the graphics world parameter to SetMovieGWorld optional.
* Remove the MOOV filetype from the StandardGetFile call, so we can alsoJack Jansen1998-07-221-1/+1
| | | | open MPEG files, etc.
* Feature added by Harri Pasanen (at my suggestion): .py suffix onGuido van Rossum1998-07-221-3/+10
| | | | filename may be omitted.
* (pause_doc): Sun CC complains about newline in string literalBarry Warsaw1998-07-211-2/+2
|
* When comparing objects, always check that tp_compare is not NULLGuido van Rossum1998-07-211-3/+7
| | | | | | before calling it. This check was there when the objects were of the same type *before* coercion, but not if they initially differed but became the same *after* coercion.
* Don't use calculations on values gotten from tell(). Also use aGuido van Rossum1998-07-211-4/+11
| | | | slightly different way to test for the existence of unread.
* Add new syntax for specifying filenames on break and clear commands.Guido van Rossum1998-07-201-3/+12
|
* Untabified.Guido van Rossum1998-07-201-39/+39
|
* Update the documentation. Get rid of the section "how it works"Guido van Rossum1998-07-201-60/+18
| | | | (which is not very relevant when you're in the debugger :-).
* Added support for specifying a filename for a breakpoint, roughlyGuido van Rossum1998-07-201-40/+102
| | | | | | | | | | | | | according to an idea by Harri Pasanen (but with different syntax). This affects the 'break' and 'clear' commands and their help functions. Also added a helper method lookupmodule(). Also: - Try to import readline (important when pdb is used from/as a script). - Get rid of reference to ancient __privileged__ magic variable. - Moved all import out of functions to the top. - When used as a script, check that the script file exists.
* Fix another bug in ESR's changes. In order to work properly,Guido van Rossum1998-07-201-4/+2
| | | | | onecmd(line) must return the value returned by emptyline() or default(line).
* Complete the addition of libthreading.tex. (Isn't it annoying thatGuido van Rossum1998-07-202-0/+5
| | | | you need to edit four files in order to add one section to the manual?)
* Add missing initializer for self._backupfilename. Due to Ralph Butler.Guido van Rossum1998-07-201-0/+1
|
* Modest speed improvement to escape() by Piet van Oostrum.Guido van Rossum1998-07-201-5/+5
|
* Patch by Piet van Oostrum to avoid calculating with the result ofGuido van Rossum1998-07-201-6/+5
| | | | | | | fp.tell() -- that won't work on Windows. (A patch for rfc822 is still needed for one case where it finds a bad header line and wants to back up.)
* Add libthreading.tex to LIBFILES.Fred Drake1998-07-201-1/+1
|
* Added libthreading.tex ; this is mostly the contents of threading_api.py,Andrew M. Kuchling1998-07-201-0/+561
| | | | with LaTeX markup added, and some small rewrites to improve the prose.
* Measure performance of sub(), split(), findall().Guido van Rossum1998-07-171-0/+23
|
* Add test for failure of the getattr call in pcre_expand() -- it usedGuido van Rossum1998-07-171-0/+4
| | | | to core dump if the first argument did not have a "group" attribute.
* Get a 3- to 4-fold speedup for sub()/subn(), split() and findall() byGuido van Rossum1998-07-171-38/+71
| | | | | | | | not calling self.search(); instead, call self.code.match() directly and interpret the list of registers it returns directly. This saves the overhead of instantiating a MatchObject for each hit, basically inlining search() as well as group(). When a MatchObject is still needed, one is allocated and reused for the duration of the scan.
* Added tests for findall().Guido van Rossum1998-07-171-1/+21
| | | | | Added test for m.groups() with default. Added a few prints announcing various tests in verbose mode.
* Eric Raymond documents two already-existing functions (bmp, png).Guido van Rossum1998-07-171-0/+2
|
* I_getattr(),Fred Drake1998-07-171-1/+7
| | | | | O_getattr(): Added read-only access to the closed attribute, based on comment from Michael Scharf <Michael.Scharf@Rhein-Neckar.de>.
* Add tests for array self-assigns. (This one has no relevance to JPython.)Guido van Rossum1998-07-161-1/+28
|
* Add tests for list self-assigns. (Sorry, this should have been hereGuido van Rossum1998-07-161-0/+13
| | | | before JPython 1.0 came out.)
* Avoid using calloc(). This triggered an obscure bug on multiprocessorGuido van Rossum1998-07-161-1/+2
| | | | | | | Sparc Solaris 2.6 (fully patched!) that I don't want to dig into, but which I suspect is a bug in the multithreaded malloc library that only shows up when run on a multiprocessor. (The program wasn't using threads, it was just using the multithreaded C library.)
* From: Nicolas CHAUVAT <nico@caesium.fr>Guido van Rossum1998-07-161-1/+1
| | | | | | | | | | In the bbox method of Group (Canvas.py file), you should read return self.canvas._getints(self._do('bbox')) instead of return self._getints(self._do('bbox'))
* Show how to do switchable panels.Guido van Rossum1998-07-151-0/+54
|
* Tk.__init__(): In computing baseName, add ".pyo" to list of droppedFred Drake1998-07-151-1/+2
| | | | | extensions, and include the "." in ".pyc". Still need to get _tkinter.c:Tkapp_New() to use baseName....
* Temporarily get rid of the registration of Tcl_Finalize() as aGuido van Rossum1998-07-141-0/+5
| | | | | | | | | low-level Python exit handler. This can attempt to call Python code at a point that the interpreter and thread state have already been destroyed, causing a Bus Error. Given the intended use of Py_AtExit(), I'm not convinced that it's a good idea to call it earlier during Python's finalization sequence... (Although this is the only use for it in the entire distribution.)
* Better RFC 821 compliance (MAIL and RCPT, and CRLF in data)Guido van Rossum1998-07-131-15/+37
| | | | by Carey Evans <c.evans@clear.net.nz>, for picky mail servers.
* Added a delete() method to menu entries. Only the last entry of a menuJack Jansen1998-07-131-1/+14
| | | | | can be deleted, but that's good enough for things like a "Windows" menu with the dynamic list of open windows at the end of the menu.
* Added prototypes for the code resource routines, and for PstringJack Jansen1998-07-132-1/+4
| | | | (which was missing, for some reason).
* If the preference filename resource is empty don't try to open orJack Jansen1998-07-131-4/+13
| | | | | | create the preferences file. This is so that frozen programs don't interfere with an existing Python installation, or leave turds in the Preferences folder.
* All import-related code has moved to macimport.c.Jack Jansen1998-07-132-224/+416
| | | | | | | | | There's also new support for importing code fragments: if a file on sys.path contains a PYD resource with resourcename equal to the name of the module to be imported this PYD resource should contain a (pascal) string with the name of a code fragment to load. This allows freezing Python programs without access to source or a development environment.
* Added macimport.c to various filesJack Jansen1998-07-1314-5028/+5127
|
* Add an empty PYTHONPREFSFILE STR resource, so frozen applicationsJack Jansen1998-07-131-81/+82
| | | | don't try to open/create the preferences file.
* Add special case to PySequence_List() so that list() of a list isGuido van Rossum1998-07-101-0/+6
| | | | | | faster (using PyList_GetSlice()). Also added a test for a NULL argument, as with PySequence_Tuple(). (Hmm... Better names for these two would be PyList_FromSequence() and PyTuple_FromSequence(). Oh well.)
* Small changes to map() and filter():Guido van Rossum1998-07-101-5/+8
| | | | | | | (1) If a sequence S is shorter than len(S) indicated, don't fail -- just use the shorter size. (I.e, len(S) is just a hint.) (2) Implement the special case map(None, S) as list(S) -- it's faster.