summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Keep doctests in sync with the docs.Raymond Hettinger2003-08-161-5/+5
|
* Incorporate documentation suggestions from feedback on comp.lang.python.Raymond Hettinger2003-08-161-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.2Raymond Hettinger2003-08-152-1/+21
|
* Fix SF #789402, Memory leak on open()Neal Norwitz2003-08-151-0/+1
| | | | If opening a directory, the exception would leak.
* Make a copy of L before appending, so the global L remainsWalter Dörwald2003-08-151-4/+4
| | | | | | unchanged (and sys.gettotalrefcount() remains constant). Fix a few typos.
* Fix refcounting leak in charmaptranslate_lookup()Walter Dörwald2003-08-151-0/+1
|
* Fix another refcounting leak in PyUnicode_EncodeCharmap().Walter Dörwald2003-08-151-1/+3
|
* Fix another refcounting leak (in PyUnicode_DecodeUnicodeEscape()).Walter Dörwald2003-08-151-0/+2
|
* Fix forMichael W. Hudson2003-08-153-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. Hudson2003-08-151-0/+1
|
* My last fix left n used unitialized in tha a==b case.Michael W. Hudson2003-08-151-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 norTim Peters2003-08-152-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() isNeil Schemenauer2003-08-141-9/+4
| | | | usually preferred.
* Fix refcount leak in the UnicodeError constructor:Walter Dörwald2003-08-141-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 Schemenauer2003-08-141-1/+1
|
* Fix refcount leak in PyUnicode_EncodeCharmap(). The bug surfacesWalter Dörwald2003-08-141-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 Hettinger2003-08-141-4/+4
| | | | (Contributed by George Yoshida.)
* Fix reference leak noted in test_types:Michael W. Hudson2003-08-141-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 beforeFred Drake2003-08-141-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. Kaiser2003-08-142-2/+19
| | | | | | on W2K and XP. Python Bugs 780451, 784183 Backported to 2.2-maint
* fix markupFred Drake2003-08-141-1/+1
|
* [Patch #739124] Add use_default_colors() to curses moduleAndrew M. Kuchling2003-08-136-3/+44
|
* Add a unicode prefix to the characters in the UnicodeEncodeError andWalter Dörwald2003-08-122-15/+15
| | | | UnicodeTranslateError message.
* Enhance message for UnicodeEncodeError and UnicodeTranslateError.Walter Dörwald2003-08-122-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 YoshidaRaymond Hettinger2003-08-123-3/+3
|
* SF patch#786531 'the the' typo. Contributed by George YoshidaRaymond Hettinger2003-08-1211-13/+13
|
* Fix bug in test_bad_timezone where test was assuming locale knew of PDT.Brett Cannon2003-08-111-2/+3
|
* Add a couple of decrefs to error paths.Michael W. Hudson2003-08-111-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 fixesAndrew M. Kuchling2003-08-112-2/+2
|
* mention pymemcompat.h in Misc/READMEMichael W. Hudson2003-08-111-0/+1
|
* Fix silly typo in comment.Michael W. Hudson2003-08-111-1/+1
|
* add a statement identifying StringI and StringO objects.Skip Montanaro2003-08-111-1/+2
|
* reverting to 2.41 version (distinct tp_names) - will add verbiage to theSkip Montanaro2003-08-111-2/+2
| | | | docs
* shit - just change the visible name, not the comments - strictly speaking,Skip Montanaro2003-08-111-3/+3
| | | | | the tp_name is not correct, but what's exposed to users is known visibly as "StringIO", not "StringI" or "StringO".
* typosSkip Montanaro2003-08-111-3/+3
|
* Fix refcounting and cut & paste error (?) in last checkin.Michael W. Hudson2003-08-111-3/+1
| | | | This should go onto release23-maint, too.
* Unconditionally opening the temp file in text mode causes this test to failJason Tishler2003-08-111-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 Jansen2003-08-111-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] andBrett Cannon2003-08-112-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 randomRaymond Hettinger2003-08-093-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öwis2003-08-091-0/+2
|
* Move initialization of sys.std{in,out}.encoding to Py_Initialize.Martin v. Löwis2003-08-092-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öwis2003-08-092-2245/+3082
|
* SF patch #747364: BaseHTTPServer doesn't need StringIO intermediaryRaymond Hettinger2003-08-091-11/+1
| | | | (Contributed by Andrew Dalke.)
* SF patch #783807: Clarify PySequence_Setitem ref countingRaymond Hettinger2003-08-091-1/+2
| | | | (Contributed by Jay T Miller.)
* IDLEfork Bug 782759Kurt B. Kaiser2003-08-091-4/+9
| | | | backported to 23-maint
* Explain argument unpackingRaymond Hettinger2003-08-081-0/+18
|
* /* XXX From here until type is allocated, "return NULL" leaks bases! */Michael W. Hudson2003-08-081-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.
* SF bug #770485: cStringIO does not set closed attrRaymond Hettinger2003-08-083-2/+34
|
* SF bug #775836: change 0,1 to False,True in dict.has_key docRaymond Hettinger2003-08-081-1/+1
|