summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* New rule for tzinfo subclasses handling both standard and daylight time:Tim Peters2003-01-201-20/+27
| | | | | | | | | | | | When daylight time ends, an hour repeats on the local clock (for example, in US Eastern, the clock jumps from 1:59 back to 1:00 again). Times in the repeated hour are ambiguous. A tzinfo subclass that wants to play with astimezone() needs to treat times in the repeated hour as being standard time. astimezone() previously required that such times be treated as daylight time. There seems no killer argument either way, but Guido wants the standard-time version, and it does seem easier the new way to code both American (local-time based) and European (UTC-based) switch rules, and the astimezone() implementation is simpler.
* ...and the old pyclbr.py faked Function instances with Class instancesKurt B. Kaiser2003-01-201-1/+4
| | | | | which had empty method and super attributes. ClassBrowser.IsExpandable() could not handle the missing attributes. SF Bug 667787.
* Add comments and remove duplicate tests.Walter Dörwald2003-01-201-26/+34
|
* Port test_userdict.py to PyUnit. From SF patch #662807,Walter Dörwald2003-01-191-193/+233
| | | | with additional tests for setdefault(), pop() and popitem().
* Port test_unicode.py to PyUnit and add tests for errorWalter Dörwald2003-01-192-872/+1039
| | | | | | cases and a few methods. This increases code coverage in Objects/unicodeobject.c from 81% to 85%. (From SF patch #662807)
* Combine test_b1.py and test_b2.py into test_builtin.py,Walter Dörwald2003-01-194-1104/+1075
| | | | | | | | port the tests to PyUnit and add many tests for error cases. This increases code coverage in Python/bltinmodule.c from 75% to 92%. (From SF patch #662807, with assert_(not fcmp(x, y)) replaced with assertAlmostEqual(x, y) where possible)
* SF patch #634557: inspect.BlockFinder didn't do a good enough job findingRaymond Hettinger2003-01-191-0/+2
| | | | | | the end of code blocks. Patch contributed by Patrick O'Brien.
* SF patch 670194: Performance enhancement for _strptime.py.Tim Peters2003-01-191-20/+36
| | | | | From Brett Cannon. Mostly speedups via caching format string -> compiled regexp.
* SF bug #668906: class browser raises AttributeErrorRaymond Hettinger2003-01-191-1/+1
| | | | | | | | The Py2.3 updates to the pyclbr module return both Class and Function objects. The IDLE ClassBrowser module only knew about Class and could not handle objects which did not define "super". Fixed by adding a guard.
* SF patch #670423: Add missing identity tests to operator.cRaymond Hettinger2003-01-181-0/+11
|
* SF patch 670012: Compatibility changes for _strptime.py.Tim Peters2003-01-182-138/+127
| | | | | | | | | | | | | | | Patch from Brett Cannon: First, the 'y' directive now handles [00, 68] as a suffix for the 21st century while [69, 99] is treated as the suffix for the 20th century (this is for Open Group compatibility). strptime now returns default values that make it a valid date ... the ability to pass in a regex object to use instead of a format string (and the inverse ability to have strptime return a regex object) has been removed. This is in preparation for a future patch that will add some caching internally to get a speed boost.
* Fixed the first two bugs in the new file dialogs (found by Just):Jack Jansen2003-01-171-1/+2
| | | | | - AskFileForSave didn't work for string return values - filterProc didn't work.
* make sure src exists before creating a symlinkJust van Rossum2003-01-171-0/+2
|
* * Migrate sample distribution test from random.py to test_random.py.Raymond Hettinger2003-01-172-10/+22
| | | | * Use Sets module to more clearly articulate a couple of tests.
* Added methods AskFileForOpen(), AskFileForSave() and AskFolder(). TheseJack Jansen2003-01-171-2/+154
| | | | | | | are going to replace StandardGetFile() and friends. Main differences are that these allow you to ask for specific datatypes to be returned (FSSpec, FSRef, string, unicode or subtypes thereof) and that they provide access to underlying features of Navigation Services through keyword arguments.
* bugfix: do not double-close DB cursor during deallocation when theGregory P. Smith2003-01-171-0/+12
| | | | | | | | | | underlying DB has already been closed (and thus all of its cursors). This fixes a potential segfault. SF pybsddb bug id 667343 bugfix: close the DB object when raising an exception due to an error during DB.open. This prevents an exception when closing the environment about not all databases being closed. SF pybsddb bug id 667340
* bugfix: disallow use of DB_TXN after commit() or abort(), prevents aGregory P. Smith2003-01-171-0/+20
| | | | | | | | | coredump or segmentation violation. Sourceforge patch ID 664896: http://sourceforge.net/tracker/index.php?func=detail&aid=664896&group_id=13900&atid=313900 The bug was reported on the pybsddb-users mailing list.
* Patch 611069 (Christos Georgiou) IDLE TODO:left/right when selected textKurt B. Kaiser2003-01-173-2/+28
| | | | | | M EditorWindow.py M NEWS.txt M TODO.txt
* SF Bug 667812: Some Linux distros have Alt and Meta reversed.Kurt B. Kaiser2003-01-161-13/+13
|
* Let test_random cover the endpoints.Raymond Hettinger2003-01-161-9/+20
| | | | | Strengthen slicing tests. Improved variable names.
* Test optional slice arguments.Raymond Hettinger2003-01-161-4/+14
| | | | Add backwards compatibility test.
* Added doctest for examples in the library reference.Raymond Hettinger2003-01-161-0/+60
| | | | Added random test from bisect to augment the finite precomputed checks.
* Convert to unittest format so that more tests can be added cleanly.Raymond Hettinger2003-01-161-118/+127
|
* Catch IOErrors.Martin v. Löwis2003-01-161-0/+3
|
* Support copying booleans. Fixes #668925.Martin v. Löwis2003-01-161-0/+2
|
* This test previously failed when run from the 'test' directory. In thatMark Hammond2003-01-161-5/+7
| | | | | | | | case, the test module created is actually a sub-package of 'test', thus the module is named 'test.areallylongpackage...' - this caused failure. Replace the hard-coded module names with __name__ attributes, which correctly reflects any hierarchy.
* On Mac OS X calling setlocale will raise locale.Error. This isn't fatal,Jack Jansen2003-01-151-1/+2
| | | | so just continue testing. Fixes #668787.
* Checking in Brett Cannon's patch #662053, which fixes bug #661354.Jack Jansen2003-01-151-8/+12
| | | | _strptime can now handle getting two empty strings as the timezone information.
* Added ismount().Jack Jansen2003-01-151-0/+5
| | | | Fixes #661762, bugfix candidate.
* Implemented FSCatalogInfo structure support, and used this to implementJack Jansen2003-01-151-5/+30
| | | | FSSpec.SetDates() and GetDates(). Closes #662836.
* * Add test for __cmp__()Raymond Hettinger2003-01-151-2/+40
| | | | * Add doctest for example in the library reference manual
* Patch #661719: Expose compilation errors as exceptions on request.Martin v. Löwis2003-01-153-26/+82
|
* Patch #473586: Implement CGIXMLRPCRequestHandler.Martin v. Löwis2003-01-151-109/+371
|
* Updated IDLE Help to reflect changes in Additional Help SourceKurt B. Kaiser2003-01-141-8/+26
| | | | Configuration implementation.
* M Bindings.pyKurt B. Kaiser2003-01-148-92/+164
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | M EditorWindow.py M NEWS.txt M config-main.def M configDialog.py M configHandler.py M configHelpSourceEdit.py M configSectionNameDialog.py - Change default: IDLE now starts with Python Shell. - Removed the File Path from the Additional Help Sources scrolled list. - Add capability to access Additional Help Sources on the web if the Help File Path begins with //http or www. (Otherwise local path is validated, as before.) - Additional Help Sources were not being posted on the Help menu in the order entered. Implement sorting the list by [HelpFiles] 'option' number. - Add Browse button to New Help Source dialog. Arrange to start in Python/Doc if platform is Windows, otherwise start in current directory. - Put the Additional Help Sources directly on the Help menu instead of in an Extra Help cascade menu. Rearrange the Help menu so the Additional Help Sources come last. Update help.txt appropriately. - Fix Tk root pop-ups in configSectionNameDialog.py and configDialog.py
* Explicitly raise an exception in __cmp__ -- this clarifies that cmp()Guido van Rossum2003-01-141-0/+5
| | | | | | is not supported on sets. (Unfortunately, sorting a list of sets may still return random results because it uses < exclusively, but for sets that inly implements a partial ordering. Oh well.)
* SF bug #661184: inspect.getsource bugRaymond Hettinger2003-01-141-1/+3
| | | | | | | inspect.getsource would crash with one line definitions like: def f(x): return x or f = lambda x: x
* make sure Info.plist has a CFBundleIdentifier entryJust van Rossum2003-01-131-0/+2
|
* A new test here was failing on Windows, because the test before it neverTim Peters2003-01-131-10/+5
| | | | | managed to delete the @test file it intended to delete. Also, I don't see a reason to create a 4MB file in the new test, so cut it back to 16K.
* Duh. cmdqueue should be an instance variable, not a class variable.Guido van Rossum2003-01-131-1/+1
| | | | | | This was introduced in 1998 in rev. 1.13, where I imported extensive patches that, I am sad to say, I didn't review as carefully as I should have.
* Duh. The do_EOF() implementation was bogus. Make it more likeGuido van Rossum2003-01-131-3/+5
| | | | do_quit() -- but print a blank line first.
* Fix SF bug #667147, Segmentation fault printing str subclassNeal Norwitz2003-01-131-1/+24
| | | | | | | Fix infinite recursion which occurred when printing an object whose __str__() returned self. Will backport
* Fix NameError in getquotaroot(), sanctioned by Piers.Guido van Rossum2003-01-131-1/+1
|
* Got rid of the internal datetimetz type.Tim Peters2003-01-111-1/+1
|
* Fix SF bug # 602259, 3rd parameter for Tkinter.scan_dragtoNeal Norwitz2003-01-101-3/+3
| | | | Add the optional gain parameter and pass it to Tk.
* Update documentation.Kurt B. Kaiser2003-01-104-238/+323
|
* SF bug #652933 (for IdleFork): Open Module "math" Fails (Hettinger)Kurt B. Kaiser2003-01-101-1/+4
| | | | | | | When a module doesn't have a __path__ attribute, trigger a dialog box rather than dumping a traceback to the console. Synch to Python IDLE.
* SF #665913, Fix mmap module core dump with unixNeal Norwitz2003-01-101-0/+18
| | | | | | Closing an mmap'ed file (calling munmap) twice on Solaris caused a core dump. Will backport.
* M configDialog.pyKurt B. Kaiser2003-01-102-82/+97
| | | | | | | | | | | | | M configHelpSourceEdit.py 1. Attach configHelpSourceEdit error dialogs to parent to avoid Tk root pop-ups. 2. Make configHelpSourceEdit OK button the default and bind <Return>. 3. Reformat configHelpSourceEdit. 4. ConfigDialog.SaveAllChangedConfig() had a bug which caused additional help sources to be deleted when other config items were changed. 4. Uniform capitalization in configDialog. 5. Update configDialog doc string.
* Python 2.1's string module doesn't have ascii_letters, so let's justBarry Warsaw2003-01-101-13/+10
| | | | hard code it. We want this module to work with Python 2.1 for now.