summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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-173-167/+203
| | | | | | | | 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-173-61/+180
|
* 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
|
* Turns out there wasn't a need to define tp_free for any of the types here.Tim Peters2003-05-161-4/+4
|
* Stopped using the old macro form of _PyObject_Del.Tim Peters2003-05-161-4/+4
|
* 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
|
* Missing parenthesis.Raymond Hettinger2003-05-161-1/+1
|
* Added some missing PyObject* casts in the deallocators.Jim Fulton2003-05-163-2/+11
| | | | | | | Added some defines for PyMODINIT_FUNC so that the examples work with Python 2.2. I think I'm done hacking this documentation. Yippie! :)
* Added a missing PyObject* cast to the dealloc examples.Jim Fulton2003-05-161-2/+10
| | | | | Added a note that the mechanism for defining new tyoes documented here only works for Python 2.2 and higher.
* Removed the out of date and no-longer-referenced xxobject.c exampleJim Fulton2003-05-161-108/+0
| | | | | type implementation. Note that this same example lives in Modules/xxmodule.c. (It is just as out of date there.)
* Removed reference to the out-of-date (and not very useful)Jim Fulton2003-05-161-23/+9
| | | | | | | Objects/xxobject.c example. Updated the discussion of type checking to refer to PyObject_TypeCheck.
* Patch #738325: Install optimized idlelib files.Martin v. Löwis2003-05-161-0/+1
|
* * Added file globbing to make it easier to check many LaTeX files.Raymond Hettinger2003-05-161-39/+60
| | | | | | | * Delimiter mismatch now prints a warning instead of raising an exception. * Offer style warnings for use of e.g. and i.e. * Bypass false positive warnings for forward slashes in urls and in /rfc822. * Put non-LaTex delimiter matching first to make -d option more reliable.
* More fixes according to SF 549151:Guido van Rossum2003-05-162-4/+13
| | | | | | | | - 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.
* Add docs for MessageBeep.Guido van Rossum2003-05-161-0/+30
|
* 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
* DB.remove() needs to set the internal DB handle to NULL after being called.Gregory P. Smith2003-05-151-4/+1
| | | | | | | (sourceforge pybsddb bug #737970). Also: don't allow other threads to run during calls that invalidate the DB handle.
* Restore Python 1.5.2 compatibility.Marc-André Lemburg2003-05-141-1/+1
|
* Forward slash warnings now only occur for potentially valid LaTeX commands.Raymond Hettinger2003-05-141-8/+8
| | | | (Idea contributed by Anthony Baxter.)
* 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
|
* [Bug #471893] Replace security material with a warning against unpicklingAndrew M. Kuchling2003-05-142-74/+31
| | | | untrusted data.
* document Stats.dump_stats(), new for Python 2.3Fred Drake2003-05-141-0/+8
|
* - 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
* When an external application we use exits normally, exit with the sameFred Drake2003-05-141-2/+4
| | | | | | exit code they returned. All other types of exit from child processes are normalized to a return code of 1. Closes SF bug #732143.
* 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.
* Fix use of 'file' as a variable name.Andrew M. Kuchling2003-05-1316-107/+108
| | | | (I've tested the fixes, but please proofread anyway.)
* Add optional 'onerror' argument to os.walk(), to control errorGuido van Rossum2003-05-133-4/+24
| | | | handling.
* Prevent script from allowing '-r12'Andrew M. Kuchling2003-05-131-1/+1
|
* Rename sum5.py to md5sum.py, because sum5.py is more interestingAndrew M. Kuchling2003-05-132-110/+81
| | | | as an example program