summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Whitespace NormalizationKurt B. Kaiser2003-05-181-29/+29
|
* Whitespace NormalizationKurt B. Kaiser2003-05-184-23/+23
| | | | | | Modified Files: config-extensions.def config-highlight.def config-keys.def config-main.def
* Add another error case to the insert test.Walter Dörwald2003-05-181-0/+1
|
* Port test_array and test_winsound to PyUnit. Enhance tests for arrayWalter Dörwald2003-05-183-380/+920
| | | | | | (code coverage for Modules/arraymodule.c is at 91%) From SF patch #736962.
* Show Freddy the mirrorKurt B. Kaiser2003-05-171-7/+15
| | | | i.e. improve subprocess exit paths and exeception reporting
* User cStringIO instead of StringIO.Raymond Hettinger2003-05-171-2/+2
|
* Revert some changes back to dict.items made in a previous patch.Brett Cannon2003-05-171-2/+2
|
* datetime.timedelta is now subclassable in Python. The new test showsTim Peters2003-05-171-0/+31
| | | | | | | | one good use: a subclass adding a method to express the duration as a number of hours (or minutes, or whatever else you want to add). The native breakdown into days+seconds+us is often clumsy. Incidentally moved a large chunk of object-initialization code closer to the top of the file, to avoid worse forward-reference trickery.
* Added icon for IDLE on OS XTony Lownds2003-05-172-0/+1
|
* minor fix, jython-only. Don't asssume stdout to save is the ur-stdout.Samuele Pedroni2003-05-171-1/+2
|
* datetime.datetime and datetime.time can now be subclassed in Python. Brr.Tim Peters2003-05-171-31/+131
|
* Nigel Rowe's PatchKurt B. Kaiser2003-05-171-5/+5
| | | | | | | [ 735527 ] Re Bug [ 678325 ] ParenMatching Missing AutoIndent AutoIndent was merged with EditorWindow, this patch corrects the references in ParenMatch.
* Noam Raphael's patch.Kurt B. Kaiser2003-05-175-14/+52
| | | | | | | | | | | | | | | | SF Patch 686254 "Run IDLEfork from any directory without set-up" Allows IDLE to run when not installed and cwd is not the IDLE directory. I took the liberty of moving it to the startup scripts since once IDLEfork is again a part of Python it will be superfluous and I don't want it to be forgotten. But it is very useful for those using IDLEfork standalone! M CREDITS.txt M NEWS.txt M idle M idle.py M idle.pyw
* simpler temp dir cleanupSkip Montanaro2003-05-171-8/+6
|
* beefed up version: jython support, covers now fixed differences between ↵Samuele Pedroni2003-05-171-11/+105
| | | | CPython/Jython.
* test_subclass_date(): Beefed this up, to check that new instanceTim Peters2003-05-171-2/+28
| | | | | | | attributes and methods work, that new arguments can be passed to the constructor, and that inherited methods and attrs still work. Added XXX comments about what to do when datetime becomes usably subclassable too (it's not yet).
* Include module name in doctest summary.Raymond Hettinger2003-05-171-1/+1
|
* Use test_support.run_doctest()Raymond Hettinger2003-05-171-3/+3
|
* Provide a clue that the doctests have run.Raymond Hettinger2003-05-171-1/+3
|
* Minor cleanups.Raymond Hettinger2003-05-161-5/+1
|
* Remove usage of re module from encodings package search function.Marc-André Lemburg2003-05-161-4/+19
|
* test_fileno(): Skip this test on Windows.Tim Peters2003-05-161-13/+17
|
* More fixes according to SF 549151:Guido van Rossum2003-05-161-4/+8
| | | | | | | | - When redirecting, always use GET. This is common practice and more-or-less sanctioned by the HTTP standard. - Add a handler for 307 redirection, which becomes an error for POST, but a regular redirect for GET and HEAD.
* Don't replace an empty line with "pass" when symbol == "eval", whereGuido van Rossum2003-05-161-1/+2
| | | | | "pass" isn't valid syntax. Reported by Samuele Pedroni on python-dev (May 12, 2003).
* 1. When a module is run from an EditorWindow, if its directory is not inKurt B. Kaiser2003-05-152-5/+19
| | | | | | | | | | | | | | sys.path, prepend it. This allows the module to import other modules in the same directory. Do the same for a script run from the command line. 2. Tweak the IDLE usage message a bit more. SF Bug 706860 (closed) SF Patch 686254 (reject specific solution) SF Patch 507327 (similar) M PyShell.py M ScriptBinding.py
* 1. Add a command line switch to run without the subprocessKurt B. Kaiser2003-05-152-18/+33
| | | | | | | | | | 2. Remove the shell menu and associated bindings when running without the subprocess. 3. Update the IDLE Help and usage text. 4. Update display_port_binding_error to suggest using -n M PyShell.py M help.txt
* 1. Make the startup more robust by not spawning the subprocess if IDLEKurt B. Kaiser2003-05-151-6/+3
| | | | | can't acquire the port to listen on. 2. Shorten the retry and simplify the messages.
* 1. Restore the capability to run and debug without a subprocess.Kurt B. Kaiser2003-05-153-54/+98
| | | | | | | | | | | | | | | | | 2. Add an indicator to the shell startup notice when running w/o subprocess. 3. Improve exception reporting when running a command or script from the command line. 4. Clarify the fact that breakpoints set or cleared after a file is saved will revert to the saved state if the file is closed without re-saving. 5. If user tries to exit or restart when user code is running, interrupt the user code. This helps to eliminate occasional hanging subprocesses on Windows (except for Freddy :). M NEWS.txt M PyShell.py M ScriptBinding.py
* Restore Python 1.5.2 compatibility.Marc-André Lemburg2003-05-141-1/+1
|
* On Windows the subprocess was not exiting during a restart.Kurt B. Kaiser2003-05-141-0/+2
| | | | | | | | | | | This bug, henceforth designated Freddy, was due to the mistaken elimination of the KeyboardInterrupt exception at the previous revision. PyShell's unix_terminate hammer was masking the problem on Linux. On W2K the subprocess MainThread was trying to print the exception after the SockThread had ceased to service the socket. The subprocess would then detach and spin when the GUI created the new subprocess. Modified Files: run.py
* defer re module imports to help improve interpreter startupSkip Montanaro2003-05-141-1/+4
|
* - add a dump_stats() method similar to that of the profile.Profile classFred Drake2003-05-141-2/+10
| | | | - don't use "file" as the name of local variables
* Fleshed out tests for urllib requiring a network connection.Brett Cannon2003-05-141-3/+123
|
* Call time.tzset (if available) just before calculating possible timezones ↵Brett Cannon2003-05-131-0/+4
| | | | from time.tzname.
* Add optional 'onerror' argument to os.walk(), to control errorGuido van Rossum2003-05-131-3/+12
| | | | handling.
* 1. The command-line arguments for subprocesses no longer need to beTony Lownds2003-05-134-64/+35
| | | | | | | specialized for Mac OS X. 2. buildapp.py - a new file for building an application icon for IDLE on Mac OS X. See INSTALL.txt
* Fixed test_anydbm_creates to use proper paths for the created db.Brett Cannon2003-05-131-5/+11
| | | | Made some stylistic fixes.
* Whitespace normalization.Tim Peters2003-05-127-25/+24
|
* Effectively renamed tokenize_tests.py to have a txt extension instead.Tim Peters2003-05-122-1/+1
| | | | | | | | | This file isn't meant to be executed, it's data input for test_tokenize.py. The problem with the .py extension is that it uses "non-standard" indentation, and it's good to test that, but reindent.py keeps wanting to fix it. But fixing the indentation causes the expected-output file to change, since exact line and column numbers are part of the tokenize.tokenize() output getting tested.
* Close the file after tokenizing it. Because the open file object wasTim Peters2003-05-121-2/+5
| | | | | bound to a module global, the file object remained opened throughout the test suite run.
* Remove assert that checked if a parameter was an instance of Request. ↵Brett Cannon2003-05-121-1/+0
| | | | Closes patch #639139.
* Change Request.add_header to call string.capitalize in order to normalizeBrett Cannon2003-05-121-7/+8
| | | | | | headers and not have any dependency on case. Closes patch #649742. Also changed all instances of dict.items to dict.iteritems where appropriate.
* Update for SF 71033 and changes to subprocess threadingKurt B. Kaiser2003-05-121-1/+13
|
* 1. RemoteDebugger now runs user code in subprocess MainThreadKurt B. Kaiser2003-05-123-54/+61
| | | | | | | | | | | 2. run.py: move exception printing to toplevel to allow access from main() 3. Clarification in PyShell.py: when the subprocess is restarted, the debugger GUI is reused with a fresh instance of the subprocess debugger. M PyShell.py M RemoteDebugger.py M run.py
* Beefed up timezone support. UTC and GMT are now always recognized timezonesBrett Cannon2003-05-112-12/+29
| | | | | with values of 0. Also now check time.daylight to see if time.tzname[1] should be used in timezone checking.
* Patch #734231: Update RiscOS support. In particular, correctMartin v. Löwis2003-05-1013-23/+27
| | | | riscospath.extsep, and use os.extsep throughout.
* All two more modules with __all__.Raymond Hettinger2003-05-101-0/+2
|
* [ SF 710733 - Martin v. Loewis] Improving source encoding dialogKurt B. Kaiser2003-05-103-13/+101
| | | | | | M IOBinding.py M config-main.def M configDialog.py
* 1. Update debugger to not trace RPC code even when calling Queue andKurt B. Kaiser2003-05-103-33/+17
| | | | | | | | | | | threading modules. Can debug user code which imports these modules, though. 2. Re-enable debugger in PyShell. 3. Remove old code implementing previous approaches to this issue. M Debugger.py M PyShell.py M rpc.py
* Replace line somehow deleted before last checkin.Jeremy Hylton2003-05-091-0/+1
|