Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Patch # 1302 by Christian Heimes (with some love from me :-). | Guido van Rossum | 2007-10-25 | 2 | -12/+48 |
| | | | | | The patch fixes the output for profile and cProfile. Another patch from Alexandre and me added additional calls to the UTF-8 codec. | ||||
* | Patch # 1323 by Amaury Forgeot d'Arc. | Guido van Rossum | 2007-10-25 | 2 | -9/+23 |
| | | | | | | This patch corrects a problem in test_file.py on Windows: f.truncate() seeks to the truncation point, but does not empty the buffers. In the test, f.tell() returns -1... | ||||
* | Patch 1318 by Christian Heimes: remove os.tmpnam(), os.tempnam(), | Guido van Rossum | 2007-10-25 | 5 | -255/+4 |
| | | | | and os.tmpfile(). | ||||
* | Remove a test case which is no longer valid. | Georg Brandl | 2007-10-24 | 1 | -1/+1 |
| | |||||
* | Fix a refleak for `filename', introduced in rev. 58466. | Georg Brandl | 2007-10-24 | 1 | -4/+0 |
| | | | | Also remove an unnecessary incref/decref for `name'. | ||||
* | Fix a broken format in a PyErr_Format() call: %lx is not supported. | Guido van Rossum | 2007-10-24 | 1 | -1/+1 |
| | | | | | | (It's still technically broken since the va_args code assumes %x is an int while we're passing a long, but that's mostly theoretical, and it's done all over the place.) | ||||
* | Make test_locale pass by removing tests that were designed to handle | Guido van Rossum | 2007-10-24 | 1 | -39/+0 |
| | | | | issues with <ctype.h> on various platforms. We no longer use <ctype.h>. | ||||
* | A 'PyObject *' parameter in PyErr_Format must use %S parameter, not %s. | Thomas Heller | 2007-10-24 | 2 | -1/+19 |
| | | | | Added unittest for calling a function with paramflags. | ||||
* | Patch #1303: Adapt str8 constructor to bytes (now buffer) one. | Georg Brandl | 2007-10-24 | 15 | -75/+215 |
| | |||||
* | Patch #1318 by Amaury Forgeot d'Arc. | Guido van Rossum | 2007-10-24 | 14 | -108/+106 |
| | | | | | | | | | Updates to ctypes for python 3.0 to make the tests pass. Notable changes are: - return bytes instead of str8 - integers in range(256) are accepted as "one char string": libc.strchr("abcdef", 98) is now valid. - directly use the wide-char version of the win32 function LoadLibrary. | ||||
* | Patch #1314 by Christian Heimes. | Guido van Rossum | 2007-10-23 | 1 | -3/+2 |
| | | | | | Fix failing unittests for time and strptime on German and probably other localized Windows installations. | ||||
* | #1316: remove redundant PyLong_Check calls when PyInt_Check was already called. | Georg Brandl | 2007-10-23 | 7 | -31/+24 |
| | |||||
* | Remove duplicate entry for PyObject_AsFileDescriptor. | Georg Brandl | 2007-10-23 | 2 | -6/+7 |
| | |||||
* | Remove redundant PyInt/PyLong checks. | Georg Brandl | 2007-10-23 | 1 | -9/+2 |
| | |||||
* | Update Pygments version from externals. | Georg Brandl | 2007-10-23 | 1 | -1/+1 |
| | |||||
* | Update w.r.t. PEP 3137. | Georg Brandl | 2007-10-23 | 1 | -176/+54 |
| | |||||
* | Patch #1071: Improve unicode.translate() so that you can pass unicode | Georg Brandl | 2007-10-23 | 3 | -6/+52 |
| | | | | | characters as mapping keys and invalid mapping keys are recognized and raise an error. | ||||
* | #1061 (mainly by Thomas Wouters): use weak sets for abc caches. | Georg Brandl | 2007-10-23 | 4 | -17/+133 |
| | |||||
* | Patch 1304, by Amaury Forgeot d'Arc. | Guido van Rossum | 2007-10-22 | 3 | -3/+33 |
| | | | | | Add md5module.c and sha1module.c to the project files, and in some cases bytes_methods.c and related .h files. | ||||
* | Make str/str8 comparisons return True/False for !=/==. | Brett Cannon | 2007-10-22 | 11 | -205/+169 |
| | | | | | | | | | | | | | | | Code that has been returning str8 becomes much more apparent thanks to this (e.g., struct module returning str8 for all string-related formats or sqlite3 passing in str8 instances when converting objects that had a __conform__ method). One also has to watch out in C code when making a key from char * using PyString in the C code but a str instance in Python code as that will not longer compare equal. Once str8 gains a constructor like the current bytes type then test_modulefinder needs a cleanup as the fix is a little messy in that file. Thanks goes to Thomas Lee for writing the patch for the change giving an initial run-down of why most of the tests were failing. | ||||
* | In followup to #1310: Remove more exception indexing. | Georg Brandl | 2007-10-22 | 3 | -7/+9 |
| | |||||
* | ssue 1309: fix by Christian Heimes to be able to build on Windows. | Guido van Rossum | 2007-10-22 | 1 | -1/+4 |
| | |||||
* | Fix exception indexing. | Georg Brandl | 2007-10-22 | 1 | -1/+1 |
| | |||||
* | Issue 1267, continued. | Guido van Rossum | 2007-10-22 | 12 | -63/+93 |
| | | | | | | Additional patch by Christian Heimes to deal more cleanly with the FILE* vs file-descriptor issues. I cleaned up his code a bit, and moved the lseek() call into import.c. | ||||
* | Make sure the malloc'ed string has space for the null byte. | Brett Cannon | 2007-10-21 | 1 | -1/+1 |
| | |||||
* | Fix PyTokenizer_FindEncoding() for OS X 10.4. Turns out that seeking to the | Brett Cannon | 2007-10-20 | 1 | -4/+11 |
| | | | | | | | | | beginning of a file through a file pointer is not reflected when reading from a file descriptor. Using both fflush() and fpurge() does not solve it. One must use lseek() directly on the file descriptor to get the desired effect. This might suggest that we standardize on either file pointers (FILE) or file descriptors (int) for all C code used. | ||||
* | Fix a memory leak caused by PyTokenizer_FindEncoding() returning a char * that | Brett Cannon | 2007-10-20 | 1 | -3/+8 |
| | | | | was PyMem_MALLOC'ed. | ||||
* | Plug a memory leak where a struct tok_state was not being freed. | Brett Cannon | 2007-10-20 | 1 | -3/+11 |
| | | | | Also tweak a comparison that was going farther than needed. | ||||
* | Tweak the version *string* to clarify that this isn't your father's 3.0a1. :-) | Guido van Rossum | 2007-10-20 | 1 | -1/+1 |
| | |||||
* | Patch 1267 by Christian Heimes. | Guido van Rossum | 2007-10-19 | 11 | -31/+175 |
| | | | | | | Move the initialization of sys.std{in,out,err} and __builtin__.open to C code. This solves the problem that "python -S" wouldn't work. | ||||
* | Patch 1280, by Alexandre Vassalotti. | Guido van Rossum | 2007-10-19 | 9 | -51/+43 |
| | | | | | Make PyString's indexing and iteration return integers. (I changed a few of Alexandre's decisions -- GvR.) | ||||
* | This is the uncontroversial half of patch 1263 by Thomas Lee: | Guido van Rossum | 2007-10-19 | 2 | -13/+17 |
| | | | | | changes to codecs.c and structmember.c to use PyUnicode instead of PyString. | ||||
* | Merge 58539: squelch the warning that this test is intended to raise. | Gregory P. Smith | 2007-10-19 | 1 | -2/+7 |
| | |||||
* | Merge 58532, 58533, 58534: bsddb.dbtables bug fixes - don't allow null bytes | Gregory P. Smith | 2007-10-18 | 1 | -13/+14 |
| | | | | in random rowid strings, pass txn using a keyword where possible. | ||||
* | Patch# 1258 by Christian Heimes: kill basestring. | Guido van Rossum | 2007-10-16 | 77 | -217/+171 |
| | | | | I like this because it makes the code shorter! :-) | ||||
* | For PEP3137: Adds missing methods to the mutable PyBytes object (soon | Gregory P. Smith | 2007-10-16 | 12 | -1079/+1595 |
| | | | | | | | | to be called a buffer). Shares code with stringobject when possible. Adds unit tests with common code that should be usable to test the PEPs mutable buffer() and immutable bytes() types. http://bugs.python.org/issue1261 | ||||
* | Fix a small typo in the comment of unicode_default_encoding[]. | Alexandre Vassalotti | 2007-10-16 | 1 | -1/+1 |
| | |||||
* | Make the docstring for io.open() a raw string so that the explanation for the | Brett Cannon | 2007-10-15 | 1 | -1/+1 |
| | | | | 'newline' argument is not a jumbled mess of newlines. | ||||
* | Move decl so it compiles with C89. | Neal Norwitz | 2007-10-15 | 1 | -1/+1 |
| | |||||
* | Update what the locale module documents about string operations. | Guido van Rossum | 2007-10-15 | 1 | -11/+8 |
| | |||||
* | Patch #1272, by Christian Heimes and Alexandre Vassalotti. | Guido van Rossum | 2007-10-15 | 17 | -41/+96 |
| | | | | | | | | | | Changes to make __file__ a proper Unicode object, using the default filesystem encoding. This is a bit tricky because the default filesystem encoding isn't set by the time we import the first modules; at that point we fudge things a bit. This is okay since __file__ isn't really used much except for error reporting. Tested on OSX and Linux only so far. | ||||
* | Finish bug fix applied at 58398. I missed a piece, Tal Einat found the error. | Kurt B. Kaiser | 2007-10-15 | 1 | -1/+1 |
| | |||||
* | Fix yet another stray 2.x-ism (maybe merged?). | Guido van Rossum | 2007-10-15 | 1 | -2/+1 |
| | |||||
* | Make it possible to run this test stand-alone. | Guido van Rossum | 2007-10-15 | 1 | -0/+3 |
| | |||||
* | Fix typo: formats -> format. (Only mattered in wide unicode builds.) | Guido van Rossum | 2007-10-14 | 1 | -1/+1 |
| | |||||
* | Fix some more memory leaks (in error conditions) introduced in r58455. | Neal Norwitz | 2007-10-14 | 1 | -3/+4 |
| | | | | Also fix some indentation. | ||||
* | Fix the memory leak introduced in r58455. The buffer reference | Alexandre Vassalotti | 2007-10-14 | 1 | -1/+4 |
| | | | | returned by 'et' need to be freed after usage. | ||||
* | Remove the buffer API from PyUnicode as specified by PEP 3137. Also, | Alexandre Vassalotti | 2007-10-14 | 4 | -17/+13 |
| | | | | | fix the error message of the 't' format unit, in getargs.c, so that it asks for bytes, instead of string. | ||||
* | Merge 58450: fix uncollectable reference caused by bsddb.db.DBShelf.append | Gregory P. Smith | 2007-10-13 | 1 | -2/+19 |
| | | | | Adds a DBShelf __repr__ method to not raise an exception when the DB is closed. | ||||
* | Eliminate use of PyBUF_CHARACTER flag which is no longer part of the buffer ↵ | Travis E. Oliphant | 2007-10-13 | 5 | -23/+20 |
| | | | | interface. Fix up array module to export the correct format for wide-builds. |