summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* SF # 669553, fix memory (ref) leaksNeal Norwitz2003-01-192-14/+33
| | | | Will backport.
* Fix typoRaymond Hettinger2003-01-191-1/+1
|
* 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 #634866: Alex Martelli's corrections to the ref manual.Raymond Hettinger2003-01-193-48/+101
| | | | | Backport candidate. All but one or two of these changes are applicable to 2.2.2.
* SF patch #670367: Micro-optimizations for ceval.cRaymond Hettinger2003-01-191-18/+13
| | | | | | | | | | | | | | | | | | | | Make the code slightly shorter, faster, and easier to read. * Eliminate unused DUP_TOPX code for x==1. compile.c always generates DUP_TOP instead. * Since only two cases remain for DUP_TOPX, replace the switch-case with if-elseif. * The in-lined integer compare does a CheckExact on both arguments. Since the second is a little more likely to fail, test it first. * The switch-case for IS/IS_NOT and IN/NOT_IN can separate the regular and inverted cases with no additional work. For all four paths, saves a test and jump.
* Windows flavor of floatsleep(): folded long lines, introduced a tempTim Peters2003-01-191-12/+17
| | | | var for clarity.
* 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 bug #670229: doc improvement for cStringIO.hRaymond Hettinger2003-01-191-5/+12
| | | | Gernot Hillier added more detail to the internal API documentation.
* SF patch #670423: Add missing identity tests to operator.cRaymond Hettinger2003-01-184-3/+49
|
* SF bug #668906: class browser raises AttributeErrorRaymond Hettinger2003-01-181-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 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-172-11/+13
| | | | | - AskFileForSave didn't work for string return values - filterProc didn't work.
* It turns out that some calls return AEDesc records that are "borrowed",Jack Jansen2003-01-174-3/+71
| | | | | | | the AEDesc data shouldn't be disposed when the Python object is. Added a C call AEDesc_NewBorrowed() to create these objects and a Python method old=AEDesc.AutoDispose(onoff) to change auto-dispose state.
* Various markup changes.Fred Drake2003-01-171-20/+22
|
* Fix a couple of markup errors.Fred Drake2003-01-171-3/+3
|
* CVS patch 669645: wininst.exe missing in Windows installer.Tim Peters2003-01-171-0/+5
| | | | Not anymore it ain't.
* Clean up some files that LaTeX2HTML drops in the HTML output directoryFred Drake2003-01-171-0/+5
| | | | sometimes.
* When time.localtime() is passed a tick count the platform C localtime()Tim Peters2003-01-171-1/+1
| | | | | | | function can't handle, don't raise IOError -- that doesn't make sense. Raise ValueError instead. Bugfix candidate.
* 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.
* Correct typos in example code.Raymond Hettinger2003-01-171-3/+3
|
* For reasons unknown previewProc and filterProc were disabled. Enabled them.Jack Jansen2003-01-171-4/+2
|
* 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-172-1/+15
| | | | | | | | | | 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: allow the module to work with python compiled without thread support.Gregory P. Smith2003-01-171-0/+2
| | | | closes sourceforge pybsddb bug id 669533.
* bugfix: disallow use of DB_TXN after commit() or abort(), prevents aGregory P. Smith2003-01-172-5/+57
| | | | | | | | | 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
|
* A. Lloyd Flanagan pointed out a spelling error on c.l.py.Michael W. Hudson2003-01-161-1/+1
|
* 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
|
* Patch #662454: import a.b as c is ok, fixes #660811.Martin v. Löwis2003-01-161-5/+1
|
* Properly find and install icons even if calling setup.py from the build dir.Martin v. Löwis2003-01-161-2/+2
|
* 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.
* Correct docstring for SetValueEx()Mark Hammond2003-01-151-1/+1
|
* 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-153-17/+32
| | | | FSSpec.SetDates() and GetDates(). Closes #662836.
* reference the os module and the lock flags in the os.open() function.Skip Montanaro2003-01-151-0/+8
| | | | (Someone please review what I wrote for accuracy.)
* * Add test for __cmp__()Raymond Hettinger2003-01-151-2/+40
| | | | * Add doctest for example in the library reference manual
* Remove misleading advice. VERSION was not intended to be used that way.Neil Schemenauer2003-01-151-6/+0
|
* Document that __cmp__() is not defined for sets.Raymond Hettinger2003-01-151-3/+12
| | | | | Note, that list.sort() is undefined for lists of sets. Add the ... prompt to the example so it runs in doctest.
* Gyro Func for patch #661719.Martin v. Löwis2003-01-151-1/+2
|
* Patch #661719: Expose compilation errors as exceptions on request.Martin v. Löwis2003-01-155-28/+92
|