- 23 Oct, 2007 2 commits
-
-
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.
-
- 13 Oct, 2007 4 commits
-
-
Gregory P. Smith authored
Adds a DBShelf __repr__ method to not raise an exception when the DB is closed.
-
Travis E. Oliphant authored
Eliminate use of PyBUF_CHARACTER flag which is no longer part of the buffer interface. Fix up array module to export the correct format for wide-builds.
-
Guido van Rossum authored
-
Neal Norwitz authored
-
- 12 Oct, 2007 4 commits
-
-
Travis E. Oliphant authored
Fix problems with memoryview object. There is still more to do to finish PEP 3118. The memory-view object needs to be fleshed out and the struct module needs to be modified.
-
Travis E. Oliphant authored
Add macros for checking for long double and defining the size of long double on the platform. Ctypes and Struct module will both need them.
-
Travis E. Oliphant authored
Fix Issue 1268 with the array module by backing-out the 'w' addition. All builds will continue to use 'u' for unicode.
-
Brett Cannon authored
-