- 24 Oct, 2007 2 commits
-
-
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 3 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
-
Alexandre Vassalotti authored
-
- 15 Oct, 2007 7 commits
-
-
Brett Cannon authored
'newline' argument is not a jumbled mess of newlines.
-
Neal Norwitz authored
-
Guido van Rossum authored
-
Guido van Rossum authored
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.
-
Kurt B. Kaiser authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
- 14 Oct, 2007 4 commits
-
-
Guido van Rossum authored
-
Neal Norwitz authored
Also fix some indentation.
-
Alexandre Vassalotti authored
returned by 'et' need to be freed after usage.
-
Alexandre Vassalotti authored
fix the error message of the 't' format unit, in getargs.c, so that it asks for bytes, instead of string.
-