summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* fix #1409: cell variables were not initialized,Amaury Forgeot d'Arc2007-11-242-1/+12
| | | | when the value comes from a keyword-only parameter.
* Open output files in text mode, after all they are text files.Guido van Rossum2007-11-231-2/+2
| | | | (Binary mode caused problems when "python" was 3.0.)
* Paul had the great idea to add /DNO_TCL to the pre-build step.Christian Heimes2007-11-231-8/+16
|
* Implemented request from Marc-Andre LemburgChristian Heimes2007-11-231-0/+5
| | | | For license reasons Python must not ship with IDEA, RC5 and MDC2. The latter are disabled by default but IDEA is enabled by default.
* Added code to pre-generate makefiles and assembly files to build_ssl.pyChristian Heimes2007-11-235-19/+83
| | | | Fixed bug #1488 in my way.
* CleanupChristian Heimes2007-11-231-1/+0
| | | | Removed unreferenced variable
* Just inline a function, and discover that it can only raise an exception.Amaury Forgeot d'Arc2007-11-221-14/+7
| | | | Next step: should PyString_AsStringAndSize accept buffer objects?
* Stream functions like read() are supposed to return bytes, not buffer.Amaury Forgeot d'Arc2007-11-221-17/+9
| | | | Now multibytecodec directly works with PyStrings, and disallow PyBytes.
* Problem found while converting from PyBytes to PyString:Amaury Forgeot d'Arc2007-11-222-11/+22
| | | | | Re-enable (and correct) a test for the BOM at the beginning of a code unit. And properly "unget" characters when the BOM is incomplete.
* Fix, thanks to Nick.Georg Brandl2007-11-221-1/+1
|
* Update docs for buffer -> bytearray rename.Georg Brandl2007-11-222-35/+34
|
* Revert change of bz2.vcprojChristian Heimes2007-11-221-4/+0
|
* Fixed PGO buildsChristian Heimes2007-11-229-15/+38
| | | | The intermediate PG instrument build now lands in Platform-pgi and the final optimized build in Platform-pgo.
* Use PyString instead of PyBytes in wrap_strftime().Walter Dörwald2007-11-221-10/+10
|
* Removed blocks from several functions in unicodeobject and stringobject ↵Christian Heimes2007-11-222-93/+12
| | | | | | where a PyString function was still checking for PyUnicode or the other way around. PyUnicode and PyString shouldn't magically convert the other type.
* os.environ contains PyUnicode instances and not PyString instancesChristian Heimes2007-11-221-3/+3
|
* Removed some leftovers from the str8 daysChristian Heimes2007-11-223-8/+1
|
* Typo in bytes.replace(): the buffer interface was always used.Amaury Forgeot d'Arc2007-11-221-1/+1
|
* PyString_AsString is permissive and accepts unicode strings.Amaury Forgeot d'Arc2007-11-225-9/+9
| | | | Replace it with PyUnicode_AsString when the argument is known to be a str.
* In audioop, return PyString instead of PyBytes.Amaury Forgeot d'Arc2007-11-221-31/+31
|
* Merged revisions 59105-59106 via svnmerge fromGuido van Rossum2007-11-220-0/+0
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r59106 | guido.van.rossum | 2007-11-21 16:55:51 -0800 (Wed, 21 Nov 2007) | 3 lines Backport of _abccoll.py by Benjamin Arangueren, issue 1383. With some changes of my own thrown in (e.g. backport of r58107). ........
* 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.