summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix for #1444: utf_8_sig.StreamReader was (indirectly through decode())Walter Dörwald2007-11-192-5/+55
| | | | | calling codecs.utf_8_decode() with final==True, which falled with incomplete byte sequences. Fix and test by James G. Sack.
* Fix typo in comment.Walter Dörwald2007-11-191-1/+1
|
* Use a slightly more recent version than 1.5.2b2.Neal Norwitz2007-11-191-2/+2
|
* Patch #1739468: Directories and zipfiles containing __main__.py are now ↵Nick Coghlan2007-11-186-47/+254
| | | | executable
* Remove a confusing sentence about pth files and which directories are searchedBrett Cannon2007-11-171-2/+1
| | | | | | for them. Closes issue #1431. Thanks Giambattista Bloisi for the help.
* Fix signature in exampleRaymond Hettinger2007-11-171-1/+1
|
* Made _ParseTupleFinds only defined to unicodeobject.cFacundo Batista2007-11-162-0/+4
|
* Fix for stupid error (I need to remember to do a full 'make clean + make'Facundo Batista2007-11-161-1/+1
| | | | cycle before the tests...). Sorry.
* Now in find, rfind, index, and rindex, you can use None as defaults,Facundo Batista2007-11-164-32/+102
| | | | | | | | | | | | as usual with slicing (both with str and unicode strings). This fixes issue 1259. For str only the stringobject.c file was modified. But for unicode, I needed to repeat in the four functions a lot of code, so created a new function that does part of the job for them (and placed it in find.h, following a suggestion of Barry). Also added tests for this behaviour.
* A patch from issue 1378 by roudkerk:Guido van Rossum2007-11-161-81/+5
| | | | | | | | Currently on Windows set_error() make use of a large array which maps socket error numbers to error messages. This patch removes that array and just lets PyErr_SetExcFromWindowsErr() generate the message by using the Win32 function FormatMessage().
* add the certificate for the Python SVN repository for testing SSLBill Janssen2007-11-151-0/+31
|
* Add example for use cases requiring default values.Raymond Hettinger2007-11-151-0/+9
|
* Example of multiple replacements.Raymond Hettinger2007-11-151-2/+2
|
* Fixup example in docs.Raymond Hettinger2007-11-151-1/+1
|
* Small improvement to the implementation of __replace__().Raymond Hettinger2007-11-152-2/+2
|
* Accept Issac Morland's suggestion for __replace__ to allow multiple replacementsRaymond Hettinger2007-11-153-18/+33
| | | | | | (suprisingly, this simplifies the signature, improves clarity, and is comparably fast). Update the docs to reflect a previous change to the function name. Add an example to the docs showing how to override the default __repr__ method.
* Add test for __fields__ being read-onlyRaymond Hettinger2007-11-141-0/+8
|
* Make __fields__ read-only. Suggested by Issac MorlandRaymond Hettinger2007-11-141-1/+1
|
* Remove dead link from random docs.Georg Brandl2007-11-141-5/+0
|
* Merge from py3k branch:Amaury Forgeot d'Arc2007-11-133-9/+63
| | | | | | | | | | | | | | | | | | | | | | Correction for issue1265 (pdb bug with "with" statement). When an unfinished generator-iterator is garbage collected, PyEval_EvalFrameEx is called with a GeneratorExit exception set. This leads to funny results if the sys.settrace function itself makes use of generators. A visible effect is that the settrace function is reset to None. Another is that the eventual "finally" block of the generator is not called. It is necessary to save/restore the exception around the call to the trace function. This happens a lot with py3k: isinstance() of an ABCMeta instance runs def __instancecheck__(cls, instance): """Override for isinstance(instance, cls).""" return any(cls.__subclasscheck__(c) for c in {instance.__class__, type(instance)}) which lets an opened generator expression each time it returns True. Backport candidate, even if the case is less frequent in 2.5.
* Add the test from issue 1704621 (the issue itself is already fixed here).Guido van Rossum2007-11-121-0/+7
|
* readline module cleanupChristian Heimes2007-11-121-99/+90
| | | | | | | | fixed indention to tabs use Py_RETURN_NONE macro added more error checks to on_completion_display_matches_hook open question: Does PyList_SetItem(l, i, o) steal a reference to o in the case of an error?
* Fix TextCalendar.prweek(). This closes issue #1427.Walter Dörwald2007-11-121-1/+1
|
* Patch #1418: Make the AC_REPLACE_FUNCS object files actually work.Martin v. Löwis2007-11-123-2/+6
|
* Only set rl_completion_display_matches_hook if thereMartin v. Löwis2007-11-121-31/+38
| | | | is a Python hook function. Fixes #1425.
* Re-word sentenceAndrew M. Kuchling2007-11-121-1/+1
|
* Fix for #1427: Error in standard module calendarChristian Heimes2007-11-121-8/+12
| | | | the prweek() method is still broken and I can't figure out how it suppose to work.
* Added new decorator syntax to property.__doc__Christian Heimes2007-11-121-4/+14
| | | | Guido prefers _x over __x.
* Remove duplication of "this".Georg Brandl2007-11-111-1/+1
|
* Fixed a bug reported (in private email, by Robert Crida) in logging ↵Vinay Sajip2007-11-111-3/+27
| | | | configuration whereby child loggers of a logger named in a configuration file, which are not themselves named in the configuration, are disabled when the configuration is applied.
* Issue 1416. Add getter, setter, deleter methods to properties that can beGuido van Rossum2007-11-102-1/+120
| | | | used as decorators to create fully-populated properties.
* Use a freelist to speed-up block allocation and deallocation in ↵Raymond Hettinger2007-11-101-7/+27
| | | | collections.deque().
* Optimize common case for dict.fromkeys().Raymond Hettinger2007-11-091-10/+15
|
* Add Amaury Forgeot d'Arc.Martin v. Löwis2007-11-091-0/+3
|
* Correct a comment about testing methods - nowadays mostGeorg Brandl2007-11-091-4/+3
| | | | tests don't run directly on import.
* Fix misleading example.Georg Brandl2007-11-091-1/+2
|
* Fix seealso link to sets docs. Do not merge to Py3k.Georg Brandl2007-11-091-1/+1
|
* Reposition the decref (spotted by eagle-eye norwitz).Raymond Hettinger2007-11-081-1/+2
|
* Add set.isdisjoint()Raymond Hettinger2007-11-084-2/+126
|
* Backport of Guido's review of my patch.Christian Heimes2007-11-071-7/+5
|
* Backported fix for bug #1392 from py3k branch r58903.Christian Heimes2007-11-071-1/+19
|
* Add missing NEWS entryNick Coghlan2007-11-071-0/+3
|
* Add build option for faster loop execution.Raymond Hettinger2007-11-072-0/+16
|
* Optimize dict.fromkeys() with dict inputs. Useful for resetting bag/muliset ↵Raymond Hettinger2007-11-072-0/+23
| | | | counts for example.
* Fix marshal's incorrect handling of subclasses of builtin types (backport ↵Raymond Hettinger2007-11-074-16/+25
| | | | candidate).
* Add missing "return NULL" in overflow check in PyObject_Repr().Guido van Rossum2007-11-061-0/+1
|
* Fixes Issue 1385: The hmac module now computes the correct hmac when usingGregory P. Smith2007-11-064-8/+189
| | | | hashes with a block size other than 64 bytes (such as sha384 and sha512).
* Clarified the fact that you can have comments for individual archiveMark Summerfield2007-11-051-5/+7
| | | | | members even though comments to the archive itself aren't currently supported.
* Added cross-references between the various archive file formats.Mark Summerfield2007-11-055-8/+21
|
* * db->get_flags is only available in BerkeleyDB >= 4.2Gregory P. Smith2007-11-051-0/+4
|