- 26 Oct, 2007 4 commits
-
-
Neal Norwitz authored
-
Neal Norwitz authored
is larger than what can fit into a long (4 bytes). Hopefully this will fix more problems than it creates. There are many, many compile warnings on Win64. Each of these should be investigated to determine if they are real problems or not. Many of these presumably affect the trunk too.
-
Brett Cannon authored
bytes type.
-
Guido van Rossum authored
The patch fixes some of the problems on Windows. It doesn't introduce addition problems on Linux.
-
- 25 Oct, 2007 3 commits
-
-
Guido van Rossum authored
The patch fixes the output for profile and cProfile. Another patch from Alexandre and me added additional calls to the UTF-8 codec.
-
Guido van Rossum authored
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...
-
Guido van Rossum authored
and os.tmpfile().
-
- 24 Oct, 2007 7 commits
-
-
Georg Brandl authored
-
Georg Brandl authored
Also remove an unnecessary incref/decref for `name'.
-
Guido van Rossum authored
(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.)
-
Guido van Rossum authored
issues with <ctype.h> on various platforms. We no longer use <ctype.h>.
-
Thomas Heller authored
Added unittest for calling a function with paramflags.
-
Georg Brandl authored
-
Guido van Rossum authored
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.
-
- 23 Oct, 2007 8 commits
-
-
Guido van Rossum authored
Fix failing unittests for time and strptime on German and probably other localized Windows installations.
-
Georg Brandl authored
-
Georg Brandl authored
-
Georg Brandl authored
-
Georg Brandl authored
-
Georg Brandl authored
-
Georg Brandl authored
characters as mapping keys and invalid mapping keys are recognized and raise an error.
-
Georg Brandl authored
-
- 22 Oct, 2007 6 commits
-
-
Guido van Rossum authored
Add md5module.c and sha1module.c to the project files, and in some cases bytes_methods.c and related .h files.
-
Brett Cannon authored
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.
-
Georg Brandl authored
-
Guido van Rossum authored
-
Georg Brandl authored
-
Guido van Rossum authored
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.
-
- 21 Oct, 2007 1 commit
-
-
Brett Cannon authored
-
- 20 Oct, 2007 4 commits
-
-
Brett Cannon authored
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.
-
Brett Cannon authored
was PyMem_MALLOC'ed.
-
Brett Cannon authored
Also tweak a comparison that was going farther than needed.
-
Guido van Rossum authored
-
- 19 Oct, 2007 4 commits
-
-
Guido van Rossum authored
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.
-
Guido van Rossum authored
Make PyString's indexing and iteration return integers. (I changed a few of Alexandre's decisions -- GvR.)
-
Guido van Rossum authored
changes to codecs.c and structmember.c to use PyUnicode instead of PyString.
-
Gregory P. Smith authored
-
- 18 Oct, 2007 1 commit
-
-
Gregory P. Smith authored
in random rowid strings, pass txn using a keyword where possible.
-
- 16 Oct, 2007 2 commits
-
-
Guido van Rossum authored
I like this because it makes the code shorter! :-)
-
Gregory P. Smith authored
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
-