summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* SF bug 660872: datetimetz constructors behave counterintuitively (2.3a1).Tim Peters2003-01-231-1/+15
| | | | | | This gives much the same treatment to datetime.fromtimestamp(stamp, tz) as the last batch of checkins gave to datetime.now(tz): do "the obvious" thing with the tz argument instead of a senseless thing.
* Reimplemented datetime.now() to be useful.Tim Peters2003-01-231-2/+20
|
* Use lightweight introspection instead of the inspect module hammer.Jeremy Hylton2003-01-231-24/+18
| | | | | | | Removing locking are findCaller() calls as the implementation using sys._getframe() is thread-safe. Changes reviewed by Vinay.
* Fix for SF bug 661340: test_httplib fails on the mac.Jeremy Hylton2003-01-232-41/+65
| | | | The test no longer produces output with \r\n in it.
* Bringing the code and test suite into line with doc and NEWS changesTim Peters2003-01-231-28/+90
| | | | | | | | | | | | | | | | | | | | checked in two days agao: Refactoring of, and new rules for, dt.astimezone(tz). dt must be aware now, and tz.utcoffset() and tz.dst() must not return None. The old dt.astimezone(None) no longer works to change an aware datetime into a naive datetime; use dt.replace(tzinfo=None) instead. The tzinfo base class now supplies a new fromutc(self, dt) method, and datetime.astimezone(tz) invokes tz.fromutc(). The default implementation of fromutc() reproduces the same results as the old astimezone() implementation, but tzinfo subclasses can override fromutc() if the default implementation isn't strong enough to get the correct results in all cases (for example, this may be necessary if a tzinfo subclass models a time zone whose "standard offset" (wrt UTC) changed in some year(s), or in some variations of double-daylight time -- the creativity of time zone politics can't be captured in a single default implementation).
* add support for Python's bool type to xmlrpclib - patch # 559288Skip Montanaro2003-01-221-37/+56
|
* Tweaked time conversion to work in MacPython-OS9.Jack Jansen2003-01-221-2/+5
|
* Convert booleans to integers in IntVar.set. Fixes #671741.Martin v. Löwis2003-01-221-0/+6
| | | | | Return booleans from _tkinter.getboolean. Convert booleans to Tcl booleans in AsObj.
* SF patch #667730: More DictMixinRaymond Hettinger2003-01-221-2/+4
| | | | | | Sebastien Keim pointed out that iterkeys and __contains__ require their own definitions so their behavior will update when the underlying method is subclassed.
* Make Alt-Key-2 the Zoom Height binding for ClassBrowser and PathBrowser,Kurt B. Kaiser2003-01-221-2/+2
| | | | consistent with the Edit/Shell windows.
* M Bindings.pyKurt B. Kaiser2003-01-224-24/+34
| | | | | | | | | | | | | M PyShell.py M config-keys.def M configHandler.py 1. Clear any un-entered characters from input line before printing the restart boundary. 2. Restore the Debug menu: There are now both Shell and Debug menus. 3. Add Control-F6 keybinding to Restart Shell. 4. Clarify PyShell.cancel_check() comment. 5. Update doc string for Bindings.py and re-format the file slightly.
* Added DepracationWarnings to the old Standard File calls.Jack Jansen2003-01-211-0/+9
|
* Tuples and lists don't have a copy() method (yet?).Jack Jansen2003-01-211-1/+1
|
* Fix from Vinaj for the "writing to closed file" errors. SF 670390.Guido van Rossum2003-01-212-11/+14
|
* Implemented StandardGetFile and friends with the new EasyDialogs fileJack Jansen2003-01-211-96/+20
| | | | dialogs.
* Oops, this file wasn't 8-bit-clean yet. Fixed.Jack Jansen2003-01-211-3/+3
|
* Spell out the arguments to AskFileForOpen and friends, so help() gives usefulJack Jansen2003-01-211-45/+100
| | | | help.
* Fix example in a docstring to not use 'file' as a variable nameAndrew M. Kuchling2003-01-211-2/+2
|
* Use new file dialogs in GetArgv()Jack Jansen2003-01-211-11/+10
|
* 1. Restore the rest of Python IDLE setup.py Rev 1.4 (Python SF 634078)Kurt B. Kaiser2003-01-211-4/+7
| | | | | | (Loewis) which uses 'SRCDIR' (if available) in package dir path. 2. Merge Python IDLE setup.py Rev 1.5 (Loewis) to allow installation from the build directory. IDLEfork SF Patch 668998 (Loewis)
* flesh out open() docstringSkip Montanaro2003-01-211-1/+7
|
* 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.