summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* (py-comint-output-filter-function): Horrible kludgearound for makingBarry Warsaw1998-09-251-1/+4
| | | | the de-queing of exec files work for NT XEmacs 21.0.
* In PyFrame_New(), don't set extras to something derived from codeGuido van Rossum1998-09-251-1/+2
| | | | | before code has been checked for validity. Discovered by Vladimir Marangozov.
* (py-guess-indent-offset): Only print message about py-indent-offsetBarry Warsaw1998-09-251-3/+4
| | | | when in an interactive session (suggested by B. Wiener).
* (py-execute-file, py-execute-import-or-reload): Use a Python `raw'Barry Warsaw1998-09-241-2/+2
| | | | | | string in the argument to execfile() so a Windows temp directory named, e.g. c:\\tmp doesn't get interpreted as a file name with an embedded tab! (given by C. Waldman).
* Add two constants (with the same value) to specify the on-board CD input.Guido van Rossum1998-09-241-0/+2
|
* Added realclean and distclean targets to match ../Makefile.Fred Drake1998-09-231-0/+3
|
* Add define of HAVE_STDDEF_H (to 1). Suggested by Greg Stein.Guido van Rossum1998-09-231-0/+3
|
* Reworked it quite a bit. There are now two classes: a base class,Guido van Rossum1998-09-221-102/+206
| | | | | | | | | | InteractiveInterpreter, which handles parsing and interpreter state but doesn't know deal with buffering or prompting or input file naming. And a derived class, InteractiveConsole, which adds buffering and prompting and supports setting the filename once. Also tweak the algorithm in compile_command() a bit so that input consisting of all blank lines or comments always succeeds immediately, and note the fact that apart from SyntaxError it can also raise OverflowError.
* (py-block-comment-prefix): Remove trailing space. Also explain thatBarry Warsaw1998-09-221-4/+5
| | | | | | | | this string should not end with whitespace. (py-compute-indentation): Append whitespace regexp to py-block-comment-prefix so that any combination of intervening whitespace will be recognized.
* Do the check for lacking sys.stdin.fileno() *before* testing forGuido van Rossum1998-09-221-4/+4
| | | | | | Windows. If sys.stdin doesn't appear to be a real file (characterized by having a working fileno()), don't use any console specific methods -- go straight to the default.
* When sys.stdin.fileno() doesn't work, fall back to default_getpass()Guido van Rossum1998-09-211-1/+4
| | | | -- don't just die.
* Explicitly document the fact that the search method returns a MatchObject.Guido van Rossum1998-09-211-1/+2
| | | | (Reported by Gary Herron.)
* After the previous changes, func_normalize() turned out to be redundant.Guido van Rossum1998-09-211-60/+5
| | | | This simplified some other places in the code.
* Changes so that JPython can also use this version of profile.py.Guido van Rossum1998-09-211-25/+4
| | | | Suggested by Jim Hugunin.
* Get rid of the classes RModuleLoader and RModuleImporter -- these wereGuido van Rossum1998-09-211-16/+3
| | | | | only there to override reload() in a way that doesn't make a whole lot of sense and moreover broke since the latest changes in ihooks.
* Comment out 't = t[0] + t[1]' in profiler_simulation() -- thisGuido van Rossum1998-09-211-1/+1
| | | | | | function is only used when running the calibration code, and it turns out that recent changes in the timing code caused this statement to raise an exception.
* Get rid of the test for non-NULL thread state in EventHook; it can beGuido van Rossum1998-09-211-2/+0
| | | | triggered in situations that are not an error.
* When we have siginterrupt(), use it to disable restarting interruptedGuido van Rossum1998-09-211-0/+6
| | | | system calls.
* Enable the 'new' module by default.Guido van Rossum1998-09-211-1/+1
|
* Patch by Greg Stein to document the 'P' flag.Guido van Rossum1998-09-211-0/+17
|
* re.findall(): Mark as added in 1.5.2.Fred Drake1998-09-181-0/+1
|
* Patches from Greg Stein to support 'P' format in struct module'sGuido van Rossum1998-09-185-0/+96
| | | | | native format, as void* (translated to Python int or long). Also adds PyLong_FromVoidPtr and PyLong_AsVoidPtr to longobject.c.
* Get rid of 'ppp' that accidentally crept in.Guido van Rossum1998-09-171-1/+1
|
* Added optional mouseregion parameter to WaitNextEvent (which is nowJack Jansen1998-09-173-25/+56
| | | | manually generated).
* Richard Wolff's changes, documenting his changes to pdb.py.Guido van Rossum1998-09-171-13/+96
|
* Untabified and applied Richard Wolff's changes (plus my own reflowingGuido van Rossum1998-09-171-160/+110
| | | | of some paragraphs).
* Richard Wolff's additional changes; some layout nits, and change theGuido van Rossum1998-09-171-11/+11
| | | | alias delimiter to ';;'.
* Duplicate the decls for PySys_WriteStd{out,err} here so the VC++Guido van Rossum1998-09-171-0/+9
| | | | compiler doesn't grumble. Greg Stein's suggestion.
* At Greg Stein's request, add PyLong_*LongLong entry points.Guido van Rossum1998-09-171-0/+4
|
* Define SIZEOF_LONG_LONG (as 8) at Greg Stein's request.Guido van Rossum1998-09-171-0/+1
|
* In load_inst(), when instantiating an instance the old way (i.e. whenGuido van Rossum1998-09-151-4/+7
| | | | | | | there's an __getinitargs__() method), if a TypeError occurs, catch and reraise it but add info to the error about the class name being instantiated. This makes debugging a lot easier if __getinitargs__() returns something bogus (e.g. a string instead of a singleton tuple).
* Ignore the TclError exception raised when deleting the registrationGuido van Rossum1998-09-141-1/+4
| | | | | for callit, used by the after() command. This can happen when the callback deletes the window.
* Several changes that Python carry on in the face of errors in theBarry Warsaw1998-09-141-26/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | initialization of class exceptions. Specifically: init_class_exc(): This function now returns an integer status of the class exception initialization. No fatal errors in this method now. Also, use PySys_WriteStderr() when writing error messages. When an error occurs in this function, 0 is returned, but the partial creation of the exception classes is not undone (this happens elsewhere). Things that could trigger the fallback: - exceptions.py fails to be imported (due to syntax error, etc.) - one of the exception classes is missing (e.g. due to library version mismatch) - exception class can't be inserted into __builtin__'s dictionary - MemoryError instance can't be pre-allocated - some other PyErr_Occurred newstdexception(): Changed the error message. This is still a fatal error because if the string based exceptions can't be created, we really can't continue. initerrors(): Be sure to xdecref the .exc field, which might be non-NULL if class exceptions init was aborted. _PyBuiltin_Init_2(): If class exception init fails, print a warning message and reinstate the string based exceptions.
* Added the mainloop() call.Guido van Rossum1998-09-141-0/+1
|
* nannifiedGuido van Rossum1998-09-141-1/+1
|
* There was a confusion in my checkin of the code to support list() withGuido van Rossum1998-09-141-4/+4
| | | | | | | and without a message number argument: the argument was called 'msg' but the code expected it to be called 'which'. In line with the other methods, I've renamed the argument to 'which', and adapted the doc string not to refer to 'msg'.
* nannifiedGuido van Rossum1998-09-1422-1650/+1651
|
* Print serious errors to stderr instead of stdout.Guido van Rossum1998-09-143-12/+33
|
* #Code rearranging to quiet byte-compilerBarry Warsaw1998-09-141-88/+88
|
* nannifiedGuido van Rossum1998-09-141-885/+885
|
* Nannified.Guido van Rossum1998-09-141-5/+5
|
* nannifiedGuido van Rossum1998-09-141-17/+17
|
* nannified.Guido van Rossum1998-09-141-8/+8
|
* Patch by Marc-Andre Lemburg: use re module to compare test results.Guido van Rossum1998-09-141-5/+5
| | | | | This makes it possible to accept that on Linux %w returns "01" instead of "1", for example.
* Utility to replace CRLF with LF in argument files.Guido van Rossum1998-09-141-0/+19
|
* Utility to replace LF with CRLF in argument files.Guido van Rossum1998-09-141-0/+19
|
* Utility to untabify stubber results.Guido van Rossum1998-09-141-0/+50
|
* nannified.Guido van Rossum1998-09-141-70/+70
|
* Mac-specific mod to enable aliases on import paths.Guido van Rossum1998-09-142-9/+35
| | | | (Jack Jansen and/or Just van Rossum)
* Remove some unused variables from gethostbyaddr_ex and gethostbyaddr,Guido van Rossum1998-09-131-4/+0
| | | | discovered by Marc Lemburg.