summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merged revisions 59041-59055 via svnmerge fromGuido van Rossum2007-11-194-16/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r59044 | neal.norwitz | 2007-11-18 17:46:20 -0800 (Sun, 18 Nov 2007) | 1 line Use a slightly more recent version than 1.5.2b2. ........ r59047 | walter.doerwald | 2007-11-19 04:14:05 -0800 (Mon, 19 Nov 2007) | 2 lines Fix typo in comment. ........ r59049 | walter.doerwald | 2007-11-19 04:41:10 -0800 (Mon, 19 Nov 2007) | 4 lines Fix for #1444: utf_8_sig.StreamReader was (indirectly through decode()) calling codecs.utf_8_decode() with final==True, which falled with incomplete byte sequences. Fix and test by James G. Sack. ........ r59051 | nick.coghlan | 2007-11-19 05:56:27 -0800 (Mon, 19 Nov 2007) | 1 line Enable some test_cmd_line_script debugging output to investigate failure on Mac OSX buildbot ........ r59053 | facundo.batista | 2007-11-19 08:30:24 -0800 (Mon, 19 Nov 2007) | 3 lines Fixed detail in add_type() explanation (issue 1463). ........ r59054 | guido.van.rossum | 2007-11-19 09:35:24 -0800 (Mon, 19 Nov 2007) | 2 lines Make this work stand-alone, too. ........ r59055 | guido.van.rossum | 2007-11-19 09:50:22 -0800 (Mon, 19 Nov 2007) | 3 lines Fix the OSX failures in this test -- they were due to /tmp being a symlink to /private/tmp. Adding a call to os.path.realpath() to temp_dir() fixed it. ........
* Tweak the imports so this script will run stand-alone.Guido van Rossum2007-11-191-2/+2
| | | | (No, this doesn't fix the bugs on OSX.)
* I've spend some time to automate more steps of the build process. Now bzip2, ↵Christian Heimes2007-11-1916-527/+107
| | | | | | bsddb, sqlite and openssl are automatically build by prelink steps. I had to use some tricks to build openssl for 32 and 64bit CPUs in two separate build dirs.
* Revert modifications to extract_msvcr71 in 59040,Martin v. Löwis2007-11-191-7/+5
| | | | as they didn't actually work.
* Removed ReleaseAMD64 and replaced it with platform x64. The x64 builds fine ↵Christian Heimes2007-11-1924-186/+1848
| | | | except of the modules that depend on external libraries like tkinter and openssl. And I can't test the build on my 32bit CPU.
* I'm using the xxmodule and xxsubtype to test the msvccompiler on Windows. ↵Christian Heimes2007-11-181-2/+5
| | | | I'm having trouble to compile the module with VS 2008 cl.exe because "initializer is not a constant".
* Merged revisions 59005-59040 via svnmerge fromChristian Heimes2007-11-1811-84/+359
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk I've tried to fix test_cmd_line_script but I wasn't able to get all tests right. Nick, can you please have a look? ........ r59020 | facundo.batista | 2007-11-16 19:04:14 +0100 (Fri, 16 Nov 2007) | 12 lines Now in find, rfind, index, and rindex, you can use None as defaults, 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. ........ r59021 | facundo.batista | 2007-11-16 19:41:24 +0100 (Fri, 16 Nov 2007) | 4 lines Fix for stupid error (I need to remember to do a full 'make clean + make' cycle before the tests...). Sorry. ........ r59022 | facundo.batista | 2007-11-16 20:16:15 +0100 (Fri, 16 Nov 2007) | 3 lines Made _ParseTupleFinds only defined to unicodeobject.c ........ r59024 | raymond.hettinger | 2007-11-17 02:51:22 +0100 (Sat, 17 Nov 2007) | 1 line Fix signature in example ........ r59033 | brett.cannon | 2007-11-17 08:07:29 +0100 (Sat, 17 Nov 2007) | 5 lines Remove a confusing sentence about pth files and which directories are searched for them. Closes issue #1431. Thanks Giambattista Bloisi for the help. ........ r59039 | nick.coghlan | 2007-11-18 12:56:28 +0100 (Sun, 18 Nov 2007) | 1 line Patch #1739468: Directories and zipfiles containing __main__.py are now executable ........
* Updates to the msi builder and PCbuild9 directory. msi.py can now create ↵Christian Heimes2007-11-184-32/+83
| | | | installers from the PCbuild9 directory with MSVCR90.dll. PCbuild and MSVCR71.dll are still the default.
* remove now-obsolete test_socket_sslBill Janssen2007-11-172-249/+0
|
* Fixed some build issues and updated docs.Christian Heimes2007-11-176-10/+15
|
* The _winreg module returns bytes which must be decoded to unicode, not encoded.Christian Heimes2007-11-171-3/+3
|
* Initial import of new PCbuild9 for VS 2008. It partly based on PCbuild and ↵Christian Heimes2007-11-1742-0/+11988
| | | | | | | | partly hand crafted with some idea from PCbuild8. I've recreated all the extension module projects. The new directory needs some more love and care but it works. I'm not able to test the AMD64 build. The new tree is heavily using the *.vcprops property sheets. Please set any global settings in the property sheets.
* Use 'del' instead of rmpyc.py to remove the pyc and pyo files.Thomas Heller2007-11-162-2/+2
|
* Fixed an error in my last commit. The dll files are in the bin directory, ↵Christian Heimes2007-11-161-8/+8
| | | | not in the lib directory.
* I finally figured out why _tkinter and _bsddb didn't compile with PCbuild8.Christian Heimes2007-11-163-10/+38
|
* Disable dup() of SSLSocket. I don't think it can be made to work.Guido van Rossum2007-11-161-0/+4
|
* This is roughly socket2.diff from issue 1378, with a few changes appliedGuido van Rossum2007-11-165-117/+125
| | | | | | | to ssl.py (no need to test whether we can dup any more). Regular sockets no longer have a _base, but we still have explicit reference counting of socket objects for the benefit of makefile(); using duplicate sockets won't work for SSLSocket.
* Correct a failing test when test_import is run after test_coding:Amaury Forgeot d'Arc2007-11-162-4/+9
| | | | be sure to import a fresh module by removing it from sys.modules
* Cleanup of tokenizer.c.Guido van Rossum2007-11-161-61/+47
|
* Oops, forgot to test this after the merge.Guido van Rossum2007-11-161-2/+2
|
* Merged revisions 58947-59004 via svnmerge fromGuido van Rossum2007-11-167-207/+151
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r58952 | christian.heimes | 2007-11-12 10:58:08 -0800 (Mon, 12 Nov 2007) | 6 lines readline module cleanup 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? ........ r58956 | guido.van.rossum | 2007-11-12 12:06:40 -0800 (Mon, 12 Nov 2007) | 2 lines Add the test from issue 1704621 (the issue itself is already fixed here). ........ r58963 | amaury.forgeotdarc | 2007-11-13 13:54:28 -0800 (Tue, 13 Nov 2007) | 23 lines Merge from py3k branch: 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. ........ r58968 | georg.brandl | 2007-11-14 05:59:09 -0800 (Wed, 14 Nov 2007) | 2 lines Remove dead link from random docs. ........ r58971 | raymond.hettinger | 2007-11-14 14:56:16 -0800 (Wed, 14 Nov 2007) | 1 line Make __fields__ read-only. Suggested by Issac Morland ........ r58972 | raymond.hettinger | 2007-11-14 15:02:30 -0800 (Wed, 14 Nov 2007) | 1 line Add test for __fields__ being read-only ........ r58975 | raymond.hettinger | 2007-11-14 18:44:53 -0800 (Wed, 14 Nov 2007) | 6 lines Accept Issac Morland's suggestion for __replace__ to allow multiple replacements (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. ........ r58976 | raymond.hettinger | 2007-11-14 18:55:42 -0800 (Wed, 14 Nov 2007) | 1 line Small improvement to the implementation of __replace__(). ........ r58977 | raymond.hettinger | 2007-11-14 18:58:20 -0800 (Wed, 14 Nov 2007) | 1 line Fixup example in docs. ........ r58978 | raymond.hettinger | 2007-11-14 19:16:09 -0800 (Wed, 14 Nov 2007) | 1 line Example of multiple replacements. ........ r58998 | raymond.hettinger | 2007-11-15 14:39:34 -0800 (Thu, 15 Nov 2007) | 1 line Add example for use cases requiring default values. ........ r59000 | bill.janssen | 2007-11-15 15:03:03 -0800 (Thu, 15 Nov 2007) | 1 line add the certificate for the Python SVN repository for testing SSL ........ r59004 | guido.van.rossum | 2007-11-15 16:24:44 -0800 (Thu, 15 Nov 2007) | 8 lines A patch from issue 1378 by roudkerk: 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(). ........
* Fix some minor style nits. (I'll leave adding __all__ and making theGuido van Rossum2007-11-161-46/+38
| | | | docstrings conform to PEP 8 to someone else.)
* Fix for VS 2008Christian Heimes2007-11-151-0/+6
| | | | Although WS2_32.dll doesn't have inet_pton the definition conflicts with ws2tcpip.h.
* Correction for issue1134: all source files with a coding spec, except latin-1Amaury Forgeot d'Arc2007-11-152-15/+50
| | | | | and utf-8, crashed when parsing a multiline string, or a line longer that 512 columns.
* add the certificate for the Python SVN repository for testing SSLBill Janssen2007-11-151-0/+31
|
* get SSL support to work againBill Janssen2007-11-153-570/+536
|
* Attempt to manually add _ssl to the PCBuild8 solution file.Amaury Forgeot d'Arc2007-11-151-0/+21
| | | | Seems to start compiling.
* Found another memory leak in longrangeiter. And redo the previous correctionAmaury Forgeot d'Arc2007-11-152-4/+2
| | | | | | | | | | | | | | | | without calling PyType_Ready(). Question 1: Should the interpreter register all types with PyType_Ready()? Many types seem to avoid it. Question 2: To reproduce the problem, run the following code: def f(): while True: for a in iter(range(0,1,10**20)): pass f() And watch the memory used by the process. How do we test this in a unittest?
* Replace PyObject_Unicode with PyObject_Str everywhere, and remove theThomas Heller2007-11-1513-26/+25
| | | | #define for PyObject_Unicode in object.h.
* Fix two compiler warnings on Win64.Thomas Heller2007-11-152-2/+2
|
* In anticipation of the upcoming ssl patch I've added _ssl to PCbuild8. It's ↵Christian Heimes2007-11-153-0/+844
| | | | based on a copy of _socket.vcproj. My German version of VS 2005 alters almost every line of pcbuild.sln. Could somebody else please add _ssl.vcproj to the solution?
* Patch 1144 by David Binger, fix for parser module. With unittest.Guido van Rossum2007-11-152-12/+13
| | | | (I also cleared out all trailing whitespace in the C file.)
* Correct a memory leak: the range() object was not properly freed.Amaury Forgeot d'Arc2007-11-152-0/+4
|
* On Win64, linking the python dll currently fails with 'unresolvedThomas Heller2007-11-151-0/+2
| | | | | | | | | | external symbol PyObject_Unicode'. Building _ssl than hangs the build server because starting python.exe displayes a message box that 'Python30.dll' cannot be found. Temporary (?) solution: Look for existance of python30.dll and fail the _ssl build when it is missing.
* Added some additional checks for sys.std?? is None, see #1440Christian Heimes2007-11-157-12/+17
|
* The peeping and bawling of the builtin speaker is giving my poor cat the creeps.Christian Heimes2007-11-151-0/+1
|
* Patch 1439 by Bill Janssen. I think this will work.Guido van Rossum2007-11-141-85/+21
| | | | | | | Tested on Windows by Christian Heimes. I changed the code slightly, renaming decref_socketios() to _decref_socketios(), and moving it closer to the close() method that it calls. Hopefully Bill can now submit his SSL port to 3.0.
* Fix for bug #1442 pythonstartup addition of minor error checkingChristian Heimes2007-11-141-0/+10
| | | | Python failed to report an error when it wasn't able to open the PYTHONSTARTUP file.
* Moved the initalization of the exception before the initialization of sys.Christian Heimes2007-11-141-3/+3
| | | | On Windows _PySys_Init() could raise an uninitialized exception which leads to a seg fault.
* Paths and file names from the fs should always be decoded with ↵Christian Heimes2007-11-141-3/+4
| | | | PyUnicode_DecodeFSDefault and not PyUnicode_FromString
* Another #1415 fix for Windows GUI appsChristian Heimes2007-11-131-2/+6
| | | | print() mustn't raise an exception when sys.stdout is None.
* Fixed space -> tabChristian Heimes2007-11-131-3/+3
|
* Fix for #1415 pythonw.exe fails because std streams a missingChristian Heimes2007-11-134-13/+63
| | | | | | After a long discussion about the problem with Windows GUI apps Guido decided that sys.stdin, stdout and stderr should be None when the C runtime library returns invalid file descriptors for the standard streams. So far the only known cases are Windows GUI apps and scripts started with pythonw on Windows. The OS restrictions are tight enough to catch the problem on other OSes.
* Correction for issue1265 (pdb bug with "with" statement).Amaury Forgeot d'Arc2007-11-132-9/+59
| | | | | | | | | | | | | | | | | | | | 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. Seems a backport candidate, even if the case is less frequent in 2.5.
* Add -i option. Don't exit when the command fails. Redirect stderr to stdout.Guido van Rossum2007-11-121-12/+34
|
* Another fix for #1414Christian Heimes2007-11-122-2/+5
|
* Fix for refleak tests through regrtest.py -R:: bug #1414Christian Heimes2007-11-123-38/+42
| | | | The pre-commit hook doesn't allow a trailing newline
* Patch 1420 by Ron Adam.Guido van Rossum2007-11-124-49/+58
| | | | | This adds support for bytes literals (b'...') to tokenize.py, and removes support for unicode literals (u'...').
* Let's do as Guido says and return None instead of -1Christian Heimes2007-11-121-3/+2
|
* Stop Python code from instantiating a new stdprinter with sys.stderr.__class__()Christian Heimes2007-11-121-11/+90
| | | | Added some more methods and attributes to stdprinter to ease up debugging #1415 on Windows. It also makes the object more file like. Now it can be used as a working replacement for an io instance.