summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* SF 742860: WeakKeyDictionary __delitem__ uses iterkeysTim Peters2003-05-253-5/+58
| | | | | | | | | | | | | | | | | Someone review this, please! Final releases are getting close, Fred (the weakref guy) won't be around until Tuesday, and the pre-patch code can indeed raise spurious RuntimeErrors in the presence of threads or mutating comparison functions. See the bug report for my confusions: I can't see any reason for why __delitem__ iterated over the keys. The new one-liner implementation is much faster, can't raise RuntimeError, and should be better-behaved in all respects wrt threads. New tests test_weak_keyed_bad_delitem and test_weak_keyed_cascading_deletes fail before this patch. Bugfix candidate for 2.2.3 too, if someone else agrees with this patch.
* Improved the RESTART annotation in the shell window when the userKurt B. Kaiser2003-05-241-0/+9
| | | | | restarts the shell while it is generating output. Also improved annotation when user repeatedly hammers the Ctrl-F6 restart.
* Fix a bug in Rev 1.10 - Windows can't handle a leading ':' if theKurt B. Kaiser2003-05-243-3/+12
| | | | | | user's PYTHONPATH is empty (though Linux can). Modified Files: idle idle.py idle.pyw
* 1. Stake Freddy.Kurt B. Kaiser2003-05-244-64/+57
| | | | | | | | | | | | | e.g. further improve subprocess interrupt, exceptions, and termination. 2. Remove the workarounds in PyShell.py and ScriptBinding.py involving interrupting the subprocess prior to killing it, not necessary anymore. 3. Fix a bug introduced at PyShell Rev 1.66: was getting extra shell menu every time the shell window was recreated. M PyShell.py M ScriptBinding.py M rpc.py M run.py
* Somehow ColorPicker has never been included or tested under darwin, but it ↵Just van Rossum2003-05-241-0/+2
| | | | works just fine.
* SF bug 705231: Assertion failed, python aborts.Tim Peters2003-05-243-6/+61
| | | | | | | float_pow(): Don't let the platform pow() raise -1.0 to an integer power anymore; at least glibc gets it wrong in some cases. Note that math.pow() will continue to deliver wrong (but platform-native) results in such cases.
* modernized ColorPicker somewhatJust van Rossum2003-05-241-0/+4
|
* 'sum' is no longer a good variable name. Use 'total' instead.Raymond Hettinger2003-05-241-3/+3
|
* Modified patch #742126: Don't define _XOPEN_SOURCE for OpenBSD 3.3.Martin v. Löwis2003-05-242-5/+7
|
* Convert tcl_version to str before comparing. Fixes #729317.Martin v. Löwis2003-05-241-1/+2
|
* Get test_ioctl to pass on HPUX 11.Neal Norwitz2003-05-234-5/+13
| | | | | TIOCGPGRP and many other definitions come from bsdtty.h, so it needs to be included at least on HPUX.
* After Raymond's remark, I changed the Stackless bits toChristian Tismer2003-05-231-2/+2
| | | | | two fixed bits, position 15 and 16. It is right, why should these be elsewhere.
* All calls to getarrayitem() (which is static) are done either in loopsWalter Dörwald2003-05-231-4/+1
| | | | | over the size of the array, or the callers check the index bounds themselves, so the index check never failed => Replace it with an assert().
* iteritems() should not have been used for self.timeout which changes during ↵Raymond Hettinger2003-05-231-1/+1
| | | | the loop.
* PyType_GenericAlloc is inherited from object.Raymond Hettinger2003-05-232-13/+13
|
* Generalized my type flags structure extension without being specific aboutChristian Tismer2003-05-231-4/+4
| | | | | | the purpose. Increased my claim to two bits, hoping that nobody will complain about it. I'm taking the highest two bits, whatever the integer word size may be.
* Lots of wordsmithing and typographical improvement.Greg Ward2003-05-231-58/+71
|
* Release the GIL around read(), write(), and select() calls.Greg Ward2003-05-231-2/+16
| | | | Bug spotted by Joerg Lehmann <joerg@luga.de>.
* SF bug #644345, Poor error message for augmented assignNeal Norwitz2003-05-221-2/+2
| | | | Update error message. Hopefully this is clearer to some people.
* Port test_mimetools.py to PyUnit and add various tests.Walter Dörwald2003-05-222-23/+51
| | | | From SF patch #736962.
* sound_playsound() doesn't have to be visible externally,Walter Dörwald2003-05-221-1/+1
| | | | so make it static.
* Fixed dotted name assertion.Raymond Hettinger2003-05-221-2/+2
|
* Use macro to get length of list.Jeremy Hylton2003-05-221-8/+2
| | | | Remove comment about how code used to work.
* Remove comment with very long lines that explained what the code usedJeremy Hylton2003-05-221-3/+3
| | | | | | | to do. XXX Please be careful when checking in patches to avoid checking in junk that explains what the patched code used to do.
* Record 2.2.3c1 Windows build number.Tim Peters2003-05-221-0/+2
|
* Correct dependency information -- the Python docs load the "About thisFred Drake2003-05-221-2/+2
| | | | document" text from html/stdabout.dat, not html/about.dat.
* Add historical note for Python 2.2.3Barry Warsaw2003-05-221-0/+1
|
* Minor elaboration in the information about reporting errors.Fred Drake2003-05-221-1/+2
|
* update version historyFred Drake2003-05-221-0/+1
|
* [Bug #741171] pdb crashes when enabling a non-existing breakpointAndrew M. Kuchling2003-05-221-2/+22
| | | | | | | | | Check the supplied breakpoint number more carefully. (Incompatibility: before this patch, "enable -1" would enable the last breakpoint on the list; now -1 is not a legal ID. Not sure anyone would ever use negative indices...) 2.2 bugfix candidate, assuming making -1 illegal isn't considered a problem.
* Walter's last checkin also needs to work on doubles.Neal Norwitz2003-05-221-7/+3
| | | | | * Move new test_byteswap into FPTest. * Remove extra lines at end of file.
* test_byteswap() fails on alphas, because treating the byte swapped bitWalter Dörwald2003-05-221-0/+17
| | | | | | | | | | patterns as floats/doubles results in floating point exceptions. Fix this by implementing a separate test_byteswap() for the floating point tests. This new test compares the tostring() values of both arrays instead of the arrays themselves. Discovered by Neal Norwitz.
* Add documentation for __future__Jeremy Hylton2003-05-211-0/+69
|
* Move future statement here from appendix a.Jeremy Hylton2003-05-211-0/+78
|
* PyType_Ready(): Complain if the type is a base type, and gc'able, andTim Peters2003-05-213-3/+49
| | | | | | | | | | | | | | | | | | tp_free is NULL or PyObject_Del at the end. Because it's a base type it must call tp_free in its dealloc function, and because it's gc'able it must not call PyObject_Del. inherit_slots(): Don't inherit tp_free unless the type and its base agree about whether they're gc'able. If the type is gc'able and the base is not, and the base uses the default PyObject_Del for its tp_free, give the type PyObject_GC_Del for its tp_free (the appropriate default for a gc'able type). cPickle.c: The Pickler and Unpickler types claim to be base classes and gc'able, but their dealloc functions didn't call tp_free. Repaired that. Also call PyType_Ready() on these typeobjects, so that the correct (PyObject_GC_Del) default memory-freeing function gets plugged into these types' tp_free slots.
* Fix for SF [ 734869 ] Lambda functions in list comprehensionsJeremy Hylton2003-05-215-15/+27
| | | | | | The compiler was reseting the list comprehension tmpname counter for each function, but the symtable was using the same counter for the entire module. Repair by move tmpname into the symtable entry. Bugfix candidate.
* SF bug #604716: faster [None]*n or []*nRaymond Hettinger2003-05-211-0/+12
| | | | Fulfilled request to special case repetitions of lists of length 0 or 1.
* Don't mention __slots__ as a technique for error avoidanceAndrew M. Kuchling2003-05-201-10/+6
|
* Added a test for the fix of SF bug #658233, where continuation linesBarry Warsaw2003-05-201-12/+52
| | | | | | | | in .po metadata caused a crash. Also, removed some unnecessary code. Backport candidate.
* GNUTranslations._parse(): Fix SF bug #658233, where continuation linesBarry Warsaw2003-05-201-4/+9
| | | | | | in .po metadata caused a crash. Backport candidate.
* Fix markup nits.Fred Drake2003-05-201-4/+4
|
* Straighten out the docs for os.system(); the Unix and Windows behaviorsTim Peters2003-05-201-5/+13
| | | | | | really can't be smushed together. Bugfix candidate.
* Markup nits.Fred Drake2003-05-201-5/+5
|
* Remove unused line numbers from example code.Fred Drake2003-05-201-28/+27
| | | | Line numbering of examples is not used elsewhere.
* Preserved one bit in type objects for Stackless.Christian Tismer2003-05-201-0/+8
| | | | | The presence of this bit controls, whether there are special fields for non-recursive calls.
* 'Progress' doesn't exists, causing 'from EasyDialogs import *' to failJust van Rossum2003-05-201-1/+1
|
* Fix missing parethesis.Raymond Hettinger2003-05-201-1/+1
|
* SF 740055: optional argument protocol in shelve.open is ignoredRaymond Hettinger2003-05-201-1/+1
| | | | | * added the missing parameter * put optional parameters in correct positional order
* SF bug 735293: Command line timeit.py sets sys.path badlyRaymond Hettinger2003-05-203-0/+8
| | | | | Paul Moore's patch to have timeit.py check the current directory for imports (instead of the directory for Lib/timeit.py).
* Add docs for key_file and cert_file arguments for HTTPSConnection. Copied ↵Brett Cannon2003-05-201-1/+7
| | | | from socket.ssl docs.