summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Always initialize Py_FileSystemDefaultEncoding on Unix in Py_Initialize,Martin v. Löwis2003-03-051-2/+1
| | | | | and not as a side effect of setlocale. Expose it as sys.getfilesystemencoding. Adjust test case.
* Actually *do* override the type in AppBuilder.Jack Jansen2003-03-051-1/+1
|
* Moved some application-bundle specific code from the BundleBuilder class toJack Jansen2003-03-051-5/+9
| | | | | | AppBuilder, and set the default type to BNDL (overridden in AppBuilder). This surfaced when trying to build help bundles.
* 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
|
* [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",
* [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
|
* Fix bugMichael W. Hudson2003-03-031-0/+31
| | | | | | | | [ 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!).
* 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.
* Patch #671666: Alias ANSI code page to "mbcs".Martin v. Löwis2003-03-031-0/+16
|
* 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
|
* test_load_from_canned_string(): Created a DATA2 string to test a cannedTim Peters2003-03-021-2/+66
| | | | proto 2 pickle too.
* 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-022-18/+49
| | | | | | | | | 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
|
* 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-011-0/+44
| | | | | | 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!
* [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-282-0/+12
| | | | | require -u network to run test_timeout since it fails when not connected to a network.
* Getting rid of macfs.Jack Jansen2003-02-273-9/+9
|
* Added a deprecation warning.Jack Jansen2003-02-271-0/+3
|
* M rpc.pyKurt B. Kaiser2003-02-272-43/+46
| | | | | | | | M run.py Move exception formatting out of rpc.py. This allows each end of the link to format and print exceptions how and where it sees fit and makes it easier for threads to display their own exceptions.
* Changing the window type to movable modal isn't enough to make the dialogs ↵Jack Jansen2003-02-271-0/+0
| | | | movable: apprently you also need to set a bit in the dlgx resource. Did this.
* * separate opcode definitions into opcode.pySkip Montanaro2003-02-271-178/+51
| | | | | * add disassemble_string * allow classes and strings containing bytecode to be disassembled
* new opcode module - extract opcode definitions from dis.py - eventuallySkip Montanaro2003-02-271-0/+188
| | | | should be generated automatically
* simple test case for dis moduleSkip Montanaro2003-02-271-0/+53
|
* Get rid of many apply() calls.Guido van Rossum2003-02-2738-91/+85
|
* Use floor division (// and __[r]floordiv__ in right-dispatch test.Guido van Rossum2003-02-271-23/+23
|
* Use floor division (//).Guido van Rossum2003-02-271-3/+3
|
* Module review:Raymond Hettinger2003-02-271-47/+22
| | | | | | | | | | * Changed variable name from 'list' to 'flist'. * Replaced "while 1" with "while True". * Replaced if/elif/elif/elif structure with a shorter and faster dispatch dictionary that maps attrs to methods. * Simplified and sped comparison logic by using ifilter, ifilterfalse, and dict.fromkeys. * Used True and False rather than 1 and 0.
* Module review:Raymond Hettinger2003-02-261-40/+30
| | | | | | | * Replaced "while 1" with "while True" * Rewrote read() and readline() for clarity and speed. * Replaced variable 'list' with 'hlist' * Used augmented assignment in two places.
* The macfs, macostools, and plistlib should not be expected to runFred Drake2003-02-261-0/+33
| | | | | beyond Mac OS and Darwin. I'm not even sure they should be run on Darwin, but I'll let someone more knowledgable on that tell us.
* [Bug #668662] Patch from Pearu Pearson: if a C source file isAndrew M. Kuchling2003-02-261-0/+2
| | | | | | | specified with an absolute path, the object file is also written to an absolute path. The patch drops the drive and leading '/' from the source path, so a path like /path/to/foo.c results in an object file like build/temp.i686linux/path/to/foo.o.
* use bare raise so you get the original tbJust van Rossum2003-02-261-1/+1
|
* Port test_ucn and test_unicodedata to PyUnit. Add a few tests for errorWalter Dörwald2003-02-264-266/+337
| | | | | cases increasing coverage in unicodedata.c from 87% to 95% (when the normalization tests are run). From SF patch #662807.
* use the same Python for running the bootstrap script and the main programJust van Rossum2003-02-261-1/+9
|
* remove sitecustomize hack, will be solved elsewhereJust van Rossum2003-02-261-25/+0
|
* Let's try making the dialogs at least Movable Modal.Jack Jansen2003-02-251-0/+0
|
* If a resource file cannot be decoded because the directory is readonlyJack Jansen2003-02-252-44/+41
| | | | | | | | | | | create a temporary file. This fixes #688011. Got rid of the install() method in macresource, and replaced it with a resource_filename() method which will optionally decode a given resourcefile (which may be applesingle-encoded) and return the real resourcefile. Use this new method in buildtools to copy the correct resource file to the bundle. This fixes #688007.
* Reverted the rev. 1.8 change: the magic for decoding resourcefilesJack Jansen2003-02-251-4/+0
| | | | is now in buildtools.
* tweak error messageJust van Rossum2003-02-251-2/+2
|
* - renamed the --copyfile option to --file.Just van Rossum2003-02-251-4/+6
| | | | | - tweaked the help text a little. (Jack: up to you to change your client code.)