Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Improvements to set.py: | Raymond Hettinger | 2003-08-17 | 4 | -53/+213 |
| | | | | | | | | | | | | | | | | | | | * Relaxed the argument restrictions for non-operator methods. They now allow any iterable instead of requiring a set. This makes the module a little easier to use and paves the way for an efficient C implementation which can take better advantage of iterable arguments while screening out immutables. * Deprecated Set.update() because it now duplicates Set.union_update() * Adapted the tests and docs to include the above changes. * Added more test coverage including testing identities and checking to make sure non-restartable generators work as arguments. Will backport to Py2.3.1 so that the interface remains consistent across versions. The deprecation of update() will be changed to a FutureWarning. | ||||
* | Adjust some horizontal indentation to be consistent with the style used | Fred Drake | 2003-08-16 | 1 | -4/+4 |
| | | | | throughout the documentation. | ||||
* | Keep doctests in sync with the docs. | Raymond Hettinger | 2003-08-16 | 1 | -5/+5 |
| | |||||
* | Incorporate documentation suggestions from feedback on comp.lang.python. | Raymond Hettinger | 2003-08-16 | 1 | -55/+42 |
| | | | | | | | | | | | | | | | * Positive wording for the description of why < and > and = can all be False. * Move to a three column table format that puts long method names side-by-side with their operator equivalents * Mention that KeyError can be raised by Set.pop() and Set.remove(). * Minor tweaks to the examples. Will backport as soon as Fred rebuilds the docs so I can confirm the tables formatted properly | ||||
* | Make sets.py compatible with Py2.2 | Raymond Hettinger | 2003-08-15 | 2 | -1/+21 |
| | |||||
* | Fix SF #789402, Memory leak on open() | Neal Norwitz | 2003-08-15 | 1 | -0/+1 |
| | | | | If opening a directory, the exception would leak. | ||||
* | Make a copy of L before appending, so the global L remains | Walter Dörwald | 2003-08-15 | 1 | -4/+4 |
| | | | | | | unchanged (and sys.gettotalrefcount() remains constant). Fix a few typos. | ||||
* | Fix refcounting leak in charmaptranslate_lookup() | Walter Dörwald | 2003-08-15 | 1 | -0/+1 |
| | |||||
* | Fix another refcounting leak in PyUnicode_EncodeCharmap(). | Walter Dörwald | 2003-08-15 | 1 | -1/+3 |
| | |||||
* | Fix another refcounting leak (in PyUnicode_DecodeUnicodeEscape()). | Walter Dörwald | 2003-08-15 | 1 | -0/+2 |
| | |||||
* | Fix for | Michael W. Hudson | 2003-08-15 | 3 | -5/+48 |
| | | | | | | | | | [ 784825 ] fix obscure crash in descriptor handling Should be applied to release23-maint and in all likelyhood release22-maint, too. Certainly doesn't apply to release21-maint. | ||||
* | Fix silly leak in test used in test_exceptions. | Michael W. Hudson | 2003-08-15 | 1 | -0/+1 |
| | |||||
* | My last fix left n used unitialized in tha a==b case. | Michael W. Hudson | 2003-08-15 | 1 | -1/+1 |
| | | | | | | Fix, by not using n at all in that case. Needs to be applied to release23-maint, too. | ||||
* | complex_new(): This could leak when the argument was neither string nor | Tim Peters | 2003-08-15 | 2 | -0/+6 |
| | | | | | | number. This accounts for the 2 refcount leaks per test_complex run Michael Hudson discovered (I figured only I would have the stomach to look for leaks in floating-point code <wink>). | ||||
* | Don't introduce map(None, ...) in the tutorial. In practice, zip() is | Neil Schemenauer | 2003-08-14 | 1 | -9/+4 |
| | | | | usually preferred. | ||||
* | Fix refcount leak in the UnicodeError constructor: | Walter Dörwald | 2003-08-14 | 1 | -1/+1 |
| | | | | | When parsing the constructor arguments failed, a reference to the argument tuple was leaked. | ||||
* | Make filter(bool, ...) as fast as filter(None, ...). | Neil Schemenauer | 2003-08-14 | 1 | -1/+1 |
| | |||||
* | Fix refcount leak in PyUnicode_EncodeCharmap(). The bug surfaces | Walter Dörwald | 2003-08-14 | 1 | -3/+3 |
| | | | | | | | | | | when an encoding error occurs and the callback name is unknown, i.e. when the callback has to be called. The problem was that the fact that the callback has already been looked up was only recorded in a local variable in charmap_encoding_error(), because charmap_encoding_error() got it's own copy of the errorHandler pointer instead of a pointer to the pointer in PyUnicode_EncodeCharmap(). | ||||
* | SF patch #787929: reflect the introduce of boolean type(libcfgparser.tex) | Raymond Hettinger | 2003-08-14 | 1 | -4/+4 |
| | | | | (Contributed by George Yoshida.) | ||||
* | Fix reference leak noted in test_types: | Michael W. Hudson | 2003-08-14 | 1 | -9/+9 |
| | | | | | | Check for a[:] = a _before_ calling PySequence_Fast on a. release23-maint candidate Reference leak doesn't happen with head of release22-maint. | ||||
* | When piping output into a pager like "less", quiting the pager before | Fred Drake | 2003-08-14 | 1 | -2/+6 |
| | | | | | the output was consumed would cause and exception to be raise in logmerge; suppress this specific error, because it's not helpful. | ||||
* | IDLE didn't start correctly when Python was installed in "Program Files" | Kurt B. Kaiser | 2003-08-14 | 2 | -2/+19 |
| | | | | | | on W2K and XP. Python Bugs 780451, 784183 Backported to 2.2-maint | ||||
* | fix markup | Fred Drake | 2003-08-14 | 1 | -1/+1 |
| | |||||
* | [Patch #739124] Add use_default_colors() to curses module | Andrew M. Kuchling | 2003-08-13 | 6 | -3/+44 |
| | |||||
* | Add a unicode prefix to the characters in the UnicodeEncodeError and | Walter Dörwald | 2003-08-12 | 2 | -15/+15 |
| | | | | UnicodeTranslateError message. | ||||
* | Enhance message for UnicodeEncodeError and UnicodeTranslateError. | Walter Dörwald | 2003-08-12 | 2 | -8/+56 |
| | | | | | If there is only one bad character it will now be printed in a form that is a valid Python string. | ||||
* | SF patch#786531 'the the' typo. Contributed by George Yoshida | Raymond Hettinger | 2003-08-12 | 3 | -3/+3 |
| | |||||
* | SF patch#786531 'the the' typo. Contributed by George Yoshida | Raymond Hettinger | 2003-08-12 | 11 | -13/+13 |
| | |||||
* | Fix bug in test_bad_timezone where test was assuming locale knew of PDT. | Brett Cannon | 2003-08-11 | 1 | -2/+3 |
| | |||||
* | Add a couple of decrefs to error paths. | Michael W. Hudson | 2003-08-11 | 1 | -2/+4 |
| | | | | | | | Now test_descr only appears to leak two references & I think this are in fact illusory (it's to do with things getting resurrected in __del__ methods & it's easy to be believe confusion occurs when that happens <wink>). Woohoo! | ||||
* | Comment typo fixes | Andrew M. Kuchling | 2003-08-11 | 2 | -2/+2 |
| | |||||
* | mention pymemcompat.h in Misc/README | Michael W. Hudson | 2003-08-11 | 1 | -0/+1 |
| | |||||
* | Fix silly typo in comment. | Michael W. Hudson | 2003-08-11 | 1 | -1/+1 |
| | |||||
* | add a statement identifying StringI and StringO objects. | Skip Montanaro | 2003-08-11 | 1 | -1/+2 |
| | |||||
* | reverting to 2.41 version (distinct tp_names) - will add verbiage to the | Skip Montanaro | 2003-08-11 | 1 | -2/+2 |
| | | | | docs | ||||
* | shit - just change the visible name, not the comments - strictly speaking, | Skip Montanaro | 2003-08-11 | 1 | -3/+3 |
| | | | | | the tp_name is not correct, but what's exposed to users is known visibly as "StringIO", not "StringI" or "StringO". | ||||
* | typos | Skip Montanaro | 2003-08-11 | 1 | -3/+3 |
| | |||||
* | Fix refcounting and cut & paste error (?) in last checkin. | Michael W. Hudson | 2003-08-11 | 1 | -3/+1 |
| | | | | This should go onto release23-maint, too. | ||||
* | Unconditionally opening the temp file in text mode causes this test to fail | Jason Tishler | 2003-08-11 | 1 | -2/+5 |
| | | | | | | under Cygwin. The attached patch corrects this problem. I tested this patch under Red Hat Linux 8.0 too. | ||||
* | Bug fix for #780461: 'sysu' gestalt selector is meaningless on MacOSX, | Jack Jansen | 2003-08-11 | 1 | -1/+3 |
| | | | | but attempting to get it resulted in a crash. Fixed. Backport candidate. | ||||
* | Fix handling of bad locale setup where time.tzname[0] == time.tzname[1] and | Brett Cannon | 2003-08-11 | 2 | -10/+39 |
| | | | | | | time.daylight is true. Add an explicit test for this situation. Fixed some wording in docstrings. | ||||
* | SF bug #778964: bad seed in python 2.3 random | Raymond Hettinger | 2003-08-09 | 3 | -1/+8 |
| | | | | | | | The default seed is time.time(). Multiplied by 256 before truncating so that fractional seconds are used. This way, two successive calls to random.seed() are much more likely to produce different sequences. | ||||
* | Add HIDDEN. Fixes #777664. | Martin v. Löwis | 2003-08-09 | 1 | -0/+2 |
| | |||||
* | Move initialization of sys.std{in,out}.encoding to Py_Initialize. | Martin v. Löwis | 2003-08-09 | 2 | -33/+51 |
| | | | | | Verify that the encoding actually exists. Fixes #775985. Will backport to 2.3. | ||||
* | Patch #771998: Put braces around variables. Will backport to 2.3. | Martin v. Löwis | 2003-08-09 | 2 | -2245/+3082 |
| | |||||
* | SF patch #747364: BaseHTTPServer doesn't need StringIO intermediary | Raymond Hettinger | 2003-08-09 | 1 | -11/+1 |
| | | | | (Contributed by Andrew Dalke.) | ||||
* | SF patch #783807: Clarify PySequence_Setitem ref counting | Raymond Hettinger | 2003-08-09 | 1 | -1/+2 |
| | | | | (Contributed by Jay T Miller.) | ||||
* | IDLEfork Bug 782759 | Kurt B. Kaiser | 2003-08-09 | 1 | -4/+9 |
| | | | | backported to 23-maint | ||||
* | Explain argument unpacking | Raymond Hettinger | 2003-08-08 | 1 | -0/+18 |
| | |||||
* | /* XXX From here until type is allocated, "return NULL" leaks bases! */ | Michael W. Hudson | 2003-08-08 | 1 | -2/+9 |
| | | | | | | | | | | | | Sure looks like it to me! <wink> When I run the leak2.py script I posted to python-dev, I only see three reference leaks in all of test_descr. When I run test_descr.test_main, I still see 46 leaks. This clearly demands posting a yelp to python-dev :-) This certainly should be applied to release23-maint, and in all likelyhood release22-maint as well. |