summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Undo victim of careless global substitute ("long long_hash" wasGuido van Rossum1998-09-131-1/+1
| | | | | changed to "LONG_LONG_hash" in the list of forward decls). Discovered by Jason Harper.
* Don't remember...Jack Jansen1998-09-131-1/+1
|
* Richard Wolff's changes:Guido van Rossum1998-09-121-67/+185
| | | | pdb.doc Updated to reflect better the various changes.
* Richard Wolff's changes:Guido van Rossum1998-09-111-59/+351
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pdb.py Uses the Breakpoint class so one can enable/disable breakpoints, set temporary ones, set ignore counts, and conditions. The last can be set using the 'b' command b 243 , i>4 ( b 243,i>4 if you are space adverse) or with the condition command so conditions can be changed for a particular breakpoint. Breakpoints are numbered from 1 on, and if a breakpoint is deleted, the number is not reused. All the breakpoint handling commands refer to breakpoints by number. To be consistent, the clear command does so as well, which is the one change from the original pdb that is not transparent. Thus only the breakpoint command 'b' uses a line number or file:line or method. You can also give b whrandom.random and the method will be searched for along sys.path. This is implemented with an 'egrep' command and so is not as portable as it might be. [ see lineinfo() and lineinfoCmd ] Breakpoints cannot be set at a line that is blank or a '#' comment or starts a triply quoted comment. This is because I would like this behavior in my DDD interface and think it reasonable for pdb as well. It can be removed readily, however as it is all incorporated in the routine checkline(). If one attempts to set a breakpoint at a 'def' line, the breakpoint is automatically moved to the first executable line after the 'def'. This too is in checkline(). do_EOF() returns zero so typing an end-of-file character as a command does nothing. 'quit' does the quitting. The routine defaultFile() is present so as to preserve the current pdb behavior and yet allow me to override it in pydb. There's some code in lineinfo() that is probably mainly useful only for pydb and if you prefer, much up to the comment "Best first guess" could be removed. Keith Davidson provided the code for handling $HOME/.pdbrc and ./.pdbrc, and it has been incorporated. He also provided the alias handling routine. I modified it a bit so it could live nicely in precmd(). He and I have been in contact; he has the new pdb (and pydb) with his code incorporated. He also asked about the possibility of allowing multiple commands on one line, such as step;step or s;s or with an alias such as alias ct tbreak %1 ; continue and since it was so easy, that's in place as well. It's a simple 'split the line at the first ";"' operation and puts the second half in the command queue (self.cmdqueue). This has the unfortunate effect of destroying a line like print "i: "+i+"; j: "+j but either there's a simple way to deal with this, or my attitude will remain that pdb is a debugger, not a compiler/parser/etc. An alias like alias 4s s;;s; will work because the adjacent and trailing ";" act like a <cr> which repeats the last command. Of course, either s;s;s;s or s;;; would be a bit more sensible. The help commands have been updated.
* Richard Wolff's changes:Guido van Rossum1998-09-111-23/+172
| | | | | | | | | bdb.py now has a class definition called Breakpoint along with associated methods. There's no reason why this class has to be there; if you prefer it elsewhere, 'tis easily done. (Minor reformatting by GvR; e.g. moved Breakpoint's doc string to proper point.)
* Richard Wolff's changes:Guido van Rossum1998-09-111-1/+16
| | | | | | | | cmd.py has incorporated the changes we discussed a couple of weeks ago (a command queue, returning line from precmd, and stop from postcmd) and some changes to help that were occasioned because I wanted to inherit from pdb which inherits from cmd.py and the help routine didn't look for commands or the associated help deeply enough.
* Add a \label to the section "Fancier Output Formatting" (it's referenced fromFred Drake1998-09-111-156/+89
| | | | | | the KOE docs). Some markup nits.
* Markup nits.Fred Drake1998-09-101-36/+36
|
* correct bogus instructions 'ccoment out' -> 'uncomment'Jeremy Hylton1998-09-101-1/+1
|
* do_cmd_methodlineni(): New function, needed because the ref. manual nowFred Drake1998-09-101-0/+9
| | | | actually uses this markup.