summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* issue 1429818Skip Montanaro2007-11-231-0/+3
|
* Make trace and doctest play nice together (issue 1429818). Will backport.Skip Montanaro2007-11-232-0/+13
|
* Add itemAndrew M. Kuchling2007-11-231-0/+4
|
* And yet another fix for the patch. Paul Moore has send me a note that I've ↵Christian Heimes2007-11-231-8/+9
| | | | missed a declaration. The additional code has moved the declaration in the middle of the block.
* How did the comment get there?Christian Heimes2007-11-231-1/+1
|
* Fixed problems in the last commit. Filenames and line numbers weren't ↵Christian Heimes2007-11-232-13/+19
| | | | | | reported correctly. Backquotes still don't report the correct file. The AST nodes only contain the line number but not the file name.
* Applied patch #1754273 and #1754271 from Thomas GleeChristian Heimes2007-11-232-1/+14
| | | | The patches are adding deprecation warnings for back ticks and <>
* Backport of PCbuild9 fixes from py3k r59130Christian Heimes2007-11-235-19/+83
|
* Fix a bug in the test for using __loader__.get_data().Brett Cannon2007-11-231-0/+1
|
* Backport of the PCbuild9 directory from the py3k branch.Christian Heimes2007-11-2250-7/+18093
| | | | | I've finished the last task for the PCbuild9 directory today. I don't think there is much left to do. Now you can all play around with the shiny new VS 2008 and try the PGO builds. I was able to get a speed improvement of about 10% on py3k. Have fun! :)
* Backport of _abccoll.py by Benjamin Arangueren, issue 1383.Guido van Rossum2007-11-2213-51/+822
| | | | With some changes of my own thrown in (e.g. backport of r58107).
* Final fix for #1403Christian Heimes2007-11-211-0/+2
| | | | The Windows installer and some Linux distros are using compileall to compile all py files in the Lib/ directory. However no test exists to check if all py files can be compiled. I figured out that make testall is the easiest way to test compileall.
* Add a NEWS entry for r59076.Amaury Forgeot d'Arc2007-11-211-0/+3
|
* Added NEWS entryChristian Heimes2007-11-211-0/+1
| | | | Thanks for the reminder, Brett
* Add a missing check before deleting a package's __loader__.Brett Cannon2007-11-211-1/+2
|
* doctest assumed that a package's __loader__.get_data() method used universalBrett Cannon2007-11-213-1/+24
| | | | | | | newlines; it doesn't. To rectify this the string returned replaces all instances of os.linesep with '\n' to fake universal newline support. Backport candidate.
* Fixed #1372: zlibmodule.c: int overflow in PyZlib_decompressChristian Heimes2007-11-211-2/+3
|
* Remove a unneeded line that had typos.Brett Cannon2007-11-211-2/+0
|
* The incremental decoder for utf-7 must preserve its state between calls.Amaury Forgeot d'Arc2007-11-205-23/+61
| | | | | | | Solves issue1460. Might not be a backport candidate: a new API function was added, and some code may rely on details in utf-7.py.
* Backport some main.c cleanup from the py3k branchNick Coghlan2007-11-201-12/+13
|
* Another fix for test_shutil. Martin pointed out that it breaks some build botsChristian Heimes2007-11-201-1/+3
|
* Patch #1468: Package Lib/test/*.pem.Martin v. Löwis2007-11-201-0/+1
|
* Fixed bug #1470Christian Heimes2007-11-201-5/+2
|
* Fix the OSX failures in this test -- they were due to /tmp being a symlinkGuido van Rossum2007-11-191-0/+1
| | | | to /private/tmp. Adding a call to os.path.realpath() to temp_dir() fixed it.
* Make this work stand-alone, too.Guido van Rossum2007-11-191-1/+1
|
* Fixed detail in add_type() explanation (issue 1463).Facundo Batista2007-11-191-2/+2
|
* Enable some test_cmd_line_script debugging output to investigate failure on ↵Nick Coghlan2007-11-191-3/+3
| | | | Mac OSX buildbot
* 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
|