summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merged revisions 59077-59104 via svnmerge fromGuido van Rossum2007-11-223-6/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r59078 | brett.cannon | 2007-11-20 16:16:20 -0800 (Tue, 20 Nov 2007) | 2 lines Remove a unneeded line that had typos. ........ r59081 | christian.heimes | 2007-11-20 16:46:21 -0800 (Tue, 20 Nov 2007) | 1 line Fixed #1372: zlibmodule.c: int overflow in PyZlib_decompress ........ r59082 | brett.cannon | 2007-11-20 16:47:36 -0800 (Tue, 20 Nov 2007) | 6 lines doctest assumed that a package's __loader__.get_data() method used universal 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. ........ r59084 | brett.cannon | 2007-11-20 16:58:03 -0800 (Tue, 20 Nov 2007) | 2 lines Add a missing check before deleting a package's __loader__. ........ r59088 | christian.heimes | 2007-11-20 17:17:28 -0800 (Tue, 20 Nov 2007) | 2 lines Added NEWS entry Thanks for the reminder, Brett ........ r59089 | amaury.forgeotdarc | 2007-11-20 17:38:26 -0800 (Tue, 20 Nov 2007) | 2 lines Add a NEWS entry for r59076. ........ r59091 | christian.heimes | 2007-11-20 18:50:06 -0800 (Tue, 20 Nov 2007) | 2 lines Final fix for #1403 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 ABC ByteString which unifies bytes and bytearray (but not memoryview).Guido van Rossum2007-11-212-5/+26
| | | | | | | | There's no ABC for "PEP 3118 style buffer API objects" because there's no way to recognize these in Python (apart from trying to use memoryview() on them). Note that array.array really should be registered as a MutableSequence but that would require importing it whenever collections is imported.
* when building with VC 2008, turn off unicode as default mode for the win32 API.Amaury Forgeot d'Arc2007-11-2115-105/+105
| | | | | For example, MessageBox takes char* parameters. If you want to pass unicode strings, use MessageBoxW explicitely.
* Convert the socket module to insist on bytes for input, and to return bytesGuido van Rossum2007-11-218-43/+42
| | | | | (not bytearray) on output. Discovered a bunch of places that were still depending on it accepting text strings.
* Fix error messages for buffer objects to say "bytes" instead of "string".Guido van Rossum2007-11-211-2/+2
|
* More PyBytes -> PyString.Guido van Rossum2007-11-211-4/+4
|
* Make os.read() return bytes, not bytearray.Guido van Rossum2007-11-211-3/+3
|
* Return PyString, not PyBytes, for a bytes array.Guido van Rossum2007-11-211-25/+25
| | | | Clean up trailing whitespace.
* Fix an issue with str.translate() in IDLE -- str.translate() only acceptsGuido van Rossum2007-11-211-3/+4
| | | | a dict argument now.
* Make read() and certificate() return bytes instead of bytearray instances.Guido van Rossum2007-11-211-31/+23
|
* Rename buffer -> bytearray.Guido van Rossum2007-11-2131-290/+290
|
* Final fix for #1403Christian Heimes2007-11-211-1/+3
| | | | | > 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. For py3k unit tests do some extra checks with -bb.
* Removed character set = unicode as requested by AmauryChristian Heimes2007-11-2123-1084/+56
| | | | Removed more project configs in order to use the defaults defined in the property files. The 'sed' tool was more than helpful for the job.
* Fixed bug #1020 pyexpat.XMParserType broken (was: pydoc doesn't work on pyexpat)Christian Heimes2007-11-211-1/+2
| | | | The sentinel in the methods struct was missing
* Patch +1478 from Joseph ArmbrusterChristian Heimes2007-11-211-3/+3
| | | | pythoncore.vcproj fails to generate buildinfo (when spaces in path)
* Merged revisions 59056-59076 via svnmerge fromChristian Heimes2007-11-206-22/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r59064 | christian.heimes | 2007-11-20 02:48:48 +0100 (Tue, 20 Nov 2007) | 1 line Fixed bug #1470 ........ r59066 | martin.v.loewis | 2007-11-20 03:46:02 +0100 (Tue, 20 Nov 2007) | 2 lines Patch #1468: Package Lib/test/*.pem. ........ r59068 | christian.heimes | 2007-11-20 04:21:02 +0100 (Tue, 20 Nov 2007) | 1 line Another fix for test_shutil. Martin pointed out that it breaks some build bots ........ r59073 | nick.coghlan | 2007-11-20 15:55:57 +0100 (Tue, 20 Nov 2007) | 1 line Backport some main.c cleanup from the py3k branch ........ r59076 | amaury.forgeotdarc | 2007-11-21 00:31:27 +0100 (Wed, 21 Nov 2007) | 6 lines The incremental decoder for utf-7 must preserve its state between calls. 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. ........
* For unknown reasons "Save All" doesn't save the vsprops files.Christian Heimes2007-11-203-3/+3
|
* Fixes for #1473 and #1476Christian Heimes2007-11-205-17/+176
| | | | | Added debug builds to make_versioninfo Removed some more defines
* The Identifiers and keywords syntax diagram did not appear correctly in theMark Summerfield2007-11-201-4/+4
| | | | | | | | | HTML output. I've now fixed this as best I can (but could do with improvement). Note that there are two terms used, "Other_ID_Start" and "Other_ID_Continue" that are not explained; I've added an extra see reference to PEP 3131 though.
* Added configurations and files for profile guided optimization (PGO).Christian Heimes2007-11-2026-18/+5900
|
* The patch from weck does a better job than my original idea. Thanks!Christian Heimes2007-11-201-4/+2
|
* Report #1473 Drop _EXPORTS macros in PCbuild9Christian Heimes2007-11-2022-310/+91
| | | | I've removed a bunch of obsolete defines. I've also taken the opportunity to fix the pre-link event of sqlite3 and some optimization flags.
* Another fix for test_shutil. Martin pointed out that it breaks some build botsChristian Heimes2007-11-201-1/+3
|
* os.system: on Windows, avoid encoding the command and use the "wide" ↵Amaury Forgeot d'Arc2007-11-201-1/+11
| | | | function: _wsystem
* Fixed bug #1470Christian Heimes2007-11-201-5/+2
| | | | | py3k unit tests are removing %TEMP% dir on Windows os.removedirs removes all parent directories until it hits a non empty directory. In my case my %TEMP% directory was clean and empty.
* Correct test_cvs on Windows, as suggested by Raghuram DevarakondaAmaury Forgeot d'Arc2007-11-192-3/+17
| | | | | | in issue1395. All other places in this file already use newline=''... Also check that csv.reader is given an iterable returning strings.
* Oops, I missed this one again (test_univnewlines fails):Amaury Forgeot d'Arc2007-11-191-1/+1
| | | | | | Some incremental decoders return multiple characters, even when fed with only one more byte. In this case the tell() state must subtract the number of extra characters.
* Issue1395: Universal mode used to duplicate newlines when using read(1).Amaury Forgeot d'Arc2007-11-193-98/+237
| | | | | | | | | | "Universal newline" is now an incremental decoder wrapping the initial one, with its own additional buffer (if '\r' is seen at the end of the input). A decoder allows the tell() funtion to record the state of the translation. This also simplifies the readline() process. Now test_netrc passes on Windows, as well as many new tests in test_io.py
* Make test_cmd_line_scripts pass by using a unicode string instead ofGuido van Rossum2007-11-191-14/+16
| | | | | | a bytes string to hold argv0 in RunMainFromImporter(). Also changed the code lay-out a bit to be more readable (for me :-), and print any unexpected errors rather than suppressing them.
* Fixed build order of the _ssl project. The openssl project needs to come ↵Christian Heimes2007-11-197-8/+36
| | | | | | first because the makefile puts the header files in the right place. Added some optimization flags to the Release builds of pythoncore and the executables.
* 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
|