summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Patch #696613 by Ben Laurie: use "test -L" to test for symlinks in steadJack Jansen2003-03-041-1/+1
| | | | of the older (and, according to some manpages, deprecated) "test -h".
* Attempting to save the shell raised an error related to savingKurt B. Kaiser2003-03-041-2/+8
| | | | breakpoints, which are not implemented in the shell
* SF 693333Kurt B. Kaiser2003-03-041-0/+3
| | | | | Modify subprocess to print a reasonable message upon receiving a 'quit' or 'exit'
* test_ioctl is an expected skip on Windows.Tim Peters2003-03-041-0/+1
|
* Fix SF #692416, don't crash interpreter for _tkinter.deletefilehandlerNeal Norwitz2003-03-032-1/+17
| | | | in addition to createfilehandler and creaetetimerhandler.
* [Bug #693470] 'licence' as an alias for 'license' doesn't work.Andrew M. Kuchling2003-03-031-1/+10
| | | | This patch makes it work again.
* SF 695861Kurt B. Kaiser2003-03-031-1/+11
| | | | | | | Eliminate extra blank line in shell output. Caused by stdout not being flushed upon completion of subprocess' Executive.runcode() when user code ends by outputting an unterminated line, e.g. print "test",
* plugged leak noted by nnorwitz: the 'et' format returns allocated memoryJust van Rossum2003-03-031-2/+4
|
* [Bug #69389] List register command in __all__, so setup.py --help-commands ↵Andrew M. Kuchling2003-03-031-0/+1
| | | | will now list it
* Improve descriptionAndrew M. Kuchling2003-03-031-1/+1
|
* Patch #683592 revisited, after discussions with MvL:Just van Rossum2003-03-033-19/+15
| | | | | | | | | | | | | | | | | | - Implement the behavior as specified in PEP 277, meaning os.listdir() will only return unicode strings if it is _called_ with a unicode argument. - And then return only unicode, don't attempt to convert to ASCII. - Don't switch on Py_FileSystemDefaultEncoding, but simply use the default encoding if Py_FileSystemDefaultEncoding is NULL. This means os.listdir() can now raise UnicodeDecodeError if the default encoding can't represent the directory entry. (This seems better than silcencing the error and fall back to a byte string.) - Attempted to decribe the above in Doc/lib/libos.tex. - Reworded the Misc/NEWS items to reflect the current situation. This checkin also fixes bug #696261, which was due to os.listdir() not using Py_FileSystemDefaultEncoding, like all file system calls are supposed to.
* py-pdbtrack-grub-for-buffer(): Rectified some logic errors iKen Manheimer2003-03-031-6/+18
| | | | | | | | | introduced when shifting around some code, and added some redundancy to reduce chances of hitting the wrong source code. (This is experimental - it will improve the accuracy, but will reduce the ability of the user to deliberately select the buffer they want the buffer grubbing stuff to find. I think the accuracy improvement will be worth it, but am not sure, so may remove this.)
* Gave the text fields a little more space, so they don't get cut off.Jack Jansen2003-03-031-4/+4
|
* Mod to previous checkin: we must require ascii, not system defautl encoding,Jack Jansen2003-03-032-2/+2
| | | | | because we have no easy way to convert the python encoding string to a CF encoding parameter.
* Accept only the system default encoding when converting PythonJack Jansen2003-03-033-8/+11
| | | | strings to CF strings. Fixes 682215.
* Fix bugMichael W. Hudson2003-03-034-18/+171
| | | | | | | | [ 555817 ] Flawed fcntl.ioctl implementation. with my patch that allows for an array to be mutated when passed as the buffer argument to ioctl() (details complicated by backwards compatibility considerations -- read the docs!).
* Don't call AEInteractWithUser unconditionally on a quit appleevent. TheJack Jansen2003-03-031-2/+0
| | | | | | EasyDIalogs methods will call it if needed. Fixes #684975.
* Call AEInteractWithUser() before bringing up any of the dialogs (with theJack Jansen2003-03-031-1/+13
| | | | | | exception of the ProgressBar, which I think is okay to show in the background). This is a prerequisitite for the fix of #684975.
* Don't crash on _tkinter.createfilehandler in non-threaded Tcl;Martin v. Löwis2003-03-031-1/+26
| | | | | disable this function in threaded Tcl. Likewise for creaetetimerhandler. Fixes #692416.
* Patch #671666: Alias ANSI code page to "mbcs".Martin v. Löwis2003-03-031-0/+16
|
* Guard advancing past leading meta-comments.Ken Manheimer2003-03-031-4/+6
|
* Enhanced pdbtrack to provide for source code that's not findable byKen Manheimer2003-03-031-29/+105
| | | | | | | | | | | | | | | | | the reported path. (Eg, precompiled scripts with a file path suitable for a different host, scripts actually running on a remote system or with no valid path, like Zope through-the-web python scripts.) On failing to find the code on the reported path, pdbtrack takes the function name and looks through the buffers, from most to least recent, seeking the first python-mode buffer that either is named for the function or has a definition (def or class) for that function. So to get source tracking for code that's not located where the path indicates, you put a copy of the script in a buffer, and pdbtrack will find it. Also, fixed a small bug so pdbtrack now properly presents the overlay arrow when you run the pdb 'w'here command.
* Use Carbon.File for FSSpec and FSRef conversion, not macfs.Jack Jansen2003-03-021-4/+4
|
* _CG module only needs the ApplicationServices framework, not Carbon.Jack Jansen2003-03-021-2/+1
|
* Undo the apply() removals; this code needs to run under Python 1.5.2.Guido van Rossum2003-03-022-14/+14
|
* MyComplex now works.Guido van Rossum2003-03-021-1/+1
|
* Fix from Greg Chapman from SF bug #695651: a complex subclassGuido van Rossum2003-03-021-2/+3
| | | | | | | | | | | | | | constructor, when passed a single complex argument, returns the argument unchanged. This should be done only for the complex base class; a complex subclass should of course cast the value to the subclass in this case. The fix also revealed a segfault in complex_getnewargs(): the argument for the Py_BuildValue() format code "D" is the *address* of a Py_complex struct, not the value. (This corroborated by the API documentation.) I expect this needs to be backported to 2.2.3.
* Commit MvL's doc patch for SF bug #221327. This adds an example ofGuido van Rossum2003-03-021-0/+22
| | | | calling into Python from a C thread.
* test_load_from_canned_string(): Created a DATA2 string to test a cannedTim Peters2003-03-021-2/+66
| | | | proto 2 pickle too.
* Add updates for alpha2Andrew M. Kuchling2003-03-021-3/+7
|
* Expand itertools paragraphAndrew M. Kuchling2003-03-021-3/+9
|
* TestOnlySetsInBinaryOps: Simplified the non-inplace tests by usingTim Peters2003-03-021-44/+16
| | | | | | assertRaises. Fixed a repeated subtle bug in the inplace tests by removing the possibilty that a self.fail() call could raise a TypeError that the test catches by mistake.
* Typo repairs in new code.Tim Peters2003-03-021-3/+7
|
* SF bug 693121: Set == non-Set is a TypeError.Tim Peters2003-03-023-23/+61
| | | | | | | | | Allow mixed-type __eq__ and __ne__ for Set objects. This is messier than I'd like because Set *also* implements __cmp__. I know of one glitch now: cmp(s, t) returns 0 now when s and t are both Sets and s == t, despite that Set.__cmp__ unconditionally raises TypeError (and by intent). The rub is that __eq__ gets tried first, and the x.__eq__(y) True result convinces Python that cmp(x, y) is 0 without even calling Set.__cmp__.
* The doctest was printing Sets, but that's unreliable because setTim Peters2003-03-011-6/+9
| | | | | elements get displayed in undefined dict order. Use a Set subclass instead (which arranges to sort the elements for display).
* Fix comment, mode really is usedNeal Norwitz2003-03-011-1/+1
|
* Fix SF patch #695581, "returnself" -> "return self"Neal Norwitz2003-03-011-1/+1
|
* get_completer() takes no argsNeal Norwitz2003-03-011-1/+1
|
* Added implementation notes for [re]set_exc_info().Guido van Rossum2003-03-011-0/+61
|
* Reindent the new code properly.Guido van Rossum2003-03-011-22/+22
|
* - New function sys.exc_clear() clears the current exception. This isGuido van Rossum2003-03-015-12/+116
| | | | | | rarely needed, but can sometimes be useful to release objects referenced by the traceback held in sys.exc_info()[2]. (SF patch #693195.) Thanks to Kevin Jacobs!
* Several of the tools can make direct calls the inner iterators.Raymond Hettinger2003-03-011-9/+24
|
* Removed duplicate test from inner loop.Raymond Hettinger2003-03-011-6/+1
| | | | The PyIter_Check is already performed by PyObject_GetIter.
* Add news item for patch #695090Andrew M. Kuchling2003-02-281-0/+4
|
* [Patch #695090 from Bernhard Herzog] Allow specifying both py_modules and ↵Andrew M. Kuchling2003-02-281-20/+6
| | | | packages
* Handle iconv initialization erorrsNeal Norwitz2003-02-281-1/+1
|
* Fix SF bugs #692951 and 692988, test_timeout.py needs 'network' resourceNeal Norwitz2003-02-283-1/+14
| | | | | require -u network to run test_timeout since it fails when not connected to a network.
* Just pointed out the code was better written withNeal Norwitz2003-02-281-25/+24
| | | | | | | try: # ... except ImportError, why: except: # ... All other changes are re-indenting/formatting.
* Fix SF bug #690012Neal Norwitz2003-02-281-0/+2
|
* Fix SF bug #690012 (among others), iconv_codec stops buildNeal Norwitz2003-02-282-6/+8
| | | | | | | | Change setup.py to catch all exceptions. - Rename module if the exception was an ImportError - Only warn if the exception was any other error Revert _iconv_codec to raising a RuntimeError.